-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
4603 lines (3395 loc) · 136 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
<html>
<!-- See also: http://kempe.net/blog/2014/06/14/leaflet-pan-zoom-image.html -->
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css">
<link rel="stylesheet" type="text/css" href="css/semantic.css">
<link rel="stylesheet" href="css/leaflet-sidebar.css" />
<link rel="stylesheet" href="css/leaflet-list-markers.css" />
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" /> -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
<style>
#image-map {
width: 100vw;
height: 100vh;
border: 1px solid #ccc;
margin-bottom: 10px;
}
/* The side navigation menu */
/*.leaflet-control-zoom.leaflet-bar.leaflet-control {
margin-top: 80px;
margin-left: 12px;
}*/
@font-face {
font-family: "Breathe Fire";
src: url("fonts/Breathe-Fire.ttf") format("truetype");
}
body{
margin: 0;
font-family: "Open Sans";
overflow: hidden;
}
a {
color: #1d569f;
cursor: pointer;
}
i.fa {
padding-top: 12px;
}
.changeMapLink {
font-size: 12px;
padding-left: 4px;
}
.leaflet-control-attribution {
display: none;
}
.list-markers-li a {
color: #000;
}
div#sidebar {
border: 0;
border-radius: 0;
top: 0;
bottom: 0;
left: 0;
z-index: 9998;
}
.sidebar-content {
background-color: #f3f3f3;
}
.sidebar-tabs {
box-shadow: 2px 0px 1px #00000014;
z-index: 9999;
}
.sidebar-pane.not(#place) > .sidebar-header {
margin: -10px -20px 0;
}
/*#sidebar {
height: 50vh;
min-height: 250px;
}*/
/*.list-markers.leaflet-control {
display: none;
}
.list-markers.leaflet-control.active {
display: block;
}*/
.leaflet-popup-content {
text-align: center;
font-size: 24px;
width: auto !important;
font-family: "Breathe Fire";
}
#image-map .leaflet-top.leaflet-left {
left: 44px;
}
.ui.image.icon-mapPin > img {
max-width: 140px;
padding: 0px 25px 0px 25px;
margin: 0 auto;
}
i.fa.checkmark {
left: auto;
bottom: 0;
right: 0em;
border-radius: 0px;
border-top-right-radius: inherit;
border-bottom-right-radius: inherit;
-webkit-box-shadow: 1px 0px 0px 0px transparent inset;
box-shadow: 1px 0px 0px 0px transparent inset;
position: absolute;
height: 100%;
line-height: 1;
border-radius: 0px;
border-top-left-radius: inherit;
border-bottom-left-radius: inherit;
text-align: center;
margin: 0em;
width: 2.57142857em;
background-color: rgba(0, 0, 0, 0.05);
color: '';
-webkit-box-shadow: -1px 0px 0px 0px transparent inset;
box-shadow: -1px 0px 0px 0px transparent inset;
}
.markerType {
cursor: pointer;
}
.ui.medium.image.icon-mapPin {width: 140px;}
.markerColumns {
width: 100%;
}
.markerColumns i {
padding-right: 8px;
}
.markerType {
margin-top: 18px;
margin-bottom: 18px;
}
.storedElementListContainer img.ui.avatar.image,
.elementListContainer img.ui.avatar.image {
width: auto;
height: auto;
margin-right: 12px;
}
.markerForm {
display: none;
}
i.fa.noIconPadding {
padding-top: 0px;
}
.padded.markerForm {
margin-top: 20px;
}
.elementImage {
height: 300px;
width: 100%;
background-size: 100%;
background-repeat: no-repeat;
}
.elementImage {
display: none;
}
div#place {
padding: 0px;
}
.sidebar-pane {
padding-top: 0px;
}
div#place > h1.sidebar-header > span, div#place .markerTitle, div#place .markerDescription {padding: 10px 20px;}
.ui.placeMenuDivider.divider {
margin-top: 65px;
}
.markerMenu {
z-index: 9999 !important;
}
.ui.right.floated.menu.markerContextMenu {
margin-right: 10px;
margin-bottom: 2px;
}
.ui.right.floated.menu.markerContextMenu.editMarkerToolbar {
margin-top: 10px;
}
.articleTitleHeader {
margin: 0px;
}
.markerTitle[contenteditable="true"],
.markerDescription[contenteditable="true"] {
border: 1px solid #d7d7d7;
}
.leaflet-popup-close-button {
display: none;
}
.inputfile {
padding: 25px;
display: block;
border: 3px dashed #0000000d;
cursor: pointer;
}
label.fileUploadLabel {
font-size: 10px;
color: #dddddd;
}
form.fileUploadForm {
margin: 50px;
margin-top: 10px;
margin-bottom: 20px;
}
.uploadNewMapForm {
margin-top: 25px;
}
.uploadFileButton {
cursor: pointer;
}
.uploadFileButton:hover {
background: #f4f4f4;
}
.uploadFileButton.disabled {
pointer-events: none;
}
.hidden {
display: none !important;
}
.markerTypeFilter {
display: none;
}
.mapLinkPreviewContainer {
margin: 0 auto;
margin-bottom: 50px;
display: block;
width: 60%;
}
.mapLinkPreview {
display: block;
width: 60%;
}
.mapLinkLabel {
font-weight: bold;
font-size: 14px;
}
a.ui.button.upOneLevelButton {
margin-top: 20px;
}
.leaflet-popup.leaflet-zoom-animated {
min-width: 200px;
}
.actions.elementLinkButtons > .deny.button {
margin-left: 0px;
}
.actions.elementLinkButtons {
margin-top: 19px;
}
#cke_markerDescription {
display: none;
}
iframe#markerDescription_ifr {
height: 53vh !important;
}
.allMarkers {
padding: 20px;
}
img.ui.avatar.map.image {
max-width: 34px;
border-radius: 0;
margin-right: 15px;
}
#tinymce > p,
.markerDescription > p {
margin-bottom: 16px !important;
}
.showThisMarker, .showAllMarkers {
width: 50%;
}
p.markerDescription img {
max-width: 100%;
}
.cke_inner.cke_reset.cke_maximized {
z-index: 9999 !important;
}
.markerLayerLabel {
position: relative;
display: inline-block;
top: 10px;
}
div#markerLayers .item {
padding: 10px;
padding-right: 0px;
}
div#markerLayers .item:hover {
background: rgba(255, 255, 255, 0.35);
cursor:pointer;
}
.ui.newCategory {
border: 2px dashed #d0d0d0;
padding: 7px;
margin: 14px;
}
div#storedElements {
padding: 0;
}
#storedElements > .ui.header, #storedElements p {
padding-left: 20px;
padding-right: 20px;
}
div#storedElements .appTitle {
padding-left: 20px;
}
.ui.list.markerListContainer {
padding-left: 20px;
padding-bottom: 12px;
}
.categoryContainer i {
color: #7c7c7c;
}
.categoryContainer p {
font-weight: bold;
}
.ui.list.markerListContainer .header {
font-weight: 300;
}
.wikiContainer {
padding: 20px;
}
.wikiContainer .item > .header {
font-weight: 400;
}
.categoryDropdown, .subcategoryDropdown {
cursor: pointer;
}
p.subcategoryDropdown {
padding-top: 10px;
}
.wikiContainer p {
margin: auto;
padding: unset;
}
#storedElements > .ui.header, #storedElements p, .wikiContainer .item > .header {
padding-left: 20px;
padding-right: 20px;
}
.subcategoryDropdown.open {
margin-bottom: 8px;
}
p.categoryContainer {
margin-bottom: 4px;
}
.wikiContainer .addNew i.fa.fa-trash {
color: #b01825;
padding-right: 4px;
}
.wikiContainer .addNew > .header, .wikiContainer .addNew i {
color: #0074d9;
}
.wikiContainer .addNew > .header {
text-transform: uppercase;
font-weight: bold;
font-size: 11px;
margin-top: 5px;
margin-bottom: 14px;
}
.categoryDropdown.open > .item, .subcategoryDropdown.open > .item, .categoryContainer > .item {
padding-left: 28px;
}
.subcategoryItem {
cursor: pointer;
}
.subcategoryItem:hover {
background: #e8e8e8;
}
.subcategoryItem.active {
background: gainsboro;
}
.articleContent {
margin: 25px;
margin-top: 45px;
padding: 18px;
}
.modals.dimmer .ui.modal.wikiArticleModal {
width: calc(100% - 460px);
margin-left: 230px;
overflow-y: scroll;
height: 100vh;
margin-top: 0px;
margin-bottom: 0px;
padding-top: 0px !important;
}
.ui.dimmer.modals.page.transition.visible.active {
padding-top: 0px;
}
.ui.newCategory:hover {
background: gainsboro;
cursor: pointer;
}
#cke_articleContent:not(.visibleModal) {
display: none !important;
}
.markerLayersList > .item.active {
background: #e8f1f8 !important;
}
ul.cke_autocomplete_panel {
z-index: 9999 !important;
}
img.leaflet-marker-icon.leaflet-zoom-animated.leaflet-interactive,
.elementListContainer img.ui.avatar.image {
max-width: 41px !important;
}
img.ui.avatar.image {
border-radius: 0;
}
/* Add new css above this line */
@media (max-width: 700px) {
.modals.dimmer .ui.scrolling.modal.addMarker {
margin-left: 20px;
width: 85%;
}
}
/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
.sidenav {padding-top: 15px;}
.sidenav a {font-size: 18px;}
}
</style>
</head>
<body>
<div class="ui mini modal createNewMarkerIconModal">
<i class="fa fa-close close"></i>
<div class="header">
Upload custom marker layer image
</div>
<div class="createNewMarkerIcon content">
<form action="uploadMarkerIcon.php" class="uploadNewIconForm" method="post" enctype="multipart/form-data">
<label for="newIconToUpload" class="fileUploadLabel"><span>Drag & drop or click to browse...</span></label>
<input type="file" name="fileToUpload" id="newIconToUpload" class="inputfile" data-multiple-caption="{count} files selected">
<input type="submit" value="Upload Image" name="submit" class="ui segment uploadNewIconButton hidden">
</form>
<div class="padded markerForm" style="display: none;">
<div class="ui form">
<div class="field">
<label>Marker title</label>
<input class="ui input markerTitleInput">
</div>
<div class="field">
<label>Marker description</label>
<textarea class="markerDescriptionInput" rows="2"></textarea>
</div>
</div>
</div>
</div>
<div class="actions">
<div class="ui negative button">
Cancel
</div>
<div class="ui positive right labeled icon button addNewMarkerIconButton">
Add
<i class="checkmark icon"></i>
</div>
</div>
</div>
<div class="ui mini modal createNewMarkerLayerModal scrolling">
<i class="fa fa-close close"></i>
<div class="header">
Create new marker layer
</div>
<div class="newWikiElementContent content">
<p>Name your marker layer. Then, edit markers to add them to this layer.</p>
<div class="ui fluid input">
<input type="text" placeholder="New layer name...">
</div>
</div>
<div class="actions">
<div class="ui negative button">
Cancel
</div>
<div class="ui positive right labeled icon button addNewMarkerLayerButton">
Add
<i class="checkmark icon"></i>
</div>
</div>
</div>
<div class="ui mini modal createNewWikiArticle scrolling">
<i class="fa fa-close close"></i>
<div class="header">
Create new encyclopedia article
</div>
<div class="newWikiElementContent content">
<p>Enter a new article name. You can then edit the content.</p>
<div class="ui fluid input">
<input type="text" placeholder="Add article name">
</div>
</div>
<div class="actions">
<div class="ui negative button">
Cancel
</div>
<div class="ui positive right labeled icon button addNewArticleButton">
Add
<i class="checkmark icon"></i>
</div>
</div>
</div>
<div class="ui mini modal createNewWikiCategory scrolling">
<i class="fa fa-close close"></i>
<div class="header">
Create new encyclopedia category
</div>
<div class="newWikiElementContent content">
<p>Enter a new category name. You can then add new articles to it.</p>
<div class="ui fluid input">
<input type="text" placeholder="Add category name">
</div>
</div>
<div class="actions">
<div class="ui negative button">
Cancel
</div>
<div class="ui positive right labeled icon button addNewCategoryButton">
Add
<i class="checkmark icon"></i>
</div>
</div>
</div>
<div class="ui mini modal addMarkerToWiki transition">
<i class="fa fa-close close"></i>
<div class="header">Add marker to encyclopedia category</div>
<div class="newWikiElementContent content">
<p>Choose an encyclopedia category to move this marker into, removing it from the map.</p>
<div class="ui tiny dropdown labeled search icon button markerWikiCategoryDropdownButton" style="border-radius: 0;position: relative;top: 6px;">
<i class="fa fa-tags" style="
position: absolute;
height: 100%;
line-height: 1;
border-radius: 0px;
border-top-left-radius: inherit;
border-bottom-left-radius: inherit;
text-align: center;
margin: 0em;
width: 2.57142857em;
background-color: rgba(0, 0, 0, 0.05);
color: '';
-webkit-box-shadow: -1px 0px 0px 0px transparent inset;
box-shadow: -1px 0px 0px 0px transparent inset;
top: 0em;
left: 0em;
"></i>
<input class="search" autocomplete="off" tabindex="0"><span class="text currentWikiCategoryText currentText">Select wiki category</span>
<div class="menu wikiCategorySelectMenu"></div>
</div>
</div>
<!-- <div class="actions">
<div class="ui negative button">
Cancel
</div>
<div class="ui positive right labeled icon button addNewCategoryButton">
Save
<i class="checkmark icon"></i>
</div>
</div> -->
</div>
<div class="ui modal wikiArticleModal scrolling">
<i class="fa fa-close close"></i>
<div class="header articleTitle">
<h2 class="articleTitleHeader"></h2>
<div class="ui tiny dropdown hidden labeled search icon button wikiCategoryDropdownButton" style="border-radius: 0;position: relative;top: 6px;">
<i class="fa fa-tags" style="
position: absolute;
height: 100%;
line-height: 1;
border-radius: 0px;
border-top-left-radius: inherit;
border-bottom-left-radius: inherit;
text-align: center;
margin: 0em;
width: 2.57142857em;
background-color: rgba(0, 0, 0, 0.05);
color: '';
-webkit-box-shadow: -1px 0px 0px 0px transparent inset;
box-shadow: -1px 0px 0px 0px transparent inset;
top: 0em;
left: 0em;
"></i>
<span class="text currentWikiCategoryText">Select wiki category</span>
<div class="menu wikiCategorySelectMenu">
</div>
</div>
<div class="ui right floated main menu markerContextMenu" style="
float: right;
margin: 0;
">
<a class="icon item" id="closeWikiModal" title="Close window">
<i class="close icon"></i>
</a>
</div>
<div class="ui right floated main menu markerContextMenu articleEditContainer" style="
margin: 0;
margin-right: 20px;
">
<a class="icon item" id="editWikiArticle" title="Edit article">
<i class="edit icon"></i>
</a>
<a class="icon item active green" id="saveWikiArticle" title="Edit article" style="
background: #12812c;
color: white !important;
font-weight: bold;
display: none;
">
Save
</a>
<div class="ui language dropdown right floating icon item" id="deleteWikiArticle" title="Delete article" tabindex="0">
<i class="red trash icon"></i>
<div class="menu" tabindex="-1"></div></div>
</div>
<div class="ui right floated main menu markerContextMenu wikiSaveButtonContainer hidden">
<a class="icon item active green" id="saveArticleEdit" title="Save changes to article" style="background: rgb(18, 129, 44); font-weight: bold; color: white !important;">
Save
</a><a class="icon item active red" id="cancelArticleEdit" title="Cancel without saving" style="background: rgb(186, 71, 71); font-weight: bold; color: white !important;">Cancel</a>
</div>
</div>
<div contenteditable="true" id="articleContent" class="articleContent"></div>
</div>
<div class="ui modal addMarker">
<i class="fa fa-close close"></i>
<div class="header">
Add marker
</div>
<div class="image content">
<div class="ui medium image icon-mapPin">
<img src="img/map-pin-icon.png">
</div>
<div class="markerColumns">
<h2 class="ui header">Use an existing element, or create a new one.</h2>
<div class="ui vertical stripe segment">
<div class="ui equal width stackable internally celled grid">
<div class="column">
<h3> <i class="fa fa-link"></i> Link existing</h3>
<p>Select from existing elements</p>
<div class="ui category search markerSearch linkElementSearch">
<div class="ui fluid icon input">
<input class="prompt" type="text" placeholder="Search people, places things...">
<i class="search icon"></i>
</div>
<div class="results"></div>
</div>
</div>
<div class="column">
<h3><i class="fa fa-plus"></i> Create new</h3>
<p>Add a new element to your map</p>
<div class="ui floating labeled icon dropdown button createNewElementDropdown">
<i class="fa fa-layer-group" style="
position: absolute;
height: 100%;
line-height: 1;
border-radius: 0px;
border-top-left-radius: inherit;
border-bottom-left-radius: inherit;
text-align: center;
margin: 0em;
width: 2.57142857em;
background-color: rgba(0, 0, 0, 0.05);
color: '';
-webkit-box-shadow: -1px 0px 0px 0px transparent inset;
box-shadow: -1px 0px 0px 0px transparent inset;
top: 0em;
left: 0em;
padding-left: 9px;
"></i>
<span class="text">No marker layer selected</span>
<div class="menu elementDropdownContainer">
<div class="header">
Marker layers
</div>
<div class="elementTypeContainer"></div>
<div class="header containerFooter">
<!-- Create new marker layer -->
</div>
</div>
</div>
<div class="padded markerForm">
<div class="ui form">
<div class="field">
<label>Marker title</label>
<input class="ui input newElementMarkerTitleInput">
</div>
<div class="field">
<label>Marker description</label>
<textarea class="newElementMarkerDescriptionInput" rows="2"></textarea>
</div>
</div>
</div>
<div class="actions elementLinkButtons">
<div class="ui black deny button">
Cancel
</div>
<div class="ui positive right labeled icon button addMarkerButton">
Add marker
<i class="fa fa-map-marker checkmark"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="ui modal mini createNewWorldmapModal">
<i class="fa fa-close close"></i>
<div class="header">
Create new worldmap
</div>
<div class="content">
<div class="ui form">
<div class="field">
<label>Map name</label>
<input type="text" name="map-name" class="newWorldmapNameInput" placeholder="Map name">
</div>
<div class="field">
<label>Map description</label>
<textarea class="newWorldmapDescriptionInput" placeholder="Map description"></textarea>
</div>
</div>
<form action="uploadMapImage.php" class="uploadNewWorldmapForm" method="post" enctype="multipart/form-data">
<label for="newWorldmapToUpload" class="fileUploadLabel"><span>Drag & drop or click to browse...</span></label>
<input type="file" name="fileToUpload" id="newWorldmapToUpload" class="inputfile" data-multiple-caption="{count} files selected">
<input type="submit" value="Upload Image" name="submit" class="ui segment uploadNewWorldmapButton hidden">
</form>
</div>
<div class="actions">
<div class="ui black deny button">
Cancel
</div>
<div class="ui positive right labeled icon button addWorldmapButton">
Add new map
<i class="fa fa-map checkmark"></i>
</div>
</div>
</div>
<div class="ui modal mini editMapDetailsModal">
<i class="fa fa-close close"></i>
<div class="header">
Edit map details
</div>
<div class="content">
<div class="ui form">
<div class="field">
<label>Map name</label>
<input type="text" name="map-name" class="editMapNameInput" placeholder="Map name">
</div>
<div class="field">
<label>Map description</label>
<textarea class="editMapDescriptionInput" placeholder="Map description"></textarea>
</div>
</div>
</div>
<div class="actions">
<div class="ui black deny button">
Cancel
</div>
<div class="ui positive button editMapButton">
Edit map
</div>
</div>
</div>
<div class="ui modal addMapToMarkerModal">
<i class="fa fa-close close"></i>
<div class="header">
Link a map to this marker
</div>
<div class="image content">
<div class="ui medium image icon-mapPin">
<img src="img/map-pin-icon.png">
</div>
<div class="markerColumns">
<h2 class="ui header">Use an existing map, or upload a new one.</h2>
<div class="ui vertical stripe segment">
<div class="ui equal width stackable internally celled grid">
<div class="column">
<h3> <i class="fa fa-link"></i> Link existing map</h3>
<div class="ui category search mapSearch">
<div class="ui fluid icon input">
<input class="prompt" type="text" placeholder="Search maps...">
<i class="search icon"></i>
</div>
<div class="results"></div>
</div>
</div>
<div class="column createNewMapColumn">
<h3><i class="fa fa-plus"></i> Create a new map</h3>
<div class="ui form">
<div class="field">
<label>Map name</label>
<input type="text" name="map-name" class="createNewMapNameInput" placeholder="Map name">
</div>
<div class="field">
<label>Map description</label>
<textarea class="createNewMapDescriptionInput" placeholder="Map description"></textarea>
</div>
</div>
<form action="uploadMapImage.php" class="uploadNewMapForm" method="post" enctype="multipart/form-data">
<label for="newMapToUpload" class="fileUploadLabel"><span>Drag & drop or click to browse...</span></label>
<input type="file" name="fileToUpload" id="newMapToUpload" class="inputfile" data-multiple-caption="{count} files selected">
<input type="submit" value="Upload Image" name="submit" class="ui segment uploadNewMapButton hidden">
</form>
<div class="padded markerForm">
<div class="ui form">
<div class="field">
<label>Marker title</label>
<input class="ui input markerTitleInput">
</div>
<div class="field">
<label>Marker description</label>
<textarea class="markerDescriptionInput" rows="2"></textarea>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="mapLinkPreviewContainer hidden">
<div class="ui form">
<div class="grouped fields">
<label for="fruit">Link to existing map, or create a new map with this map image?</label>
<div class="field">
<div class="ui radio checkbox linkExistingMapToggle">
<input type="radio" name="fruit" checked="" tabindex="0" class="hidden">
<label>Link to existing map</label>
</div>
</div>
<div class="field">
<div class="ui radio checkbox createNewMapToggle">
<input type="radio" name="fruit" tabindex="0" class="hidden">
<label>Create new map with this image</label>
</div>
</div>
</div>
<div class="ui hidden form createNewNestedMapForm">
<div class="field">
<label>Map name</label>
<input type="text" name="first-name" placeholder="Map name" class="createNewMapTitle">
</div>
<div class="field">
<label>Map description</label>
<textarea placeholder="Map description" class="createNewMapDescription"></textarea>
</div>
</div>
<img class="mapLinkPreview">
</div>