mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-24 20:33:11 +00:00
[Printer] refactor templates
This commit is contained in:
parent
6c903b371c
commit
094be7e59e
2 changed files with 13 additions and 5 deletions
|
@ -20,16 +20,18 @@
|
||||||
{% massive_bootstrap_form job "" %}
|
{% massive_bootstrap_form job "" %}
|
||||||
<button class="btn btn-danger form-job-remove" type="button">
|
<button class="btn btn-danger form-job-remove" type="button">
|
||||||
<span class="fa fa-times"></span>
|
<span class="fa fa-times"></span>
|
||||||
|
{% trans "Delete file"%}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-xs-12 row btn-toolbar">
|
<hr>
|
||||||
<button type="button" class="btn btn-primary" role="button" id="add_one">{% trans "Add a file"%}</button>
|
|
||||||
|
|
||||||
{% 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>
|
||||||
<div style="clear:both; margin-bottom:1em"></div>
|
<div style="clear:both; margin-bottom:1em"></div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -38,6 +40,7 @@
|
||||||
var template = `{% bootstrap_form jobform.empty_form %}
|
var template = `{% bootstrap_form jobform.empty_form %}
|
||||||
<button class="btn btn-danger form-job-remove" type="button">
|
<button class="btn btn-danger form-job-remove" type="button">
|
||||||
<span class="fa fa-times"></span>
|
<span class="fa fa-times"></span>
|
||||||
|
{% trans "Delete file"%}
|
||||||
</button>`
|
</button>`
|
||||||
|
|
||||||
function add_job() {
|
function add_job() {
|
||||||
|
|
|
@ -16,10 +16,15 @@
|
||||||
<div id="form_set" class="form-group container">
|
<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">
|
<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 "" %}
|
{% massive_bootstrap_form job "" %}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</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>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue