v1.4.4 Made news expiration date, add category to app homepages, made small css things

This commit is contained in:
2020-10-07 15:27:29 +02:00
parent f70d6a7a95
commit 22694bd0fb
15 changed files with 83 additions and 81 deletions
@@ -41,11 +41,15 @@
<div id="editor"></div>
<textarea name="guide_articles" class="d-none" id="hiddenArea"></textarea>
<label class="toggle">
<input class="toggle__input" type="checkbox" name="newsoption">
<input id="isNews" class="toggle__input" type="checkbox" name="newsoption" onclick="change()">
<span class="toggle__label">
<span class="toggle__text">Opret som nyhed</span>
</span>
</label>
<div class="form-group" style="display: flex; flex-direction: column" id="delete_event">
<label for="date">Dato til når nyheden skal slettes (valgfri):</label>
<input type="datetime-local" name="news_expiration_date" id="date">
</div>
<label id="fileuploadee"for="fileuploade">Baggrundsbillede til nyheden (Valgfri):</label>
<input id="fileuploade" type="file" name="resource" accept="image/*">
<input type="submit" id="disable" class="btn btn-dark text-white" value="Opret">
@@ -144,5 +148,16 @@
})
function change() {
if ($('#isNews').is(":checked"))
{
$('#delete_event').show(400);
}else {
$('#delete_event').hide(400);
}
}
change();
</script>
@endsection