v0.8.3 - Added uploade images function
This commit is contained in:
@@ -24,21 +24,21 @@
|
||||
</style>
|
||||
<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
|
||||
<h1>Opret Menuplan:</h1>
|
||||
<form action="{{ action('MenuPlanController@store') }}" method="post">
|
||||
<form action="{{ action('MenuPlanController@store') }}" method="post" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<label for="week">Uge nr.</label>
|
||||
<input type="number" name="week" id="week" min="1" max="53" placeholder="1" required>
|
||||
<div id="editor">
|
||||
<h2 class="ql-align-center"><strong style="color: rgb(0, 120, 138);">Mandag:</strong></h2>
|
||||
<h2 class="ql-align-center"><strong>Mandag:</strong></h2>
|
||||
<p class="ql-align-center">{Mandag}</p>
|
||||
<p class="ql-align-center"><br></p>
|
||||
<h2 class="ql-align-center"><strong style="color: rgb(0, 120, 138);">Tirsdag:</strong></h2>
|
||||
<h2 class="ql-align-center"><strong>Tirsdag:</strong></h2>
|
||||
<p class="ql-align-center">{Tirsdag}</p>
|
||||
<p class="ql-align-center"><br></p>
|
||||
<h2 class="ql-align-center"><strong style="color: rgb(0, 120, 138);">Onsdag:</strong></h2>
|
||||
<h2 class="ql-align-center"><strong>Onsdag:</strong></h2>
|
||||
<p class="ql-align-center">{Onsdag}</p>
|
||||
<p class="ql-align-center"><br></p>
|
||||
<h2 class="ql-align-center"><strong style="color: rgb(0, 120, 138);">Torsdag:</strong></h2>
|
||||
<h2 class="ql-align-center"><strong>Torsdag:</strong></h2>
|
||||
<p class="ql-align-center">{Torsdag}</p>
|
||||
</div>
|
||||
<textarea name="menu" class="d-none" id="hiddenArea"></textarea>
|
||||
@@ -49,7 +49,8 @@
|
||||
</span>
|
||||
</label>
|
||||
|
||||
<input id="fileuploade" type="file" id="myFile" name="filename">
|
||||
<label id="fileuploadee"for="fileuploade">Baggrundsbillede til nyheden (Valgfri):</label>
|
||||
<input id="fileuploade" type="file" name="resource">
|
||||
|
||||
|
||||
<input type="submit" class="btn btn-dark text-white" value="Opret Menuplan">
|
||||
@@ -97,12 +98,13 @@
|
||||
function change() {
|
||||
if ($('#isNews').is(":checked"))
|
||||
{
|
||||
$('#fileuploade').show(500);
|
||||
$('#fileuploade').show(400);
|
||||
$('#fileuploadee').show(200);
|
||||
}else {
|
||||
$('#fileuploade').hide();
|
||||
$('#fileuploadee').hide();
|
||||
}
|
||||
}
|
||||
|
||||
change();
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user