mirror of
https://github.com/denizsafak/abogen.git
synced 2026-07-18 21:50:28 +02:00
refactor: Update upload modal inclusion to use context blocks for better readability
This commit is contained in:
@@ -17,7 +17,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{% include "partials/upload_modal.html" with pending=None, readonly=False, active_step='settings' %}
|
{% with pending=None, readonly=False, active_step='settings' %}
|
||||||
|
{% include "partials/upload_modal.html" %}
|
||||||
|
{% endwith %}
|
||||||
|
|
||||||
{% include "partials/reader_modal.html" %}
|
{% include "partials/reader_modal.html" %}
|
||||||
|
|
||||||
|
|||||||
@@ -171,7 +171,9 @@
|
|||||||
<form method="post" action="{{ url_for('web.cancel_pending_job', pending_id=pending.id) }}" id="cancel-form"></form>
|
<form method="post" action="{{ url_for('web.cancel_pending_job', pending_id=pending.id) }}" id="cancel-form"></form>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{% include "partials/upload_modal.html" with pending=pending, readonly=True, active_step='chapters' %}
|
{% with pending=pending, readonly=True, active_step='chapters' %}
|
||||||
|
{% include "partials/upload_modal.html" %}
|
||||||
|
{% endwith %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
|
|||||||
@@ -411,7 +411,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
{% include "partials/upload_modal.html" with pending=pending, readonly=True, active_step='speakers' %}
|
{% with pending=pending, readonly=True, active_step='speakers' %}
|
||||||
|
{% include "partials/upload_modal.html" %}
|
||||||
|
{% endwith %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
|
|||||||
Reference in New Issue
Block a user