Correction for multiple page editions
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
|
||||
<div>
|
||||
<form class="sortblocs" action="/{{ page }}/sortblocs" method="POST" id="myblocs">
|
||||
<input id="csrf_token" name="csrf_token" type="hidden" value="{{ csrf_token() }}">
|
||||
{% include 'admin/_blocs-list.html' %}
|
||||
</form>
|
||||
<hr/>
|
||||
<form action="{{ url_for('sortblocs', page=page) }}" method="POST" id="myblocs">
|
||||
<input id="csrf_token" name="csrf_token" type="hidden" value="{{ csrf_token() }}">
|
||||
{% include 'admin/_blocs-list.html' %}
|
||||
|
||||
<button class="btn btn-success" type="submit" form="myblocs"> Enregister </button>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
<hr/>
|
||||
|
||||
<button class="btn btn-outline-success" onclick="printForm()">+</button>
|
||||
|
||||
@@ -40,14 +45,13 @@
|
||||
<br/>
|
||||
<button type="submit" class="btn btn-success"
|
||||
onclick="valid_nameBloc()"
|
||||
hx-post="/{{ page }}/addBloc"
|
||||
hx-post="{{ url_for('add_bloc', page=page) }}"
|
||||
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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user