mirror of
https://github.com/ToxicCrack/PrintABrick.git
synced 2025-05-20 22:20:08 -07:00
35 lines
1.4 KiB
Twig
35 lines
1.4 KiB
Twig
{% import 'macros/blocks.html.twig' as blocks %}
|
|
{% import 'macros/elements.html.twig' as elements %}
|
|
|
|
{% block content %}
|
|
{% for label, flashes in app.session.flashbag.all %}
|
|
{% for flash in flashes %}
|
|
{{ elements.flash(label,flash) }}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
<div class="ui segment clearing basic vertical">
|
|
<a class="ui primary right floated button" href="{{ path('set_zip', {id: set.id, sorted: false }) }}" download><i class="download icon"></i> {{ 'set.download.unicolor.button' | trans}}</a>
|
|
</div>
|
|
|
|
{% if models|length > 0 %}
|
|
<div class="ui segment vertical basic">
|
|
<h2 class="ui dividing header">{{ 'set.inventory.models' | trans }}</h2>
|
|
<div class="ui grid doubling ten column row parts">
|
|
{% for model in models %}
|
|
{{ blocks.model(model['model'],model['quantity']) }}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if missing|length > 0 %}
|
|
<div class="ui segment vertical basic">
|
|
<h2 class="ui dividing header">{{ 'set.inventory.parts' | trans }}</h2>
|
|
<div class="ui grid doubling ten column row parts">
|
|
{% for part in missing %}
|
|
{{ blocks.part(part['part'],part['quantity']) }}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %} |