templates: move cart@ds + button next to file upload widget (pt2) (#35724)

This commit is contained in:
Frédéric Péters 2019-09-16 21:45:47 +02:00
parent 0901e1c87c
commit aaa5e11795
3 changed files with 13 additions and 11 deletions

View File

@ -39,7 +39,9 @@
{% endfor %}
<div class="grid-1-1 newline">
{% if piece.max_files > 1 %}
<button class="plus" style="margin-bottom: 2rem;">+</button>
<div class="grid-1-12 button-plus">
<button class="plus">+</button>
</div>
{% endif %}
</div>
</div>

View File

@ -11,10 +11,10 @@
<div class="piece">
<div class="title grid-1-1 newline">{% if piece.codePiece %}{{ piece.codePiece }} - {% endif %}{{ piece.text }}
{% if 1 or piece.reglementaire %}<span class="required">*</span>{% endif %}</div>
{% if piece.reglementaire %}<span class="required">*</span>{% endif %}</div>
{% for file in piece.files %}
<div class="file-upload-widget short grid-1-2 {% if file.token %}has-file{% endif %}" style="margin-bottom: 1rem">
<div class="file-upload-widget short grid-1-3 {% if file.token %}has-file{% endif %}" style="margin-bottom: 1rem">
<div class="file-button">
<input type="file" data-url="{{ file.url }}"
{% if not piece.codePiece %}accept="application/pdf"{% endif %}>
@ -38,11 +38,11 @@
</div>
</div>
{% endfor %}
<div class="grid-1-1 newline">
{% if piece.max_files > 1 %}
<button class="plus" style="margin-bottom: 2rem;">+</button>
{% endif %}
<div class="grid-1-12 button-plus">
<button class="plus">+</button>
</div>
{% endif %}
</div>
{% endfor %}

View File

@ -11,10 +11,10 @@
<div class="piece">
<div class="title grid-1-1 newline">{% if piece.codePiece %}{{ piece.codePiece }} - {% endif %}{{ piece.text }}
{% if 1 or piece.reglementaire %}<span class="required">*</span>{% endif %}</div>
{% if piece.reglementaire %}<span class="required">*</span>{% endif %}</div>
{% for file in piece.files %}
<div class="file-upload-widget short grid-1-2 {% if file.token %}has-file{% endif %}" style="margin-bottom: 1rem">
<div class="file-upload-widget short grid-1-3 {% if file.token %}has-file{% endif %}" style="margin-bottom: 1rem">
<div class="file-button">
<input type="file" data-url="{{ file.url }}"
{% if not piece.codePiece %}accept="application/pdf"{% endif %}>
@ -38,11 +38,11 @@
</div>
</div>
{% endfor %}
<div class="grid-1-1 newline">
{% if piece.max_files > 1 %}
<button class="plus" style="margin-bottom: 2rem;">+</button>
{% endif %}
<div class="grid-1-12 button-plus">
<button class="plus">+</button>
</div>
{% endif %}
</div>
{% endfor %}