ouidade 2 gadi atpakaļ
vecāks
revīzija
45d2ac14be

+ 10 - 10
user/blueprints/pages/modular/showcase.yaml

@@ -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:                        

+ 3 - 6
user/themes/epau-antimatter/templates/modular/showcase.html.twig

@@ -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>