v1.4.4 Made news expiration date, add category to app homepages, made small css things
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user