Mercurial > libervia-templates
diff default/input/xmlui.html @ 66:9834106678da
base: menu implementation:
2 menus are now handled: main menu and category menu (for submenus relative to a page).
Main menu is displayed on the side bar on big screen.
Added menu for tickets.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 01 Dec 2017 00:46:42 +0100 |
parents | dd15b6c0b1d3 |
children | 6f1686723472 |
line wrap: on
line diff
--- a/default/input/xmlui.html Wed Nov 15 08:52:14 2017 +0100 +++ b/default/input/xmlui.html Fri Dec 01 00:46:42 2017 +0100 @@ -14,18 +14,18 @@ {% macro generate_widget(wid, config, id=none) %} {% if wid.type == 'text' %} - {{ text_widget(wid, config, id=id) }} + {{ text_widget(wid, config, id=id) }} {% elif wid.type == 'label' %} {{ label_widget(wid, config) }} {% elif wid.type == 'string' %} - {{ string_widget(wid, config, id=id) }} + {{ string_widget(wid, config, id=id) }} {% elif wid.type == 'jid' %} {# TODO: proper JID widget #} - {{ string_widget(wid, config, id=id) }} + {{ string_widget(wid, config, id=id) }} {% elif wid.type == 'textbox' %} - {{ textbox_widget(wid, config, id=id) }} + {{ textbox_widget(wid, config, id=id) }} {% elif wid.type == 'list' %} - {{ list_widget(wid, config, id=id) }} + {{ list_widget(wid, config, id=id) }} {% endif %} {% endmacro %} @@ -161,7 +161,7 @@ {{- wid|item_filter(config.filters) -}} </textarea> {% else %} - <p class="xmlui_widget xmlui_textbox" {{ {'id':id}|xmlattr }}> + <p class="xmlui_widget xmlui_textbox" {{ {'id':id}|xmlattr }}> {{- wid|item_filter(config.filters) -}} </p> {% endif %} @@ -177,7 +177,7 @@ {% endfor %} </select> {% else %} - <div class="xmlui_widget xmlui_list" {{ {'id':id}|xmlattr }}> + <div class="xmlui_widget xmlui_list" {{ {'id':id}|xmlattr }}> {% for value,label in wid.items %} <span class="xmlui_list_item value_{{value|attr_escape}}"> {{- label -}}