debug button
This commit is contained in:
@@ -34,16 +34,16 @@ form:
|
|||||||
.url:
|
.url:
|
||||||
type: text
|
type: text
|
||||||
label: URL
|
label: URL
|
||||||
.primary:
|
# .primary:
|
||||||
type: toggle
|
# type: toggle
|
||||||
label: Primary
|
# label: Primary
|
||||||
highlight: 1
|
# highlight: 1
|
||||||
default: 1
|
# default: 1
|
||||||
options:
|
# options:
|
||||||
1: 'Yes'
|
# 1: 'Yes'
|
||||||
0: 'No'
|
# 0: 'No'
|
||||||
validate:
|
# validate:
|
||||||
type: bool
|
# type: bool
|
||||||
|
|
||||||
|
|
||||||
.pdf:
|
.pdf:
|
||||||
|
|||||||
@@ -10,14 +10,11 @@
|
|||||||
<div class="boutons-event">
|
<div class="boutons-event">
|
||||||
{% for button in page.header.buttons %}
|
{% for button in page.header.buttons %}
|
||||||
{% if button.url %}
|
{% if button.url %}
|
||||||
<a class="bouton {% if button.primary %} primary{% endif %}" href="{{ button.url }}" target="_blank">{{ button.text }}>
|
<a class="bouton{% if button.primary %} primary{% endif %}" href="{{ button.url }}" target="_blank">{{ button.text }}</a>
|
||||||
|
{% else %}
|
||||||
|
<a class="bouton{% if button.primary %} primary{% endif %}" href="{{page.media[button.pdf].url|e }}" target="_blank">{{ button.text }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if button.pdf %}
|
|
||||||
<a class="bouton {% if button.primary %} primary{% endif %}" href="{{page.media[button.pdf].url|e }}" target="_blank">{{ button.text }}>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user