]> git.agnieray.net Git - galette.git/commitdiff
Introduce nolabel for forms elements
authorJohan Cwiklinski <johan@x-tnd.be>
Wed, 1 May 2024 07:39:01 +0000 (09:39 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Fri, 3 May 2024 07:46:49 +0000 (09:46 +0200)
galette/templates/default/components/forms/input.html.twig
galette/templates/default/pages/contributions_types_list.html.twig

index dc93bf0346c05e41bf9436efb10d17e5588adfa9..f242acacfcb79b2b9764e952c0b9afb897f7a2e2 100644 (file)
@@ -28,9 +28,8 @@
 {% endif %}
     {% if type is defined and type == 'checkbox' %}
         <div class="ui toggle{% if checked is defined and checked == true %} checked{% endif %} right aligned checkbox">
-    {% else %}
+    {% elseif nolabel is not defined or nolabel != true %}
     {% block label %}
-        {% if label is defined %}
         <label for="{{ id }}"{% if title is defined %} title="{{ title }}"{% endif %}{% if labelclass is defined %} class="{% if labelclass is defined %}{{ labelclass }}{% endif %}"{% endif %}>
         {% if masschange ?? false %}
             {# Add a checkbox for fields to change on mass edition #}
@@ -38,7 +37,6 @@
         {% endif %}
             {{ label }}
         </label>
-        {% endif %}
     {% endblock %}
     {% endif %}
     {% if type is defined and type == 'password' %}
index c9c581aa0b5ca65f5f9f0d43469664ff12eaf577..e4f7357978c87807a7c90d821176499d4de78b28 100644 (file)
@@ -64,7 +64,8 @@
                         {% include "components/forms/select.html.twig" with {
                             id: 'cotis_extension',
                             value: constant("Galette\\Entity\\ContributionsTypes::DEFAULT_TYPE"),
-                            values: cotisextensions
+                            values: cotisextensions,
+                            nolabel: true
                         } %}
                     </td>
                     <td class="center actions_row">