-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit-event.html
More file actions
126 lines (107 loc) · 6.62 KB
/
edit-event.html
File metadata and controls
126 lines (107 loc) · 6.62 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Edit Event | LaxMap 🥍</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" />
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
</head>
<body>
<div id="header-placeholder"></div>
<main>
<div class="container">
<div class="form-section">
<h2>Search Event by ID</h2>
<div class="form-group">
<input class="full-width-input" type="text" id="searchEventId" placeholder="Enter the unique event ID" required>
</div>
</br>
<button type="button" id="searchButton" class="edit-button">Search Event</button>
</div>
<div id="eventEditFormContainer" style="display: none;">
<h2>Event Details</h2>
<form id="editEventForm">
<input type="hidden" id="eventId">
<div class="form-group">
<label for="editEventName">Event Name:</label>
<input type="text" id="editEventName" required class="full-width-input">
</div>
<div class="form-group">
<label for="editEventLocation">Location (City, Country):</label>
<input type="text" id="editEventLocation" required class="full-width-input">
<small>Type a city and click outside the box to get coordinates.</small>
</div>
<div class="form-group">
<label for="editLatitude">Latitude:</label>
<input type="number" id="editLatitude" step="any" class="full-width-input">
</div>
<div class="form-group">
<label for="editLongitude">Longitude:</label>
<input type="number" id="editLongitude" step="any" class="full-width-input">
</div>
<div id="geolocationMessage" class="message" style="margin-top: 5px; margin-bottom: 15px;"></div>
<div class="form-group">
<label for="customEventType">Game Type:</label>
<div id="customEventType" class="custom-dropdown">
<button type="button" class="dropdown-toggle" aria-haspopup="listbox" aria-expanded="false" aria-controls="eventTypeOptions">Select Game Type</button>
<ul class="dropdown-options" role="listbox" id="eventTypeOptions"></ul>
</div>
</div>
<div class="form-group">
<label for="customGenderType">Gender:</label> <div id="customGenderType" class="custom-dropdown"> <button type="button" class="dropdown-toggle" aria-haspopup="listbox" aria-expanded="false" aria-controls="eventGenderOptions">Select Gender</button>
<ul class="dropdown-options" role="listbox" id="eventGenderOptions"></ul>
</div>
</div>
<div class="form-group">
<label for="editEventCost">Cost:</label>
<div class="cost-details">
<input type="number" id="editEventCost" step="0.01" min="0" placeholder="e.g., 25.00" class="full-width-input-inline">
<div id="customCurrencyType" class="custom-dropdown full-width-input-inline"> <button type="button" class="dropdown-toggle" aria-haspopup="listbox" aria-expanded="false" aria-controls="currencyOptions">Select Currency</button>
<ul class="dropdown-options" role="listbox" id="currencyOptions"></ul>
</div>
<div id="customCostType" class="custom-dropdown full-width-input-inline">
<button type="button" class="dropdown-toggle" aria-haspopup="listbox" aria-expanded="false" aria-controls="costTypeOptions">Not Specified</button>
<ul class="dropdown-options" role="listbox" id="costTypeOptions"></ul>
</div>
</div>
</div>
<div class="form-group">
<label for="editEventStartDate">Start Date:</label>
<div class="custom-date-input"> <input type="date" id="editEventStartDate" required class="full-width-input">
</div>
</div>
<div class="form-group">
<label for="editEventEndDate">End Date:</label>
<div class="custom-date-input"> <input type="date" id="editEventEndDate" class="full-width-input">
</div>
</div>
<div class="form-group">
<label for="editEventDescription">Description:</label>
<textarea id="editEventDescription" rows="4" class="full-width-input"></textarea>
</div>
<div class="form-group">
<label for="editEventLink">More Info Link (optional):</label>
<input type="url" id="editEventLink" placeholder="e.g., https://example.com/more-info" class="full-width-input">
</div>
<div class="form-group">
<label for="editContactEmail">Contact Email (optional):</label>
<input type="email" id="editContactEmail" placeholder="e.g., info@yourevent.com" class="full-width-input">
</div>
<button type="submit" id="saveChangesButton" class="button">Save Changes</button>
<button type="button" id="deleteEventButton" class="button delete-button">Delete Event</button>
</form>
</div>
<div id="message" class="message"></div>
<p>Can't remember your event ID? <a href="mailto:jakkolo@gmail.com" style="color: black; text-decoration: underline;">Contact Me</a> </p>
</div>
</main>
<div id="footer-placeholder"></div>
<script type="module" src="edit-event.js"></script>
<script src="include.js"></script>
<script src="load-header.js"></script>
</body>
</html>