49 lines
1.3 KiB
HTML
49 lines
1.3 KiB
HTML
|
|
<div>
|
|
<form class="sortblocs" action="/sortblocs" method="POST" id="myblocs">
|
|
<input id="csrf_token" name="csrf_token" type="hidden" value="{{ csrf_token() }}">
|
|
{% include 'admin/_blocs-list.html' %}
|
|
</form>
|
|
<hr/>
|
|
|
|
<button class="btn btn-outline-success" onclick="printForm()">+</button>
|
|
|
|
<div class="formAddBloc" id="addBloc">
|
|
<form action="/addBloc" method="POST" class="" >
|
|
<input id="csrf_token" name="csrf_token" type="hidden" value="{{ csrf_token() }}">
|
|
<h3>Créé un nouveau bloc</H3>
|
|
<br>
|
|
|
|
<label for="nom"><b>Nom du bloc </b></label><br/>
|
|
<input type="text" name="blocName" placeholder="Nom" id="blocName" required="">
|
|
<br>
|
|
<label for="link"><b>Type de bloc</b></label>
|
|
<br/>
|
|
<select id="blocType" name="blocType" size="8">
|
|
<option value="presentation">Présentation</option>
|
|
<option value="text">Texte libre</option>
|
|
<option value="gallery">Galerie</option>
|
|
<option value="external_link">Lien externe</option>
|
|
<option value="contact">Contact</option>
|
|
</select>
|
|
<br/>
|
|
<button type="submit" class="btn btn-success"
|
|
hx-post="/addBloc"
|
|
hx-swap="outerHTML"
|
|
hx-target="#myblocs"> Créer le bloc </button>
|
|
</form>
|
|
</div>
|
|
<hr/>
|
|
|
|
<button class="btn btn-success" type="submit" form="myblocs"> Enregister </button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|