Add Organise pages button to the edit set page
This commit is contained in:
1 parent
f6a3b760fa
commit
480dd4993b
1 file changed
+23
@@ -165,6 +165,29 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% set image_pages = set.image_instructions %}
|
||||||
|
{% if image_pages %}
|
||||||
|
<div class="card shadow mt-4">
|
||||||
|
<div class="card-header bg-light">
|
||||||
|
<h5 class="mb-0"><i class="bi bi-arrows-move"></i> Page Order</h5>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<p>
|
||||||
|
This set has {{ image_pages|length }} image page{% if image_pages|length != 1 %}s{% endif %}.
|
||||||
|
Drag them into the right order, or sort the whole lot by
|
||||||
|
filename in one go.
|
||||||
|
</p>
|
||||||
|
<a href="{{ url_for('instructions.organise', set_id=set.id) }}"
|
||||||
|
class="btn btn-outline-primary">
|
||||||
|
<i class="bi bi-arrows-move"></i> Organise pages
|
||||||
|
</a>
|
||||||
|
<div class="form-text mt-2">
|
||||||
|
Opens a separate page, so save any changes above first.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="card shadow mt-4">
|
<div class="card shadow mt-4">
|
||||||
<div class="card-header bg-light">
|
<div class="card-header bg-light">
|
||||||
<h5 class="mb-0"><i class="bi bi-info-circle"></i> Set Information</h5>
|
<h5 class="mb-0"><i class="bi bi-info-circle"></i> Set Information</h5>
|
||||||
|
|||||||
Reference in new issue
Block a user