mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-28 15:42:25 +00:00
[Printer] refactor templates
This commit is contained in:
parent
6c903b371c
commit
094be7e59e
2 changed files with 13 additions and 5 deletions
|
@ -15,21 +15,23 @@
|
|||
{% bootstrap_formset_errors jobform %}
|
||||
<div class="row">
|
||||
<div id="form_set" class="form-group container">
|
||||
{% for job in jobform.forms %}
|
||||
{% for job in jobform.forms %}
|
||||
<div class="file_to_print col-xs-12 col-sm-4 col-md-3" style="margin-top:1em">
|
||||
{% massive_bootstrap_form job "" %}
|
||||
<button class="btn btn-danger form-job-remove" type="button">
|
||||
<span class="fa fa-times"></span>
|
||||
{% trans "Delete file"%}
|
||||
</button>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 row btn-toolbar">
|
||||
<button type="button" class="btn btn-primary" role="button" id="add_one">{% trans "Add a file"%}</button>
|
||||
<hr>
|
||||
|
||||
{% bootstrap_button action_name name="Next" button_type="submit" icon="star" %}
|
||||
<div class="col-xs-12 row btn-toolbar">
|
||||
<button type="button" class="btn btn-primary" icon="plus" role="button" id="add_one">{% trans "Add a file"%}</button>
|
||||
{% bootstrap_button action_name button_type="submit" icon='ok' button_class='btn-success' %}
|
||||
</div>
|
||||
<div style="clear:both; margin-bottom:1em"></div>
|
||||
</form>
|
||||
|
@ -38,6 +40,7 @@
|
|||
var template = `{% bootstrap_form jobform.empty_form %}
|
||||
<button class="btn btn-danger form-job-remove" type="button">
|
||||
<span class="fa fa-times"></span>
|
||||
{% trans "Delete file"%}
|
||||
</button>`
|
||||
|
||||
function add_job() {
|
||||
|
|
|
@ -16,10 +16,15 @@
|
|||
<div id="form_set" class="form-group container">
|
||||
{% for job in jobform.forms %}
|
||||
<div class="file_to_print col-xs-12 col-sm-4 col-md-3" style="margin-top:1em">
|
||||
<h4>Summary</h4>
|
||||
<h6>{% trans "Filename : " %}{{ job.instance.filename }}</h6>
|
||||
<h6>{% trans "Price for one copy : " %}{{ job.instance.price }} €</h6>
|
||||
<h6>{% trans "Number of pages : " %}{{ job.instance.pages }}</h6>
|
||||
<h4>Advanced options</h4>
|
||||
{% massive_bootstrap_form job "" %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% bootstrap_button action_name name="Print" button_type="submit" icon="star" %}
|
||||
{% bootstrap_button action_name button_type="submit" icon="ok" button_class='btn-success' %}
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue