Commit dce35c7c authored by Boris Kocherov's avatar Boris Kocherov Committed by Boris Kocherov

erp5_xhtml_style: improve icon design

parent b1de4562
...@@ -285,17 +285,24 @@ ...@@ -285,17 +285,24 @@
<a tal:condition="fast_input_actions" class="fast_input btn btn-default" title="Fast Input" <a tal:condition="fast_input_actions" class="fast_input btn btn-default" title="Fast Input"
tal:attributes="href python: portal.ERP5Site_renderCustomLink(fast_input_actions[0]['url'], http_parameter_list, dialog_category='object_fast_input')" tal:attributes="href python: portal.ERP5Site_renderCustomLink(fast_input_actions[0]['url'], http_parameter_list, dialog_category='object_fast_input')"
i18n:attributes="title" i18n:domain="ui"> i18n:attributes="title" i18n:domain="ui">
<span class="image"></span> <i class="fa fa-rocket fa-lg"></i>
<span class="description" i18n:translate="" i18n:domain="ui">Fast Input</span> <span class="description" i18n:translate="" i18n:domain="ui">Fast Input</span>
</a> </a>
</li> </li>
<li class="btn-group" tal:condition="button_actions"> <li class="btn-group" tal:condition="button_actions">
<tal:block tal:repeat="button_action button_actions"> <tal:block tal:repeat="button_action button_actions">
<a class="btn btn-default" tal:attributes="href python: '%s%s%s' % (button_action['url'], '?' in button_action['url'] and '&amp;' or '?', http_parameters)"> <a class="btn btn-default" tal:attributes="href python: '%s%s%s' % (button_action['url'], '?' in button_action['url'] and '&amp;' or '?', http_parameters)"
tal:define="img python: button_action['icon'].startswith('http')">
<i i18n:attributes="title" i18n:domain="ui" <i i18n:attributes="title" i18n:domain="ui"
tal:condition="not:img"
tal:attributes="class button_action/icon; tal:attributes="class button_action/icon;
title button_action/name; title button_action/name;
alt button_action/name" ></i> alt button_action/name" ></i>
<img i18n:attributes="title" i18n:domain="ui"
tal:condition="img"
tal:attributes="src button_action/icon;
title button_action/name;
alt button_action/name" >
</a> </a>
</tal:block> </tal:block>
</li> </li>
...@@ -343,12 +350,16 @@ ...@@ -343,12 +350,16 @@
module_view_list python:[i for i in object_view_list if i['id']=='module_view']" module_view_list python:[i for i in object_view_list if i['id']=='module_view']"
tal:condition="module_view_list"> tal:condition="module_view_list">
<tal:block tal:repeat="action module_view_list"> <tal:block tal:repeat="action module_view_list">
<button <button class="btn btn-default"
class="btn btn-default"
tal:content="action/name"
name="Base_doAction:method" name="Base_doAction:method"
tal:attributes="value string:object ${action/url}" tal:define="icon action/icon"
i18n:translate="" i18n:domain="ui" /> tal:attributes="value string:workflow ${action/url};
title action/name"
i18n:attributes="title" i18n:domain="ui">
<i tal:attributes="class icon" tal:condition="icon"></i>
<span tal:content="action/name" tal:condition="not:icon"
i18n:translate="" i18n:domain="ui"/>
</button>
</tal:block> </tal:block>
</li> </li>
<li class="btn-group pull-right"> <li class="btn-group pull-right">
......
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