Commit 5d6b0c46 authored by Sven Franck's avatar Sven Franck Committed by Romain Courteaud

erp5_web_renderjs_ui: added icons and search field to panel

parent 86e6a0de
...@@ -137,12 +137,12 @@ ...@@ -137,12 +137,12 @@
</div>\n </div>\n
<div class="ui-content">\n <div class="ui-content">\n
<ul data-role="listview">\n <ul data-role="listview">\n
<li><a href="{{module_href}}" class="ui-btn">Modules</a></li>\n <li><a href="{{module_href}}" class="ui-btn ui-btn-icon-left ui-icon-puzzle-piece">Modules</a></li>\n
<li><a class="ui-btn">Worklists</a></li>\n <li><a class="ui-btn ui-btn-icon-left ui-icon-clipboard">Worklists</a></li>\n
<li><a href="{{history_href}}" class="ui-btn">History</a></li>\n <li><a href="{{history_href}}" class="ui-btn ui-btn-icon-left ui-icon-history">History</a></li>\n
<li><a class="ui-btn">Preferences</a></li>\n <li><a class="ui-btn ui-btn-icon-left ui-icon-gear">Preferences</a></li>\n
<li><a class="ui-btn">Language</a></li>\n <li><a class="ui-btn ui-btn-icon-left ui-icon-comment-o">Language</a></li>\n
<li><a class="ui-btn">Logout</a></li>\n <li><a class="ui-btn ui-btn-icon-left ui-icon-power-off">Logout</a></li>\n
</ul>\n </ul>\n
</div>\n </div>\n
</script>\n </script>\n
...@@ -293,7 +293,7 @@ ...@@ -293,7 +293,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>938.17417.34725.59835</string> </value> <value> <string>938.24764.47660.35054</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1413798804.43</float> <float>1413816767.6</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
...@@ -166,6 +166,36 @@ ...@@ -166,6 +166,36 @@
this.props.jelement.panel("toggle");\n this.props.jelement.panel("toggle");\n
})\n })\n
\n \n
.declareMethod(\'render\', function (option_dict) {\n
var panel_gadget = this;\n
\n
if (panel_gadget.props.set_search === true) {\n
return panel_gadget;\n
}\n
\n
return new RSVP.Queue()\n
.push(function() {\n
return panel_gadget.declareGadget("gadget_erp5_searchfield.html", {"scope": "search"});\n
})\n
.push(function (my_search_gadget) {\n
var selector, parent_node, search_option_dict = {};\n
\n
panel_gadget.props.set_search = true;\n
\n
// XXX disable for now\n
search_option_dict.disabled = true;\n
search_option_dict.theme = "d";\n
search_option_dict.extended_search = "";\n
parent_node = panel_gadget.__element.querySelector(".ui-content");\n
\n
parent_node.insertBefore(my_search_gadget.__element, parent_node.firstChild);\n
return my_search_gadget.render(search_option_dict);\n
})\n
.push(function () {\n
return panel_gadget;\n
});\n
})\n
\n
/////////////////////////////////////////////////////////////////\n /////////////////////////////////////////////////////////////////\n
// declared services\n // declared services\n
/////////////////////////////////////////////////////////////////\n /////////////////////////////////////////////////////////////////\n
...@@ -320,7 +350,7 @@ ...@@ -320,7 +350,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>938.15803.15252.14882</string> </value> <value> <string>938.25789.47838.52889</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -338,7 +368,7 @@ ...@@ -338,7 +368,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1413280356.13</float> <float>1413879105.71</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment