This commit is contained in:
asyncnomi 2023-01-03 21:53:43 +01:00
parent 1cf6eefbc1
commit b78c63f630

View file

@ -186,11 +186,11 @@ function get_admin(type) {
<option value="event">Event</option>
<option value="treasure">Trésor</option>
</select>
<div class="activity-title">Titre: <textarea type="text"/></div>
<div class="activity-desc">Description: <textarea type="text"/></div>
<div class="activity-where">Lieu: <textarea type="text"/></div>
<div class="activity-start">Début: <textarea type="datetime-local"/></div>
<div id="activity-end-add" class="activity-end">Fin: <textarea type="datetime-local"/></div>
<div class="activity-title">Titre: <textarea type="text"></textarea></div>
<div class="activity-desc">Description: <textarea type="text"></textarea></div>
<div class="activity-where">Lieu: <textarea type="text"></textarea></div>
<div class="activity-start">Début: <textarea type="datetime-local"></textarea></div>
<div id="activity-end-add" class="activity-end">Fin: <textarea type="datetime-local"></textarea></div>
<span class="activity-btn">
<div id="activity-btn-add">Ajouter une activité</div>
</span>
@ -206,11 +206,11 @@ function get_admin(type) {
if (activityData[entry].type = "event") {
$("#admin-content").append(`
<span id="${activityData[entry].activityUid}" class="activity">
<div class="activity-title">Event: <textarea type="text" value="${activityData[entry].title}"/></div>
<div class="activity-desc">Description: <textarea type="text" value="${activityData[entry].desc}"/></div>
<div class="activity-where">Lieu: <textarea type="text" value="${activityData[entry].where}"/></div>
<div class="activity-start">Début: <textarea type="datetime-local" value="${toIsoString(new Date(activityData[entry].start))}"/></div>
<div class="activity-end">Fin: <textarea type="datetime-local" value="${toIsoString(new Date(activityData[entry].end))}"/></div>
<div class="activity-title">Event: <textarea type="text" value="${activityData[entry].title}"></textarea></div>
<div class="activity-desc">Description: <textarea type="text" value="${activityData[entry].desc}"></textarea></div>
<div class="activity-where">Lieu: <textarea type="text" value="${activityData[entry].where}"></textarea></div>
<div class="activity-start">Début: <textarea type="datetime-local" value="${toIsoString(new Date(activityData[entry].start))}"></textarea></div>
<div class="activity-end">Fin: <textarea type="datetime-local" value="${toIsoString(new Date(activityData[entry].end))}"></textarea></div>
<span class="activity-footer">
<div class="activity-uid">UID: ${activityData[entry].activityUid}</div>
</span>
@ -223,10 +223,10 @@ function get_admin(type) {
} else if (activityData[entry].type = "treasure") {
$("#admin-content").prepend(`
<span id="${activityData[entry].activityUid}" class="activity">
<div class="activity-title">Trésor: <textarea type="text" value="${activityData[entry].title}"/></div>
<div class="activity-desc">Description: <textarea type="text" value="${activityData[entry].desc}"/></div>
<div class="activity-where">Lieu: <textarea type="text" value="${activityData[entry].where}"/></div>
<div class="activity-start">Début: <textarea type="datetime-local" value="${toIsoString(new Date(activityData[entry].start))}"/></div>
<div class="activity-title">Trésor: <textarea type="text" value="${activityData[entry].title}"></textarea></div>
<div class="activity-desc">Description: <textarea type="text" value="${activityData[entry].desc}"></textarea></div>
<div class="activity-where">Lieu: <textarea type="text" value="${activityData[entry].where}"></textarea></div>
<div class="activity-start">Début: <textarea type="datetime-local" value="${toIsoString(new Date(activityData[entry].start))}"></textarea></div>
<div class="activity-state">Status: ${activityData[entry].treasureState}</div>
<span class="activity-footer">
<div class="activity-uid">UID: ${activityData[entry].activityUid}</div>