changeset 359:16b3a2988afd

massive refactoring from camelCase -> snake_case. See backend commit log for more details
author Goffi <goffi@goffi.org>
date Sat, 08 Apr 2023 13:59:12 +0200
parents 271b38ccd217
children c98a0a4a3fd0
files sat_templates/templates/bulma/input/xmlui.html sat_templates/templates/default/input/xmlui.html
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/bulma/input/xmlui.html	Thu Mar 30 17:06:02 2023 +0200
+++ b/sat_templates/templates/bulma/input/xmlui.html	Sat Apr 08 13:59:12 2023 +0200
@@ -88,7 +88,7 @@
         </thead>
         <tbody>
             {% for xmlui in xmlui_items %}
-                {% set link=on_click.formatUrl(item=xmlui.widget_value) if on_click.url else none %}
+                {% set link=on_click.format_url(item=xmlui.widget_value) if on_click.url else none %}
                 <tr {{ {'class': xmlui|xmlui_class(tr_class_fields)}|xmlattr }}>
 
                     {% for name,label in fields %}
@@ -132,7 +132,7 @@
         {% set field_class_map = {} %}
     {% endif %}
     {% for xmlui in xmlui_items %}
-        {% set link=on_click.formatUrl(item=xmlui.widget_value) if on_click.url else none %}
+        {% set link=on_click.format_url(item=xmlui.widget_value) if on_click.url else none %}
             <div class="media x-is-hoverable">
                 <div class="media-content">
                     <a {{ {'class': 'list-item has-text-black ' + xmlui|xmlui_class(item_class_fields),
--- a/sat_templates/templates/default/input/xmlui.html	Thu Mar 30 17:06:02 2023 +0200
+++ b/sat_templates/templates/default/input/xmlui.html	Sat Apr 08 13:59:12 2023 +0200
@@ -82,7 +82,7 @@
         </thead>
         <tbody>
             {% for xmlui in xmlui_items %}
-                {% set link=on_click.formatUrl(item=xmlui.widget_value) if on_click.url else none %}
+                {% set link=on_click.format_url(item=xmlui.widget_value) if on_click.url else none %}
                 <tr {{ {'class': xmlui|xmlui_class(tr_class_fields)}|xmlattr }}>
 
                     {% for name,label in fields %}
@@ -124,7 +124,7 @@
     <ul class="xmlui_list">
         {% for xmlui in xmlui_items %}
             <li>
-            {% set link=on_click.formatUrl(item=xmlui.widget_value) if on_click.url else none %}
+            {% set link=on_click.format_url(item=xmlui.widget_value) if on_click.url else none %}
                 <a {{ {'class': xmlui|xmlui_class(item_class_fields),
                         'href':link}|xmlattr }}>
                     {% for name,label in fields %}