Commit 4fb6ab85 authored by Boris Kocherov's avatar Boris Kocherov Committed by Boris Kocherov

erp5_xhtml_style: improve selections in navigation_box

parent dce35c7c
......@@ -9,10 +9,13 @@
class="selectpicker"
data-style=""
data-width="100px"
data-hide-disabled="true"
data-none-selected-text="Modules"
data-live-search="true"
data-container='body'
onChange="submitAction(this.form,'Base_doModule')"
tal:define="module_list here/ERP5Site_getModuleItemList;">
tal:define="module_list here/ERP5Site_getModuleItemList;"
i18n:attributes="data-none-selected-text" i18n:domain="ui">
<option selected="selected"
disabled="disabled"
value="" i18n:translate="" i18n:domain="ui">Modules</option>
......@@ -113,12 +116,18 @@
class="selectpicker"
data-style=""
data-width="auto"
data-hide-disabled="true"
tal:attributes="data-none-selected-text string:Logged In as :${user_name}"
data-none-selected-text="Logged In as :"
data-container='body'
onChange="window.location = this.value"
data-onChange="submitAction(this.form,'Base_doFavorite')"
tal:define="user_actions actions/user;">
tal:define="user_actions actions/user;
user portal/portal_membership/getAuthenticatedMember;
user_name user/getUserName;"
i18n:attributes="data-none-selected-text" i18n:domain="ui">
<option disabled="disabled" selected="selected">
<tal:block i18n:translate="" i18n:domain="ui">Logged In as :</tal:block><tal:block tal:replace="python:portal.portal_membership.getAuthenticatedMember().getUserName()" />
<tal:block i18n:translate="" i18n:domain="ui">Logged In as :</tal:block><tal:block tal:replace="user_name" />
</option>
<tal:block tal:condition="user_actions">
<option tal:repeat="action user_actions"
......
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