This commit is contained in:
asyncnomi 2023-01-03 22:00:10 +01:00
parent 3951f5875a
commit 899a03c76b

View file

@ -206,9 +206,9 @@ 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}"></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-title">Event: <textarea type="text">${activityData[entry].title}</textarea></div>
<div class="activity-desc">Description: <textarea type="text">${activityData[entry].desc}</textarea></div>
<div class="activity-where">Lieu: <textarea type="text">${activityData[entry].where}</textarea></div>
<div class="activity-start">Début: <input type="datetime-local" value="${toIsoString(new Date(activityData[entry].start))}"></input></div>
<div class="activity-end">Fin: <input type="datetime-local" value="${toIsoString(new Date(activityData[entry].end))}"></input></div>
<span class="activity-footer">
@ -223,9 +223,9 @@ 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}"></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-title">Trésor: <textarea type="text">${activityData[entry].title}</textarea></div>
<div class="activity-desc">Description: <textarea type="text">${activityData[entry].desc}</textarea></div>
<div class="activity-where">Lieu: <textarea type="text">${activityData[entry].where}</textarea></div>
<div class="activity-start">Début: <input type="datetime-local" value="${toIsoString(new Date(activityData[entry].start))}"></input></div>
<div class="activity-state">Status: ${activityData[entry].treasureState}</div>
<span class="activity-footer">