telecahrger pdf
This commit is contained in:
@@ -45,11 +45,7 @@ form:
|
|||||||
validate:
|
validate:
|
||||||
type: bool
|
type: bool
|
||||||
|
|
||||||
.docu:
|
|
||||||
type: file
|
|
||||||
label: pdf à télécharger
|
|
||||||
accept:
|
|
||||||
- .pdf
|
|
||||||
.pdf:
|
.pdf:
|
||||||
type: filepicker
|
type: filepicker
|
||||||
label: pdf à télécharger
|
label: pdf à télécharger
|
||||||
|
|||||||
@@ -9,8 +9,15 @@
|
|||||||
{{ content|raw }}
|
{{ content|raw }}
|
||||||
<div class="boutons-event">
|
<div class="boutons-event">
|
||||||
{% for button in page.header.buttons %}
|
{% for button in page.header.buttons %}
|
||||||
<a class="bouton{% if button.primary %} primary{% endif %}" href="{{ button.url }}" target="_blank">{{ button.text }}</a>
|
{% if button.url %}
|
||||||
|
<a class="bouton {% if button.primary %} primary{% endif %}" href="{{ button.url }}" target="_blank">{{ button.text }}>
|
||||||
|
{% endif %}
|
||||||
|
{% if button.pdf %}
|
||||||
|
<a class="bouton {% if button.primary %} primary{% endif %}" href="{{page.media[button.pdf].url|e }}" download >{{ button.text }}>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user