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