comparison sat_templates/templates/default/input/xmlui.html @ 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 15db910a957a
children
comparison
equal deleted inserted replaced
358:271b38ccd217 359:16b3a2988afd
80 {% endfor %} 80 {% endfor %}
81 </tr> 81 </tr>
82 </thead> 82 </thead>
83 <tbody> 83 <tbody>
84 {% for xmlui in xmlui_items %} 84 {% for xmlui in xmlui_items %}
85 {% set link=on_click.formatUrl(item=xmlui.widget_value) if on_click.url else none %} 85 {% set link=on_click.format_url(item=xmlui.widget_value) if on_click.url else none %}
86 <tr {{ {'class': xmlui|xmlui_class(tr_class_fields)}|xmlattr }}> 86 <tr {{ {'class': xmlui|xmlui_class(tr_class_fields)}|xmlattr }}>
87 87
88 {% for name,label in fields %} 88 {% for name,label in fields %}
89 <td {{ {'class': 'td_'+name}|xmlattr }}> 89 <td {{ {'class': 'td_'+name}|xmlattr }}>
90 {% for value in xmlui.widgets[name].values %} 90 {% for value in xmlui.widgets[name].values %}
122 {% set on_click = {} %} 122 {% set on_click = {} %}
123 {% endif %} 123 {% endif %}
124 <ul class="xmlui_list"> 124 <ul class="xmlui_list">
125 {% for xmlui in xmlui_items %} 125 {% for xmlui in xmlui_items %}
126 <li> 126 <li>
127 {% set link=on_click.formatUrl(item=xmlui.widget_value) if on_click.url else none %} 127 {% set link=on_click.format_url(item=xmlui.widget_value) if on_click.url else none %}
128 <a {{ {'class': xmlui|xmlui_class(item_class_fields), 128 <a {{ {'class': xmlui|xmlui_class(item_class_fields),
129 'href':link}|xmlattr }}> 129 'href':link}|xmlattr }}>
130 {% for name,label in fields %} 130 {% for name,label in fields %}
131 <span {{ {'class': 'xmlui_field__'+name}|xmlattr }}> 131 <span {{ {'class': 'xmlui_field__'+name}|xmlattr }}>
132 {% for label in xmlui.widgets.get(name, {}).labels %} 132 {% for label in xmlui.widgets.get(name, {}).labels %}