bla
This commit is contained in:
parent
899a03c76b
commit
4598a026ee
2 changed files with 18 additions and 15 deletions
|
@ -187,10 +187,13 @@ button[type="submit"]:hover {
|
|||
flex-direction: column;
|
||||
}
|
||||
|
||||
textarea {
|
||||
.admin-textarea, .admin-input-date, #activityType {
|
||||
background: none;
|
||||
border: none;
|
||||
border-bottom: 1px solid orange;
|
||||
margin: 5px 0px;
|
||||
font-size: 15px;
|
||||
height: 27px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 800px) {
|
||||
|
|
|
@ -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"></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: <input type="datetime-local"></input></div>
|
||||
<div id="activity-end-add" class="activity-end">Fin: <input type="datetime-local"></input></div>
|
||||
<div class="activity-title">Titre: <textarea class="admin-textarea"></textarea></div>
|
||||
<div class="activity-desc">Description: <textarea class="admin-textarea"></textarea></div>
|
||||
<div class="activity-where">Lieu: <textarea class="admin-textarea"></textarea></div>
|
||||
<div class="activity-start">Début: <input type="datetime-local" class="admin-input-date"></input></div>
|
||||
<div id="activity-end-add" class="activity-end">Fin: <input type="datetime-local" class="admin-input-date"></input></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">${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>
|
||||
<div class="activity-title">Event: <textarea class="admin-textarea">${activityData[entry].title}</textarea></div>
|
||||
<div class="activity-desc">Description: <textarea class="admin-textarea">${activityData[entry].desc}</textarea></div>
|
||||
<div class="activity-where">Lieu: <textarea class="admin-textarea">${activityData[entry].where}</textarea></div>
|
||||
<div class="activity-start">Début: <input type="datetime-local" class="admin-input-date" value="${toIsoString(new Date(activityData[entry].start))}"></input></div>
|
||||
<div class="activity-end">Fin: <input type="datetime-local" class="admin-input-date" value="${toIsoString(new Date(activityData[entry].end))}"></input></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">${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-title">Trésor: <textarea class="admin-textarea">${activityData[entry].title}</textarea></div>
|
||||
<div class="activity-desc">Description: <textarea class="admin-textarea">${activityData[entry].desc}</textarea></div>
|
||||
<div class="activity-where">Lieu: <textarea class="admin-textarea">${activityData[entry].where}</textarea></div>
|
||||
<div class="activity-start">Début: <input type="datetime-local" class="admin-input-date" value="${toIsoString(new Date(activityData[entry].start))}"></input></div>
|
||||
<div class="activity-state">Status: ${activityData[entry].treasureState}</div>
|
||||
<span class="activity-footer">
|
||||
<div class="activity-uid">UID: ${activityData[entry].activityUid}</div>
|
||||
|
|
Loading…
Reference in a new issue