Mercurial > libervia-templates
changeset 107:eabfb53f7777
input(xmlui): follow changes for OnClick data object in backend
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 24 Jan 2018 09:14:12 +0100 |
parents | 65d41e16d1e0 |
children | 98cab6b754d3 |
files | default/input/xmlui.html |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/default/input/xmlui.html Mon Jan 22 22:02:33 2018 +0100 +++ b/default/input/xmlui.html Wed Jan 24 09:14:12 2018 +0100 @@ -80,7 +80,7 @@ </thead> <tbody> {% for xmlui in xmlui_items %} - {% set link=on_click.formatUrl(xmlui.widget_value) if on_click.url else none %} + {% set link=on_click.formatUrl(item=xmlui.widget_value) if on_click.url else none %} <tr {{ {'class': xmlui|xmlui_class(tr_class_fields)}|xmlattr }}> {% for name,label in fields %} @@ -107,7 +107,7 @@ @param formatters(dict): dictionary of templates to format values: field_name => template if no formatter is set (or None is used) for a field, it will be used unmodified. - current xmlui items will be set as "item" key + current xmlui items will be set as "item" key for the template @param item_class_fields(iterable[unicode]): name of fields to use as class class will be "{name}_{value}" where name is field name, and value field value all lowercase/stripped @@ -122,7 +122,7 @@ <ul class="xmlui_list"> {% for xmlui in xmlui_items %} <li> - {% set link=on_click.formatUrl(xmlui.widget_value) if on_click.url else none %} + {% set link=on_click.formatUrl(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 %}