-
Notifications
You must be signed in to change notification settings - Fork 25
/
index.html
executable file
·2069 lines (2041 loc) · 173 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="fr" class="h-100">
<head>
<title>Mviewer Studio</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Mviewer Teams">
<!-- Favicon -->
<link rel="icon" type="image/png" href="img/favicon_mstudio.png" />
<!-- Custom stylesheet bootstrap and mstudio for this app-->
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/mviewerstudio.css" type="text/css">
<!-- Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css">
<link rel="stylesheet" href="lib/openlayers/7.1/ol.css" type="text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="lib/Sortable.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/PapaParse/4.6.3/papaparse.min.js"></script>
<script src="lib/bootstrap/5.2/bootstrap.bundle.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tagsinput/0.8.0/bootstrap-tagsinput.min.js"></script>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-tagsinput/0.8.0/bootstrap-tagsinput.css"/>
<link rel="stylesheet" href="lib/icon-picker/icon-picker.css" type="text/css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/proj4js/2.4.4/proj4.js"></script>
<script type="text/javascript" src="lib/openlayers/7.1/ol.js"></script>
<script src="lib/ogc.js"></script>
<script src="lib/mv.js"></script>
<script src="lib/slug.js"></script>
<script src="lib/i18njs/i18n.min.js" type="text/javascript"></script>
<!--Wizard-->
<link rel="stylesheet" href="css/wizard.css">
<!--Bootstrap table extension-->
<link rel="stylesheet" href="lib/bootstrap-table/bootstrap-table.min.css">
<link rel="stylesheet" href="lib/template-generator/style.css">
</head>
<body class="h-100" id="content">
<!--NAVBAR-->
<nav class="navbar bg-primary fixed-top" id="navbarStudio">
<div class="container-fluid">
<a class="navbar-brand">
<img src="img/logo_mviewerstudio.svg" alt="Logo" width="125" class="d-inline-block mx-right-4">
<span class="mx-3"><span id="studio-title" class="navbar-brand"></span></span>
</a>
<div class="d-flex align-items-center" id="navBarStudioMenu">
<div class="nav-item">
<span class="navbar-text px-2 d-none" id="user_connected"><span i18n="banner.not_connected">Non connecté</span></span>
</div>
<div class="px-4 nav-item d-none" id="menu_user_logout">
<a role="button" href="/logout"><span i18n="banner.logout">Déconnexion</span></a>
</div>
<a class="zoom" onclick="goHome();"><i class="ri-home-6-line" title="Retour vers l'accueil" style="font-size: 30px;"></i></a>
</div>
</div>
</nav>
<!--/NAVBAR-->
<main class="h-100">
<!--HOME-->
<div class="container-fluid h-100" id="containerHome">
<div class="row justify-content-around align-items-center h-100">
<div class="col-md-4">
<img src="img/homeMstudio.svg" alt="Logo" width="80%" class="d-inline-block mx-right-4">
<div class="">
<span class="subtitle-home">MVIEWER STUDIO</span><br>
<span class="title-home" i18n="home.welcome_title">Bienvenue</span>
</div>
<h4 class="text-primary" i18n="home.welcome_texte">Créer votre application cartographique mviewer en suivant les étapes du générateur</h4>
</div>
<div class="col-md-6">
<h3 class="text-primary m-2 mb-4"><strong><span i18n="home.welcome_question">Que voulez-vous faire ?</span></strong> </h3>
<div id="cardsHome">
<!--Open config-->
<a data-bs-toggle="modal" data-bs-target="#mod-importfile" href="#">
<div class="card text-white bg-warning p-3 m-2 zoomCard h-100 noborder" style="max-width: 18rem;">
<div class="card-body mb-5">
<span class="iconCard-home">
<i class="bi bi-upload" style="font-size: 20px;vertical-align: revert;"></i>
</span>
<h5 class="card-title mt-4"><span i18n="home.open_title">Ouvrir un projet existant</span></h5>
<p class="card-text"><span i18n="home.open_texte">Importer un fichier de configuration .XML depuis votre ordinateur ou un serveur</span></p>
</div>
</div>
</a>
<!--Open config-->
<!--New config-->
<a onclick="newConfiguration(); showStudio()">
<div class="card text-white bg-info p-3 m-2 zoomCard h-100 noborder" style="max-width: 18rem;">
<div class="card-body mb-5">
<span class="iconCard-home">
<i class="bi bi-file-earmark-plus" style="font-size: 20px;vertical-align: revert;"></i>
</span>
<h5 class="card-title mt-4"><span i18n="home.newproject_title">Créer un nouveau projet</span></h5>
<p class="card-text"><span i18n="home.newproject_texte">Débuter la configuration d'une nouvelle application mviewer</span></p>
</div>
</div>
</a>
</div>
</div>
<nav class="navbar fixed-bottom" id="homeNavbarDoc">
<div class="container-fluid justify-content-end">
<a class="nav-item m-3" href="https://github.com/mviewer/mviewerstudio" target="_blank" i18n="home.navlink_github">Github</a>
<a class="nav-item m-3" href="https://mviewerstudio.readthedocs.io/fr/stable/" target="_blank" i18n="home.navlink_doc">Documentation</a>
<a class="nav-item m-3" data-bs-toggle="modal" data-bs-target="#modalCredits" i18n="home.navlink_credits">Crédits</a>
</div>
</nav>
</div>
</div>
<!--/HOME-->
<!-- MODULES STUDIO-->
<div class="container-fluid h-100" id="containerStudio" hidden>
<div class="row justify-content-around" style="padding-top: 120px;">
<!-- WIZARD BLOC -->
<div class="col-xl-3 col-md-12" id="blockWizard">
<div class="bg-light">
<div class="mb-3">
<div class="d-flex justify-content-between align-items-center">
<h3 class="text-primary strong" id="nameAppBlock">Mon application</h3>
<span class="badge badge-publish badge-title d-none" i18n="publish">En ligne</span>
<span class="badge badge-draft badge-title d-none" i18n="draft">Brouillon</span>
</div>
<span class="text-primary" id="detailArea">MVIEWER</span>
</div>
<!-- STEP STUDIO -->
<ul class="nav nav-pills flex-column mb-5" id="stepStudio">
<li class="nav-item" id="navWizApp">
<a class="nav-link active" data-bs-toggle="tab" href="#app" id="appWizzardTab">
<i class="ri-equalizer-line"></i>
<div>
<p class="title-wizard" i18n="studio.wizard.app_title">Application </p>
<p class="subtitle-wizard" i18n="studio.wizard.app_text">Paramètres globaux de l'application</p>
</div>
</a>
</li>
<li class="nav-item" id="navWizData">
<a class="nav-link" data-bs-toggle="tab" href="#themesdata" onclick="mv.saveIfNecessary()">
<i class="ri-stack-line"></i>
<div>
<p class="title-wizard" i18n="studio.wizard.theme_title">Thématiques & données</p>
<p class="subtitle-wizard" i18n="studio.wizard.theme_text">Paramètres des thématiques et des données</p>
</div>
</a>
</li>
<li class="nav-item advanced" id="navWizFadv" style="display: none">
<a class="nav-link" data-bs-toggle="tab" href="#fadanced" onclick="mv.saveIfNecessary()">
<i class="ri-list-settings-line"></i>
<div>
<p class="title-wizard" i18n="studio.wizard.advanced_title">Fonctionnalités avancées</p>
<p class="subtitle-wizard" i18n="studio.wizard.advanced_text">Paramètres des fonctionnalités supplémentaires</p>
</div>
</a>
</li>
<li class="nav-item" id="navWizPub">
<a class="nav-link" data-bs-toggle="tab" href="#publication" onclick="mv.saveIfNecessary()">
<i class="ri-download-line"></i>
<div>
<p class="title-wizard" i18n="studio.wizard.publication_title">Publication</p>
<p class="subtitle-wizard" i18n="studio.wizard.publication_text">Finaliser votre application</p>
</div>
</a>
</li>
</ul>
<!-- ./STEP STUDIO -->
<div class="text-info mt-4" id="helpStudioBloc">
<img src="img/doc.png" alt="Img doc" width="80px" style="margin-right: 2em;">
<div class="helpStudio-text my-2">
<h4 class="strong m-0" i18n="studio.wizard.help_title">Besoin d'aide ?</h4>
<p i18n="studio.wizard.help_text">Consulter la documentation</p>
<a class="btn btn-outline-info" href="https://mviewerstudio.readthedocs.io/fr/stable/" target="_blank" i18n="consult">Voir</a>
</div>
</div>
</div>
<ul class="nav" id="wizardCredits">
<a class="nav-link m-1" href="https://github.com/mviewer/mviewerstudio" target="_blank" i18n="home.navlink_github">Github</a>
<a class="nav-link m-1" data-bs-toggle="modal" data-bs-target="#modalCredits" i18n="home.navlink_credits">Crédits</a>
</ul>
</div>
<!-- /WIZARD BLOC -->
<!-- WIZARD BLOC MOBILE -->
<nav class="navbar fixed-bottom bg-light justify-content-center" id="blockWizardMobile" hidden>
<ul class="nav bg-light justify-content-center">
<li class="nav-item">
<a class="nav-link active" data-bs-toggle="tab" href="#app">
<i class="ri-equalizer-line"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" data-bs-toggle="tab" href="#themesdata">
<i class="ri-stack-line"></i>
</a>
</li>
<li class="nav-item advanced" style="display: none">
<a class="nav-link" data-bs-toggle="tab" href="#fadanced">
<i class="ri-list-settings-line"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" data-bs-toggle="tab" href="#publication">
<i class="ri-download-line"></i>
</a>
</li>
</ul>
</nav>
<!-- /WIZARD BLOC MOBILE -->
<!-- CONTAINER STUDIO -->
<div class="col-xl-8 col-md-12">
<!--TOOLSBAR -->
<div id="toolsbarStudio">
<ul class="nav align-items-center justify-content-end">
<div class="btn-group d-none advanced" id="layerOptionBtn">
<button type="button" class="nav-link btn btn-outline-info dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Options
</button>
<div class="dropdown-menu">
<a class="dropdown-item" onclick="mv.getVersionsByApp(this)" data-bs-toggle="modal" data-bs-target="#mod-appversions" i18n="release.btn.tooltip">Historique des modifications</a>
</div>
</div>
<a class="nav-link d-none" id="toolsbarStudio-unpublish" onclick="mv.unpublish(config.id);" href="#"><i class="ri-eye-off-fill"></i> <span i18n="studio.toolsbar.unpublish">Dépublier</span></a>
<a class="nav-link d-none" id="toolsbarStudio-delete" onclick="showAlertDelApp(config.id);" href="#"><i class="ri-delete-bin-2-line"></i> <span i18n="studio.toolsbar.delete">Supprimer</span></a>
<a class="nav-link" id="toolsbarStudio-View" onclick="previewAppsWithoutSave(config.id);" href="#"><i class="ri-eye-2-line"></i> <span i18n="studio.toolsbar.preview">Prévisualiser</span></a>
<a class="nav-link" id="toolsbarStudio-Save" onclick="saveStudio();" href="#"><i class="ri-save-line"></i> <span i18n="studio.toolsbar.save">Enregistrer</span></a>
</ul>
<div class="custom-control custom-switch mt-2" id="btnSwitchAdvanced">
<input type="checkbox" class="custom-control-input" id="SwitchAdvanced">
<label class="custom-control-label" for="SwitchAdvanced"><span i18n="studio.toolsbar.advanced" checked="true">Mode avancé</span></label>
</div>
</div>
<!--/.TOOLSBAR -->
<!-- STUDIO TABS -->
<div class="tab-content my-4" id="stepStudioContent">
<!-- Application -->
<div class="tab-pane container active" id="app">
<form>
<h1>
<i class="ri-equalizer-line"></i>
<span i18n="tabs.app.title">Application</span>
</h1>
<div class="row mt-4">
<div class="col-md-12">
<div class="form-group">
<label for="opt-title" i18n="head.title" class="form-label">Titre de l'application</label>
<input class="form-control" id="opt-title" type="text" name="textinput" placeholder="Mon application">
</div>
</div>
<div class="col-md-6 advanced">
<div class="form-group">
<label for="optKeywords" class="form-label"><span i18n="head.keywords">Mots clés </span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.app.keywords"><i class="ri-information-line"></i></span></label>
<input class="form-control" onchange="mv.changeKeyWords(this)" id="optKeywords" type="text" name="textinput" placeholder="ex: carte,rennes,lycées">
</div>
</div>
<div class="col-md-6 advanced">
<div class="form-group">
<label for="optProxyUrl" class="form-label"><span i18n="head.proxyurl">URL du proxy </span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.app.proxy"><i class="ri-information-line"></i></span></label>
<input class="form-control" id="optProxyUrl" type="text" name="textinput" placeholder="https://proxy.fr">
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 advanced" style="display: none;">
<div class="form-group">
<label for="opt-favicon" class="form-label"><span i18n="tabs.app.favicon">Lien vers le favicon </span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.app.logo"><i class="ri-information-line"></i></span></label>
<input class="form-control checkedurl" id="opt-favicon" placeholder="https://monfavicon.png">
</div>
</div>
<div class="col-md-6 advanced" style="display: none;">
<div class="form-group">
<label for="opt-home" class="form-label"><span i18n="tabs.app.home">Lien vers site parent </span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.redirect.logo"><i class="ri-information-line"></i></span></label>
<input class="form-control checkedurl" id="opt-home" placeholder="https://mapage.fr">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="opt-logo" class="form-label"><span i18n="tabs.app.url">Lien vers le logo </span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.logo"><i class="ri-information-line"></i></span></label>
<input class="form-control checkedurl" id="opt-logo" placeholder="https://monlogo.png">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="form-label" for="frm-style" ><span i18n="tabs.app.style">Thème de l'application</span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.color.ihm"><i class="ri-information-line"></i></span></label>
<select class="form-control default" id="opt-style" name="style" onchange="updateTheme(this);">
<option class="alizarin" value="css/themes/alizarin.css">alizarin</option>
<option class="amethyst" value="css/themes/amethyst.css">amethyst</option>
<option class="black" value="css/themes/black.css">black</option>
<option class="blue" value="css/themes/blue.css">blue</option>
<option class="carrot" value="css/themes/carrot.css">carrot</option>
<option class="chambray" value="css/themes/chambray.css">chambray</option>
<option class="default" selected value="css/themes/default.css">default</option>
<option class="theme-designfr" selected value="css/themes/theme-designfr/theme_designfr.css">design_etat</option>
<option class="green" value="css/themes/green.css">green</option>
<option class="green_sea" value="css/themes/green_sea.css">green_sea</option>
<option class="nephritis" value="css/themes/nephritis.css">nephritis</option>
<option class="peter_river" value="css/themes/peter_river.css">peter_river</option>
<option class="pink" value="css/themes/pink.css">pink</option>
<option class="ripe_lemon" value="css/themes/ripe_lemon.css">ripe_lemon</option>
<option class="wet_asphalt" value="css/themes/wet_asphalt.css">wet_asphalt</option>
</select>
</div>
</div>
</div>
<!--Fonctionnalités et options de la carte-->
<div class="row mt-4">
<div class="col-md-6">
<ul class="list-group">
<li class="list-group-item">
<span class="title-accordion" i18n="tabs.app.options_title">Fonctionnalités</span><br>
<span class="subtitle-accordion" i18n="tabs.app.options_text">Activer les outils que vous souhaitez afficher au sein de votre application</span>
</li>
<li class="list-group-item">
<div class="list-flex">
<span i18n="tabs.app.opt_zoom">Outils de zoom</span>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" checked="true" name="checkboxes" id="opt-zoomtools">
<label class="custom-control-label" for="opt-zoomtools"></label>
</div>
</div>
</li>
<li class="list-group-item">
<div class="list-flex">
<span i18n="tabs.app.opt_measure">Outils de mesures</span>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" name="checkboxes" id="opt-measuretools">
<label class="custom-control-label" for="opt-measuretools"></label>
</div>
</div>
</li>
<li class="list-group-item">
<div class="list-flex">
<span i18n="tabs.app.opt_export">Export de la carte en image</span>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" name="checkboxes" id="opt-exportpng">
<label class="custom-control-label" for="opt-exportpng"></label>
</div>
</div>
</li>
<li class="list-group-item">
<div class="list-flex">
<span i18n="tabs.app.opt_geoloc">Se géolocaliser</span>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" name="checkboxes" id="opt-geoloc">
<label class="custom-control-label" for="opt-geoloc"></label>
</div>
</div>
</li>
<li class="list-group-item advanced" style="display: none;">
<div class="list-flex">
<span i18n="tabs.app.opt_coords">Affichage des coordonnées au clic</span>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" name="checkboxes" id="opt-coordinates">
<label class="custom-control-label" for="opt-coordinates"></label>
</div>
</div>
</li>
<li class="list-group-item advanced" style="display: none;">
<div class="list-flex">
<span i18n="tabs.app.opt_mouseposition">Afficher les coordonnées correspondant à la position de la souris</span>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" name="checkboxes" id="opt-mouseposition">
<label class="custom-control-label" for="opt-mouseposition"></label>
</div>
</div>
</li>
<li class="list-group-item advanced" style="display: none;">
<div class="list-flex">
<span i18n="tabs.app.opt_data">Afficher/masquer toutes les données d'une thématique en un clic</span>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" name="checkboxes" id="opt-togglealllayersfromtheme">
<label class="custom-control-label" for="opt-togglealllayersfromtheme"></label>
</div>
</div>
</li>
<li class="list-group-item advanced" style="display: none;">
<div class="list-flex">
<span i18n="tabs.app.opt_mapprint">Impression vue courante</span>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" name="checkboxes" id="opt-mapprint">
<label class="custom-control-label" for="opt-mapprint"></label>
</div>
</div>
</li>
<li class="list-group-item advanced" style="display: none;">
<div class="list-flex">
<span i18n="tabs.app.opt_studio">Ouvrir la carte dans le studio</span>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" name="checkboxes" id="opt-studio">
<label class="custom-control-label" for="opt-studio"></label>
</div>
</div>
</li>
<li class="list-group-item advanced" style="display: none;">
<div class="list-flex">
<span i18n="tabs.app.opt_addlayerstools">Panneau ajout de couches</span>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" name="checkboxes" id="opt-addlayerstools">
<label class="custom-control-label" for="opt-addlayerstools"></label>
</div>
</div>
</li>
</ul>
</div>
<div class="col-md-6">
<ul class="list-group">
<li class="list-group-item">
<span class="title-accordion" i18n="tabs.app.map_title">Options de la carte</span><br>
<span class="subtitle-accordion" i18n="tabs.app.map_text">Paramètrer l'étendue et le zoom de la carte au démarrage de l'application</span>
</li>
<li class="list-group-item p-0">
<!-- Map -->
<div id="map" class="map"></div>
</li>
<li class="list-group-item">
<div class="list-flex">
<span><span i18n="tabs.app.opt_initialextent">Revenir à l'étendue initiale</span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.initial.extent"><i class="ri-information-line"></i></span></span>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" name="checkboxes" id="opt-initialextenttool">
<label class="custom-control-label" for="opt-initialextenttool"></label>
</div>
</div>
</li>
<li class="list-group-item advanced" style="display: none;">
<div class="form-group">
<label for="opt-maxzoom" class="form-label"><span i18n="tabs.app.opt_maxzoom">Zoom maximum </span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.maxzoom"><i class="ri-information-line"></i></span></label>
<input class="form-control" id="opt-maxzoom" placeholder="20">
</div>
</li>
<li class="list-group-item advanced" style="display: none;">
<div class="list-flex">
<span i18n="tabs.app.opt_maxextent">Interdire la navigation hors de l'étendue définie ci-dessus</span>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" name="checkboxes" id="opt-maxextent">
<label class="custom-control-label" for="opt-maxextent"></label>
</div>
</div>
</li>
</ul>
</div>
</div>
<!--./Fonctionnalités et options de la carte-->
<!--Fond de plan-->
<div class="accordion mt-4" id="backgroundlayers-config">
<div class="accordion-item">
<h2 class="accordion-header" >
<a class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseFondPlan" aria-expanded="true" aria-controls="collapseFondPlan">
<div>
<span class="title-accordion" i18n="tabs.app.bg_title">Fonds de plan</span><br>
<span class="subtitle-accordion" i18n="tabs.app.bg_text">Sélectionner les fonds de plan à afficher et le mode d'affichage</span>
</div>
</a>
</h2>
<div id="collapseFondPlan" class="accordion-collapse collapse" aria-labelledby="accordionFondPlan">
<div class="accordion-body p-0">
<ul class="list-group list-group-flush">
<div id="frm-bl"></div>
<li class="list-group-item" >
<div class="row mb-2" >
<div class="col-md-6 advanced" style="display: none;">
<label for="frm-bl-mode" class="form-label" i18n="tabs.app.bg.displaymode" >Mode d'affichage</label>
<select id="frm-bl-mode" name="bl-mode" class="form-control">
<option value="default" i18n="tabs.app.bg.display_normal">Normal</option>
<option value="gallery" i18n="tabs.app.bg.display_gallery">Gallerie</option>
</select>
</div>
<div class="col-md-6">
<label for="frm-bl-mode" class="form-label" i18n="tabs.app.bg.startup_bg">Fond de plan au démarrage</label>
<select id="frm-bl-visible" name="bl-visible" class="form-control" onchange="mv.changeVisibleBaseLayer(this.value)"></select>
</div>
</div>
</li>
<li class="list-group-item advanced" style="display: none;">
<div class="list-flex">
<p class="strong" i18n="tabs.app.bgcustom.title">Ajouter un fond de plan personnalisé</p>
<div class="custom-control custom-switch">
<input onchange="mv.changeBaseMapType(this)" type="checkbox" class="custom-control-input" id="SwitchCustomBackground">
<label class="custom-control-label" for="SwitchCustomBackground"></label>
</div>
</div>
<div id="appCustomBackgroundBlock" class="d-none">
<div class="row mb-2" >
<div class="col-md-12">
<label for="frm-custombg-type" i18n="tabs.app.bgcustom.type" class="form-label">Type</label>
<select class="form-control b" id="frmBlCustomType" name="Type of layer" onchange="mv.selectBaseMapTypeValue(this)">
<option value="" selected i18n="tabs.app.bgcustom.type_empty">Choisir un type...</option>
<!-- <option value="osm" i18n="tabs.app.bgcustom.type_OSM">OSM</option> -->
<option value="wmts" i18n="tabs.app.bgcustom.type_WMTS">WMTS</option>
<option value="wms" i18n="tabs.app.bgcustom.type_WMS">WMS</option>
<option value="vector-tms" i18n="tabs.app.bgcustom.type_TMS">Vector-TMS</option>
</select>
</div>
</div>
<div id="customBgCommons" class="row mt-2 custom-bg-commons" >
<div class="col-md-6">
<div class="form-group">
<label for="formCustomBaseId" class="form-label"><span i18n="tabs.app.bgcustom.base.id">Identifiant</span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.intern.id"><i class="ri-information-line"></i></span></label>
<input class="form-control" id="formCustomBaseId" placeholder="positron" i18n="tabs.app.bgcustom.base.id.ph" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="formCustomBaseLabel" class="form-label"><span i18n="tabs.app.bgcustom.base.label">Libellé</span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.base.name""><i class="ri-information-line"></i></span></label>
<input class="form-control" id="formCustomBaseLabel" placeholder="Positron" i18n="tabs.app.bgcustom.base.label.ph" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="formCustomBaseUrl" class="form-label"><span i18n="tabs.app.bgcustom.base.url">URL</span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.webservice.url"><i class="ri-information-line"></i></span></label>
<input class="form-control checkedurl" type="url" id="formCustomBaseUrl" i18n="tabs.app.bgcustom.base.url.ph" placeholder="http://{a-c}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="formCustomBaseNameLayers" class="form-label"><span i18n="tabs.app.bgcustom.base.nameLayers">Couches</span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.tec.id.layer"><i class="ri-information-line"></i></span></label>
<input class="form-control" id="formCustomBaseNameLayers" i18n="tabs.app.bgcustom.base.nameLayers.ph" placeholder="satellite" required>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="formCustomBaseAttribution" class="form-label"><span i18n="tabs.app.bgcustom.base.attribution">Attribution</span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.src.credit"><i class="ri-information-line"></i></span></label>
<input class="form-control" id="formCustomBaseAttribution" i18n="tabs.app.bgcustom.base.attribution.ph" placeholder="Map tiles by carto.com - Licence cc 3.0">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="formCustomBaseTitle" class="form-label"><span i18n="tabs.app.bgcustom.base.title">Sous-titre</span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.infos"><i class="ri-information-line"></i></span></label>
<input class="form-control" id="formCustomBaseTitle" placeholder="positron" i18n="tabs.app.bgcustom.base.title.ph">
</div>
</div>
</div>
<div class="row mt-2" >
<div class="col-md-6 wmts wms vector-tms custom-bg-type">
<div class="form-group">
<label for="formCustomBaseThumb" class="form-label"><span i18n="tabs.app.bgcustom.base.thumb">Lien vers la vignette</span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.img.preview.base"><i class="ri-information-line"></i></span></label>
<input class="form-control checkedurl" type="url" id="formCustomBaseThumb" i18n="tabs.app.bgcustom.base.thumb.ph" placeholder="https://kartenn.region-bretagne.fr/kartoviz/img/basemap/positron.png" required>
</div>
</div>
<div class="col-md-6 wmts wms custom-bg-type">
<label for="formCustomBaseFormat" class="form-label"><span i18n="tabs.app.bgcustom.base.format">Format</span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.img.from.server"><i class="ri-information-line"></i></span></label>
<select class="form-control" id="formCustomBaseFormat" name="formCustomBaseFormat">
<option value="image/png">image/png</option>
<option value="image/jpeg">image/jpeg</option>
</select>
</div>
<div class="col-md-6 vector-tms custom-bg-type">
<div class="form-group">
<label for="formCustomBaseStyleUrl" class="form-label"><span i18n="tabs.app.bgcustom.base.styleUrl">Lien vers le fichier de style</span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.json.file.base.style"><i class="ri-information-line"></i></span></label>
<input class="form-control checkedurl" type="url" id="formCustomBaseStyleUrl" i18n="tabs.app.bgcustom.base.styleUrl.ph" placeholder="https://wxs.ign.fr/static/vectorTiles/styles/ADMIN_EXPRESS/adminexpress.json" required>
</div>
</div>
<div class="col-md-6 wmts vector-tms custom-bg-type">
<div class="form-group">
<label for="formCustomBaseStyle" class="form-label"><span i18n="tabs.app.bgcustom.base.style">Style</span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.style.tms.name"><i class="ri-information-line"></i></span></label>
<input class="form-control" id="formCustomBaseStyle" placeholder="bdtopo" required>
</div>
</div>
<div class="col-md-6 wmts custom-bg-type">
<div class="form-group">
<label for="formCustomBaseMatrixset" class="form-label"><span i18n="tabs.app.bgcustom.base.matrixset">Matrixset</span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.pyramid.img.name"><i class="ri-information-line"></i></span></label>
<input class="form-control" id="formCustomBaseMatrixset" placeholder="PM">
</div>
</div>
</div>
<div id="BasemapAlertPlaceholder"></div>
<button type="button" id="addCustomBl" onclick="mv.validateFormBaseLayer(this)" class="btn btn-info d-none" ><i class="bi bi-plus-lg"></i><span i18n="add"> Ajouter</span></button>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<!--./Fond de plan-->
<!--Page d'accueil-->
<div class="accordion mt-4 advanced" style="display: none;">
<div class="accordion-item">
<h2 class="accordion-header" id="accordionHomePage">
<a class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseHomePage" aria-expanded="true" aria-controls="collapseHomePage">
<div>
<span class="title-accordion" i18n="tabs.app.home_title">Page d'accueil </span><br>
<span class="subtitle-accordion" i18n="tabs.app.home_text">Paramétrer la page d'accueil / documentation</span>
</div>
</a>
</h2>
<div id="collapseHomePage" class="accordion-collapse collapse" aria-labelledby="accordionHomePage">
<div class="accordion-body">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="opt-titlehelp" class="form-label"><span i18n="tabs.app.help_title">Titre de la fenêtre d'aide / accueil</span></label>
<input class="form-control" id="opt-titlehelp" placeholder="Accueil">
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="opt-iconhelp" class="form-label"><span i18n="tabs.app.help_icon">Icône du bouton</span></label>
<div class="d-flex">
<input type="text" class="icon-class-input form-control" placeholder="fas fa-home" id="opt-iconhelp">
<span class="selected-icon"></span>
<button class="btn btn-outline-info picker-button" type="button" data-bs-target="#iconPicker" data-bs-toggle="modal">
<span i18n="select">Sélectionner</span>
</button>
</div>
</div>
</div>
</div>
<div class="form-group">
<label for="opt-help" i18n="tabs.app.help_link" class="form-label">Lien vers la page d'accueil</label><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.home.url"><i class="ri-information-line"></i></span>
<input class="form-control checkedurl" id="opt-help" name="textinput" type="text" placeholder="https://mapage.html">
</div>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="opt-showhelp">
<label class="custom-control-label" for="opt-showhelp"><span i18n="tabs.app.opt_help">Afficher la page d'accueil au démarrage</span></label>
</div>
</div>
</div>
</div>
</div>
<!--./Page d'accueil-->
<div class="accordion mt-4" id="search-config">
<div class="accordion-item">
<h2 class="accordion-header" id="accordionSearch">
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#collapseSearch" aria-expanded="true" aria-controls="collapseSearch">
<div>
<span class="title-accordion" i18n="tabs.app.search.title">Recherche</span><br>
<span class="subtitle-accordion" i18n="tabs.app.search.subtitle">Paramétrer les fonctionnalités disponibles dans la barre de recherche</span>
</div>
</button>
</h2>
<div id="collapseSearch" class="accordion-collapse collapse show" aria-labelledby="accordionSearch">
<div class="accordion-body p-0">
<ul class="list-group list-group-flush">
<li class="list-group-item">
<div class="list-flex">
<p class="strong" i18n="tabs.app.search.address_search.title">Activer la recherche d'adresse</p>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="SwitchAdressSearch" checked>
<label class="custom-control-label" for="SwitchAdressSearch"></label>
</div>
</div>
<div id="AppSearchBlock">
<div class="row mb-2" >
<div class="col-md-12">
<label for="frm-searchlocalities" i18n="tabs.app.search.address_search.service" class="form-label">Service utilisé</label>
<select class="form-control b" id="frm-searchlocalities" name="searchlocalities" onchange="mv.changeSearchLocalities(this.value)">
<option value="ban" i18n="tabs.app.search.address_search.ban">Base Adresse Nationale</option>
<option value="custom" i18n="tabs.app.search.address_search.custom">Personnalisé</option>
</select>
</div>
</div>
<div class="row my-2 align-items-stretch">
<div class="col-md-6" id="opt-searchl-url" style="display: none;">
<label for="opt-searchlocalities-url" i18n="tabs.app.search.address_search.url" class="form-label">URL</label>
<input class="form-control checkedurl" id="opt-searchlocalities-url" type="text" placeholder="Url du service">
</div>
<div class="col-md-6" id="opt-searchl-attribution" style="display: none;">
<label for="opt-searchlocalities-attribution" i18n="tabs.app.search.address_search.attribution" class="form-label">Attribution</label>
<input class="form-control" id="opt-searchlocalities-attribution" type="text" placeholder="Attribution du service" i18n="tabs.app.search.address_search.attribution.ph">
</div>
</div>
</div>
</li>
<li class="list-group-item advanced" style="display: none;">
<div class="list-flex">
<div>
<p class="strong" i18n="tabs.app.search.entity_search.activate">Activer la recherche d'entité</p>
<p i18n="tabs.app.search.entity_search.p1">La recherche peut être activée si la donnée est de type GEOJSON. Cette fonctionnalité est également activable pour les données de type WMS à la condition que les entités qui composent cette donnée soient également indéxées dans Elasticsearch.</p>
</div>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="opt-searchfeatures">
<label class="custom-control-label" for="opt-searchfeatures"></label>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<!--./Recherche-->
<div class="mt-4">
<a class="btn btn-warning btnNext"><span i18n="studio.wizard.btn.next">Suivant</span> <i class="ri-arrow-right-line"></i> </a>
</div>
</form>
</div>
<!-- /.Application -->
<!-- Thématiques & données -->
<div class="tab-pane container fade" id="themesdata">
<h1><i class="ri-stack-line"></i> <span i18n="tabs.data.title">Thématiques & données</span></h1>
<div class="row mt-5">
<div class="col-md-12">
<ul class="list-group">
<li class="list-group-item">
<span class="title-accordion" i18n="tabs.data.themespanel.title">Panneau des thématiques</span><br>
<span class="subtitle-accordion" i18n="tabs.data.themespanel.subtitle">Créer, importer et gérer vos thématiques et données</span>
</li>
<li class="list-group-item">
<!-- List with handle -->
<div id="themes-list" class="list-group"></div>
<div class="my-3 text-right">
<button id="btn-addTheme" i18n="modal.param.theme.new" title="Créer une nouvelle thématique" class="btn btn-info"
onclick="addTheme(mviewer.tr('modal.new.theme'), true, createId('theme'));">
<span><i class="bi bi-plus-lg"></i> </span>
<span i18n="tabs.data.themespanel.create">Créer</span>
</button>
<button id="btn-importTheme" title="Importer une thématique depuis un autre mviewer" class="btn btn-outline-info" onclick="$('#mod-themesview input').prop('checked', false);" data-bs-toggle="modal" data-bs-target="#mod-themesview">
<span><i class="bi bi-download"></i> </span>
<span i18n="tabs.data.themespanel.import">Importer</span>
</button>
</div>
</li>
<li class="list-group-item list-flex">
<span i18n="tabs.data.themespanel.options">Réduire le panneau des thématiques au démarrage</span>
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" name="checkboxes" id="opt-mini">
<label class="custom-control-label" for="opt-mini"></label>
</div>
</li>
</ul>
</div>
</div>
<div class="mt-4">
<a class="btn btn-outline-warning btnPrev"><i class="ri-arrow-left-line"></i> <span i18n="studio.wizard.btn.previous">Précédent</span></a>
<a class="btn btn-warning btnNext"><span i18n="studio.wizard.btn.next">Suivant</span> <i class="ri-arrow-right-line"></i> </a>
</div>
</div>
<!-- /.Thématiques & données -->
<!-- / - Gestion des versions -->
<!-- Fonctionnalités avancées -->
<div class="tab-pane container fade advanced" id="fadanced" style="display: none">
<h1><i class="ri-list-settings-line"></i> <span i18n="tabs.adv.title">Fonctionnalités avancées</span></h1>
<div class="alert alert-info text-info my-3" role="alert">
<i class="bi bi-exclamation-circle"></i>
<span i18n="tabs.adv.alert">Le paramétrage de cette section est optionnel.</span>
</div>
<!--Recherche ElasticSearch-->
<div class="accordion mt-4" id="accordionElasticSearch">
<div class="accordion-item">
<h2 class="accordion-header" >
<a class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#collapseElasticSearch" aria-expanded="true" aria-controls="collapseElasticSearch">
<div>
<span class="title-accordion" i18n="tabs.search.elastic_search.title">ElasticSearch</span></br>
<span class="subtitle-accordion" i18n="tabs.search.elastic_search.subtitle">Paramétrer une recherche basée sur un index Elasticsearch</span>
</div>
</a>
</h2>
<div id="collapseElasticSearch" class="accordion-collapse collapse" aria-labelledby="accordionElasticSearch">
<div class="accordion-body p-0">
<ul class="list-group list-group-flush">
<li class="list-group-item">
<div id="FadvElasticBlock">
<form>
<div class="row mt-2" >
<div class="col-md-12">
<p class="strong" i18n="tabs.search.elastic_search.activate">Activer la recherche ElasticSearch</p>
<select id="frm-globalsearch" name="globalsearch" class="form-control"
onchange="mv.changeGlobalSearch(this.value)">
<option value="false" i18n="tabs.search.elastic_search.disabled">Non utilisé</option>
<option value="elasticsearch" i18n="tabs.search.elastic_search.enabled">Activé</option>
</select>
</div>
</div>
<div class="row mt-2" >
<div class="col-md-6">
<label for="opt-elasticsearch-url" i18n="tabs.search.elastic_search.es_url" class="form-label">URL Elasticsearch</label>
<input class="form-control" id="opt-elasticsearch-url" type="text" i18n="tabs.search.elastic_search.es_url.ph" placeholder="URL Elasticsearch">
</div>
<div class="col-md-6">
<label for="opt-elasticsearch-geometryfield" i18n="tabs.search.elastic_search.geom_field" class="form-label">Geometryfield</label>
<input class="form-control" id="opt-elasticsearch-geometryfield" type="text" placeholder="geometryfield">
</div>
</div>
<div class="row mt-2" >
<div class="col-md-6">
<label for="opt-elasticsearch-linkid" i18n="tabs.search.elastic_search.linkid" class="form-label">linkid</label>
<input class="form-control" id="opt-elasticsearch-linkid" type="text" placeholder="linkid">
</div>
<div class="col-md-6">
<label for="opt-elasticsearch-doctypes" i18n="tabs.search.elastic_search.doctypes" class="form-label">Doctypes</label>
<input class="form-control" id="opt-elasticsearch-doctypes" type="text" placeholder="doctypes">
</div>
</div>
<div class="row mt-2" >
<div class="col-md-6">
<label for="opt-elasticsearch-querymode" i18n="tabs.search.elastic_search.qmode" class="form-label">Mode</label>
<select id="opt-elasticsearch-querymode" class="form-control">
<option value="match" i18n="tabs.search.elastic_search.qmode_match">match</option>
<option value="term" i18n="tabs.search.elastic_search.qmode_term">term</option>
<option value="phrase" i18n="tabs.search.elastic_search.qmode_phrase">phrase</option>
</select>
</div>
<div class="col-md-6">
<label for="opt-elasticsearch-version" i18n="tabs.search.elastic_search.version" class="form-label">Version</label>
<select id="opt-elasticsearch-version" class="form-control">
<option value="current" i18n="tabs.search.elastic_search.v_current">current</option>
<option value="1.4" i18n="tabs.search.elastic_search.v_1_4">1.4</option>
</select>
</div>
</div>
<div class="row mt-2">
<div class="col-md-12">
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="opt-elasticsearch-bbox" value="0">
<label class="custom-control-label" for="opt-elasticsearch-bbox"></label>
<span i18n="tabs.search.elastic_search.search_in_map_extent">Rechercher dans l'emprise de la carte</span>
</div>
</div>
</div>
</form>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<!--./Recherche ElasticSearch-->
<div class="mt-4">
<a class="btn btn-outline-warning btnPrev"><i class="ri-arrow-left-line"></i> <span i18n="studio.wizard.btn.previous">Précédent</span></a>
<a class="btn btn-warning btnNext"><span i18n="studio.wizard.btn.next">Suivant</span> <i class="ri-arrow-right-line"></i> </a>
</div>
</div>
<!-- /.Fonctionnalités avancées -->
<!-- Publication -->
<div class="tab-pane container fade" id="publication">
<h1 i18n="tabs.publication.finish">Félicitations !</h1>
<h4 class="text-primary" i18n="tabs.publication.subfinish">Vous avez terminé la configuration de votre application mviewer.</h4>
<div id="cardsPublication" class="my-5">
<!--Publish-->
<div style="max-width: 18rem;" id="onlineCard">
<a role="button" onclick="mv.showNamePublishModal(config?.id)" href="#">
<div class="card text-white bg-warning p-3 zoomCard h-100 noborder" style="max-width: 18rem;">
<div class="card-body mb-5">
<span class="iconCard-finish">
<i class="ri-play-line" style="font-size: 20px;vertical-align: middle;"></i>
</span>
<h5 class="card-title mt-4"><span i18n="tabs.publication.publish_title">Publier votre application</span></h5>
<p class="card-text" i18n="tabs.publication.publish_text">Mettre en ligne votre application et obtenez un lien de partage</p>
</div>
</div>
</a>
</div>
<!--Publish-->
<!--Download-->
<div style="max-width: 18rem;">
<a role="button" onclick="downloadXML();" href="#">
<div class="card text-white bg-info p-3 zoomCard h-100 noborder" style="max-width: 18rem;">
<div class="card-body mb-5">
<span class="iconCard-finish">
<i class="ri-download-line" style="font-size: 20px;vertical-align: middle;"></i>
</span>
<h5 class="card-title mt-4"><span i18n="tabs.publication.download_title">Télécharger votre application</span></h5>
<p class="card-text" i18n="tabs.publication.download_text">Télécharger le fichier de configuration .XML</p>
</div>
</div>
</a>
</div>
<!--Download-->
<!--Preview-->
<div style="max-width: 18rem;">
<a role="button" onclick="previewAppsWithoutSave(config?.id, true)" href="#">
<div class="card border-info p-3 zoomCard h-100" style="max-width: 18rem;">
<div class="card-body mb-5">
<span class="iconCard-finish" style=" background-color: #934de236;">
<i class="ri-eye-2-line" style="font-size: 20px;vertical-align: middle;"></i>
</span>
<h5 class="card-title mt-4"><span i18n="tabs.publication.preview_title">Prévisualiser votre application</span></h5>
<p class="card-text" i18n="tabs.publication.preview_text">Tester et valider votre configuration en live</p>
</div>
</div>
</a>
</div>
<!--Preview-->
</div>
<div class="mt-4">
<a class="btn btn-outline-warning btnPrev"><i class="ri-arrow-left-line"></i> <span i18n="studio.wizard.btn.previous">Précédent</span></a>
</div>
</div>
<!-- /.Publication -->
</div>
<!--/.STUDIO TABS-->
</div>
<!-- /CONTAINER STUDIO -->
</div>
</div>
<!-- /.MODULES STUDIO-->
<div id="liveAlertPlaceholder"></div>
</main>
<!-- MODALS -->
<!-- Modal theme options-->
<div class="modal fade" id="mod-themeOptions" role="dialog" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="mod-themeOptions" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" i18n="modal.theme.paramspanel.title">Paramètres de la thématique sélectionnée</h5>
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body" id="theme-edit" data-themeid="">
<div class="row mb-3">
<div class="col-md-6">
<label for="theme-edit-title" class="form-label" i18n="modal.theme.paramspanel.name">Nom</label>
<input type="text" id="theme-edit-title" class="form-control" tabs.search.elastic_search.disabled="Titre">
<div class="custom-control custom-switch mt-2">
<input type="checkbox" class="custom-control-input" id="theme-edit-collapsed">
<label class="custom-control-label" for="theme-edit-collapsed"><span i18n="modal.theme.paramspanel.opt_unfolded">Déroulée par défaut</span><span class="tooltip-info" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-title="tooltip.collapsed"><i class="ri-information-line"></i></label>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label class="settinglabel" i18n="modal.theme.paramspanel.icon">Icône</label>
<span class="selected-icon"></span>
<input type="text" class="icon-class-input form-control advanced" style="display: none;" id="theme-pick-icon" />
<button type="button" class="btn btn-outline-info picker-button mt-2" data-bs-target="#iconPicker" data-bs-toggle="modal">
<span i18n="modal.theme.paramspanel.icon_pick">Choisir une icône</span>
</button>
</div>
</div>
</div>
<hr>
<h6 class="my-2" i18n="modal.theme.paramspanel.data">Données de la thématique</h6>
<!-- List with handle -->
<div id="themeLayers" class="list-group my-2"></div>
<div class="my-3">
<button id="btn-addLayer" class="btn btn-info" onclick="addLayer(mviewer.tr('title.new.layer'));" data-bs-target="#mod-layerNew" data-bs-toggle="modal">
<i class="bi bi-plus-lg"></i>
<span i18n="modal.theme.paramspanel.add_data">Ajouter des données</span>
</button>
</div>
</div>
<div class="modal-footer">
<button id="btn-saveTheme" class="btn btn btn-primary" onclick="mv.saveAllThemes();">
<span i18n="save">Enregistrer</span>
</button>
<button type="button" class="btn btn-outline-primary" data-bs-dismiss="modal" i18n="cancel">Annuler</button>
</div>
</div>
</div>
</div>
<!-- Modal theme options-->
<div class="modal fade" id="mod-themeExtOptions" role="dialog" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="mod-themeExtOptions" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" i18n="modal.theme.paramspanel.title">Paramètres de la thématique sélectionnée</h5>
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body" id="themeExt-edit" data-themeid="">
<div class="row" >
<div class="col-md-12">
<div>
<span class="titleExtModal" id="nameThemeExt"></span>
<span class="theme-infos-layer">Ext.</span>
</div>
</div>
<div class="col-md-12 mt-3">
<label for="themeext-layersvisibility" class="form-label" i18n="modal.themeEx.paramspanel.layervisibility">Affichage des données de la thématique au démarrage de l'application :</label>
<select id="themeext-layersvisibility" class="form-control">
<option value="default" i18n="modal.themeEx.paramspanel.default">Par défaut (comme défini dans l'application source)</option>
<option value="all" i18n="modal.themeEx.paramspanel.all">Toutes les données sont affichées</option>
<option value="none" i18n="modal.themeEx.paramspanel.none">Aucune donnée n'est affichée</option>
</select>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-primary" data-bs-dismiss="modal" i18n="cancel">Annuler</button>
<button id="btn-saveTheme" class="btn btn btn-primary" onclick="saveThemeExt();">
<span i18n="validate">Valider</span>
</button>
</div>
</div>
</div>
</div>
<!-- Modal Credits-->
<div class="modal fade" id="modalCredits" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" role="dialog" aria-labelledby="modalCredits" aria-hidden="true">
<div class="modal-dialog ">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"><span i18n="modal.credits.title">Crédits</span></h5>
<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body">
<p id="creditInfo">MviewerStudio | Licence GPL-3.0 | Version</p>
<div class="alert alert-info text-info my-2" role="alert">
<i class="ri-information-line" style="font-size: 20px;vertical-align: middle;"></i>
<span id="mviewerCompliantInfo">Compatible à partir de la version mviewer</span>
</div>
<p><span class="strong" i18n="modal.credits.lib">Librairies</span><br>Bootstrap 5.2.0 | OpenLayers 7.1</p>
<p><span class="strong" i18n="modal.credits.icon">Icônes</span><br>Remix Icon | Bootstrap Icons </p>
<p><span class="strong" i18n="modal.credits.draw">Illustrations</span><br>VectorJuice sur Freepik.com</p>
<p><span class="strong" i18n="modal.credits.funder">Illustrations</span><br></p>
<div class="row credits">
<div class="col"><img src="https://upload.wikimedia.org/wikipedia/fr/thumb/8/83/R%C3%A9gion-bretagne-logo.svg/132px-R%C3%A9gion-bretagne-logo.svg.png" ></div>