diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/ListBox_asHTML.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/ListBox_asHTML.xml index 2d86576a9b52f4822b1f03d670ef0bead8ce453a..e92d7caaa79d15668a837af7197ae36c5873485f 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/ListBox_asHTML.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/ListBox_asHTML.xml @@ -137,8 +137,8 @@ i18n:translate="" i18n:domain="ui"><tal:block tal:replace="here/total_size" i18n:name="number">0</tal:block> record(s)</span>\n <input type="hidden" tal:attributes="id string:${field_id}_listMax; name string:${field_id}_listMax; value python: len(search_value_list)">\n <input type="hidden" tal:attributes="id string:${field_id}_itemMax; name string:${field_id}_itemMax; value python: len(line_list)">\n - <br /><input type="checkbox" tal:attributes="id string:${field_id}_check; name string:${field_id}_check; onChange string:simple_aff(this.id)" checked="checked">\n - <span tal:content="python: \'Short mode\'"></span>\n + <br />\n + <span tal:attributes="id string:${field_id}_check; name string:${field_id}_check; onClick string:simple_aff(this.id)" class="div_short_mode" i18n:translate="" i18n:domain="ui">Toggle Detailed Mode</span>\n \n <select id="listbox_page_selection" name="list_start" title="Change Page" size="1"\n onChange="submitAction(this.form, \'context/${field_id}_setPage\')"\n @@ -204,7 +204,7 @@ paramX python: valueX[1];\n search_fieldX python: valueX[2];\n foo2 repeat/valueX/index">\n - <option tal:condition="aliasX" tal:content="python: tab_title[foo2]" i18n:domain="ui" i18n:translate="" tal:attributes="value python: aliasX; selected python: aliasX==selected_search_field"></option>\n + <option tal:condition="aliasX" tal:content="python: tab_title[foo2]" i18n:domain="ui" i18n:translate="" tal:attributes="value python: aliasX; selected python: aliasX==selected_search_field"></option>\n </tal:block>\n </tal:block>\n </select>\n @@ -219,10 +219,10 @@ search_field python: value[2];\n foo repeat/value/index"\n tal:attributes="id repeat/value/index">\n - <span tal:condition="alias"> <!-- -->\n - <tal:block tal:condition="python: search_field is not None"\n + <span tal:condition="alias">\n + <tal:block tal:condition="python: search_field is not None"\n tal:replace="structure python: search_field.render(value = param, key = alias)" />\n - <input style="width: 40%;" name="id" size="8" value=""\n + <input style="width: 40%;" name="id" size="8" value=""\n tal:attributes="name alias; value param; id python: \'%s%s\' % (\'input\', foo)"/>\n </span>\n </div>\n @@ -264,11 +264,10 @@ tal:condition="not: repeat/valueY/index"\n tal:define="object_url python: \'%s/view\' % line.getObject().getAbsoluteUrl()">\n <!-- XXX it should be possible to test isSummary() form_id==\'Base_viewRelatedObjectList\' and-->\n - <input tal:condition="python: line.getObject() is not None"\n - type="checkbox" value="checked" id="listbox_cb_1" name="uids:list"\n - tal:attributes="checked python: not form_id==\'Base_viewHistory\' and line.getUid() in checked_uid_set;\n - value line/getUid; id string:${field_id}_cb_${line/getUid}" />\n - <a tal:condition="python:not form_id==\'Base_viewWorkflowHistory\'" href="#" tal:attributes="href string:${object_url}?selection_index=${selection_index}&selection_name=${selection_name}&ignore_layout:int=0&reset:int=1"><img src="document_icon.gif" tal:attributes="src string:${portal_url_string}/images/line_clickable.png; title python: line.getObject().getRelativeUrl()" title="document"/></a>\n + <input tal:condition="python: not form_id==\'Base_viewWorkflowHistory\' and line.getObject() is not None" type="checkbox" value="checked" id="listbox_cb_1" name="uids:list"\n + tal:attributes="checked python: line.getUid() in checked_uid_set;\n + value line/getUid; id string:${field_id}_cb_${line/getUid}" />\n + <a tal:condition="python: not form_id==\'Base_viewWorkflowHistory\'" href="#" tal:attributes="href string:${object_url}?selection_index=${selection_index}&selection_name=${selection_name}&ignore_layout:int=0&reset:int=1"><img src="document_icon.gif" tal:attributes="src string:${portal_url_string}/images/line_clickable.png; title python: line.getObject().getRelativeUrl()" title="document" i18n:translate="" i18n:domain="ui"/></a>\n <span tal:condition="original_value" tal:replace="structure html">value</span>\n </div>\n <div tal:attributes="id python: \'%s_%s%s%s\' % (field_id, foo2, \'data\', foo)">\n diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/context_actions_render.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/context_actions_render.xml new file mode 100644 index 0000000000000000000000000000000000000000..19a2429981c414ba893155bbd41100d11203f082 --- /dev/null +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/context_actions_render.xml @@ -0,0 +1,366 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <tuple> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> + <tuple/> + </tuple> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_bind_names</string> </key> + <value> + <object> + <klass> + <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/> + </klass> + <tuple/> + <state> + <dictionary> + <item> + <key> <string>_asgns</string> </key> + <value> + <dictionary> + <item> + <key> <string>name_subpath</string> </key> + <value> <string>traverse_subpath</string> </value> + </item> + </dictionary> + </value> + </item> + </dictionary> + </state> + </object> + </value> + </item> + <item> + <key> <string>_text</string> </key> + <value> <string encoding="cdata"><![CDATA[ + +<tal:block tal:replace="nothing"\n +\txmlns:tal="http://xml.zope.org/namespaces/tal"\n +\txmlns:metal="http://xml.zope.org/namespaces/metal"\n +\txmlns:i18n="http://xml.zope.org/namespaces/i18n">\n +<!--\n +Copyright (c) 2006 Nexedi SARL and Contributors. All Rights Reserved.\n +Vincent Pelletier <vincent@nexedi.com>\n +Christophe Dumez <christophe@nexedi.com>\n +\n +This program is Free Software; you can redistribute it and/or\n +modify it under the terms of the GNU General Public License\n +as published by the Free Software Foundation; either version 2\n +of the License, or (at your option) any later version.\n +\n +This program is distributed in the hope that it will be useful,\n +but WITHOUT ANY WARRANTY; without even the implied warranty of\n +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n +GNU General Public License for more details.\n +\n +You should have received a copy of the GNU General Public License\n +along with this program; if not, write to the Free Software\n +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n +\n +XXX: Folder_filter accesses selection directly\n +-->\n +</tal:block>\n +<tal:block metal:define-macro="master">\n + <span class="first"\n + tal:define="search_actions actions/object_search | nothing;\n + exchange_actions actions/object_exchange | nothing;\n + report_actions actions/object_report | nothing;\n + button_actions actions/object_button | nothing;\n + fast_input_actions actions/object_fast_input | nothing;\n + sort_actions actions/object_sort | nothing;\n + ui_actions actions/object_ui | nothing;\n + print_actions actions/object_print | nothing;\n + list_mode list_mode | nothing">\n + <span class="tool_buttons" align="center">\n + <tal:block tal:condition="list_mode | nothing">\n + <button class="cut" type="submit" name="Folder_cut:method" title="Cut"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Cut</span>\n + </button>\n + <button class="copy" type="submit" name="Folder_copy:method" title="Copy"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Copy</span>\n + </button>\n + <button class="paste" type="submit" name="Folder_paste:method" title="Paste"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Paste</span>\n + </button>\n + <span class="separator"><!--separator--></span>\n + </tal:block>\n +\n + <button class="new" type="submit" title="New"\n + tal:attributes="name python: list_mode and \'Folder_create:method\' or \'Base_createNewDocument:method\'"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">New</span>\n + </button>\n + <button class="clone" type="submit" title="Clone"\n + tal:condition="python: not list_mode"\n + tal:attributes="name python: \'Base_createCloneDocument:method\'"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Clone</span>\n + </button>\n + <button tal:condition="list_mode" class="delete" type="submit" name="Folder_deleteObjectList:method" title="Delete"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Delete</span>\n + </button>\n +\n + <tal:block tal:condition="list_mode">\n + <span class="separator"><!--separator--></span>\n + <a tal:condition="search_actions" class="find" title="Find"\n + tal:attributes="href python: portal.ERP5Site_renderCustomLink(search_actions[0][\'url\'], http_parameter_list, dialog_category=\'object_search\')"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Find</span>\n + </a> <!---->\n + <button class="show_all" type="submit" name="Folder_show:method" title="Show All"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Show All</span>\n + </button>\n + <button type="submit" name="Folder_filter:method" title="Filter"\n + tal:attributes="class python: here.portal_selections.getSelectionInvertModeFor(request[\'selection_name\']) and \'filter_on\' or \'filter\';"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Filter</span>\n + </button>\n + <a tal:condition="sort_actions" class="sort" title="Sort"\n + tal:attributes="href python: portal.ERP5Site_renderCustomLink(sort_actions[0][\'url\'], http_parameter_list, dialog_category=\'object_sort\')"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Sort</span>\n + </a>\n + </tal:block>\n + </span><br />\n +\n + <div class="div_prev" id="div_prev">\n + <div id="jump">\n + <span id="jump" metal:define-macro="jump">\n + <select name="select_jump"\n + tal:attributes="onChange string:submitAction(this.form,\'Base_doJump\')">\n + <option selected="selected" value=""\n + i18n:translate="" i18n:domain="ui">Jump...</option>\n + <tal:block tal:repeat="jump actions/object_jump | nothing">\n + <option tal:attributes="value jump/url"\n + tal:content="jump/name" i18n:translate="" i18n:domain="ui" />\n + </tal:block>\n + <tal:block tal:condition="preferred_html_style_developper_mode">\n + <tal:block tal:condition="python: here.getPortalTypeName() in portal.portal_types.objectIds() and portal.portal_types.getTypeInfo(here).Base_getSourceVisibility()">\n + <option value="1" disabled="disabled" i18n:translate="" i18n:domain="ui">-- Developper Mode --</option>\n + <option tal:attributes="value python: \'%s/manage_workspace\' % (here.portal_types.getTypeInfo(here).absolute_url(),)"\n + i18n:translate="" i18n:domain="ui">Edit Portal Type \'<tal:block tal:content="python: here.getPortalTypeName()"\n + i18n:name="portal_type" i18n:translate="" i18n:domain="ui" />\'</option>\n + </tal:block>\n + <tal:block tal:condition="portal/portal_workflow/Base_getSourceVisibility">\n + <option value="1" disabled="disabled" i18n:translate="" i18n:domain="ui">-- Workflows --</option>\n + <tal:block tal:repeat="workflow python: portal.portal_workflow.getWorkflowsFor(here)">\n + <option tal:attributes="value python: \'%s/manage_properties\' % (workflow.absolute_url(), )" tal:content="workflow/title" />\n + </tal:block>\n + </tal:block>\n + </tal:block>\n + </select>\n + <button type="submit" name="Base_doJump:method" title="Jump"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description"\n + i18n:translate="" i18n:domain="ui">Jump</span>\n + </button>\n + </span>\n + </div>\n + <!-- Actions list starts here -->\n + <div id="actions">\n + <span id="action" metal:define-macro="action">\n + <select name="select_action"\n + tal:attributes="onChange string:submitAction(this.form,\'${url}/Base_doAction\')" tal:define="document_template_list here/getDocumentTemplateList | nothing">\n + <option selected="selected" value=""\n + i18n:translate="" i18n:domain="ui">Action...\n + </option>\n + <tal:block tal:repeat="content here/allowedContentTypes | nothing">\n + <tal:block tal:condition="python: not content.getId() in here.portal_types.getTypeInfo(here).getHiddenContentTypeList()">\n + <option tal:attributes="value python: \'add \' + content.getId()"\n + i18n:translate="" i18n:domain="ui">Add\n + <tal:block tal:content="content/Title"\n + i18n:name="portal_type" i18n:translate="" i18n:domain="ui">\n + </tal:block>\n + </option>\n + </tal:block>\n + </tal:block>\n + <tal:block tal:condition="document_template_list">\n + <option disabled="disabled">-- \n + <tal:block i18n:translate="" i18n:domain="ui">Templates</tal:block> --\n + </option>\n + <tal:block tal:repeat="document_template document_template_list">\n + <option tal:attributes="value python:\'template \' + document_template.getRelativeUrl()"\n + i18n:translate="" i18n:domain="ui">Add\n + <tal:block tal:content="document_template/getTitle"\n + i18n:name="document_template"></tal:block>\n + </option>\n + </tal:block>\n + </tal:block>\n + <option disabled="disabled">-- \n + <tal:block i18n:translate="" i18n:domain="ui">Workflows</tal:block> --\n + </option>\n + <tal:block tal:repeat="action actions/workflow">\n + <option tal:content="action/name"\n + tal:attributes="value python: \'workflow \' + action[\'url\']"\n + i18n:translate="" i18n:domain="ui"></option>\n + </tal:block>\n + <option disabled="disabled">-- \n + <tal:block i18n:translate="" i18n:domain="ui">Object</tal:block> --\n + </option>\n + <tal:block tal:repeat="action actions/object_action | nothing">\n + <option tal:content="action/name"\n + tal:attributes="value python: \'object \' + action[\'url\']"\n + i18n:translate="" i18n:domain="ui"></option>\n + </tal:block>\n + <tal:block tal:replace=\'nothing\'>\n + <!-- XXX folder actions is inherited from CMF, but not used in ERP5 (for now) -->\n + <option disabled="disabled">--\n + <tal:block i18n:translate="" i18n:domain="ui">folder</tal:block> --\n + </option>\n + <tal:block tal:repeat="action actions/folder">\n + <option tal:content="action/name"\n + tal:attributes="value python: \'folder \' + action[\'url\']"\n + i18n:translate="" i18n:domain="ui"></option>\n + </tal:block>\n + </tal:block>\n + </select>\n +\n + <button class="button" type="submit" name="Base_doAction:method" title="Action"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description"\n + i18n:translate="" i18n:domain="ui">Action</span>\n + </button>\n + </span>\n + </div>\n + <!-- \n + <tal:block tal:condition="not: list_mode | nothing">\n + <tal:block tal:condition="request/selection_index | nothing">\n + <span class="tool_buttons">\n + <div class="div_navigation" align="center" id="div_navigation">\n + <a class="jump_first" title="First"\n + tal:attributes="href python: \'portal_selections/viewFirst?%s\' % (http_parameters, )"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">First</span>\n + </a> \n + <a class="jump_previous" title="Previous"\n + tal:attributes="href python: \'portal_selections/viewPrevious?%s\' % (http_parameters, )"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Previous</span>\n + </a>\n + <a class="list_mode" title="List Mode" tal:attributes="href python: here.portal_selections.getSelectionListUrlFor(request[\'selection_name\'])"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">List Mode</span>\n + </a>\n + <a class="jump_next" title="Next"\n + tal:attributes="href python: \'portal_selections/viewNext?%s\' % (http_parameters, )"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Next</span>\n + </a>\n + <a class="jump_last" title="Last"\n + tal:attributes="href python: \'portal_selections/viewLast?%s\' % (http_parameters, )"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Last</span>\n + </a>\n + </div>\n + </span>\n + <script>\n + loadDivSize();\n + </script>\n + <div id="shortcuts" class="shortcuts">\n + <a class="import_export"\n + title="Import / Export"\n + tal:attributes="href python:here.ERP5Site_renderLink(\'Person_exportPersonAsvCard\',http_parameters)"\n + i18n:attributes="title" i18n:domain="ui">\n + <button class="button" i18n:translate="" i18n:domain="ui">\n + <span class="link" i18n:translate="" i18n:domain="ui">Export as vCard</span>\n + </button>\n + </a>\n + </div>\n + <script>\n + affShortcuts ();\n + </script>\n + </tal:block>\n + </tal:block> -->\n +\n + </div>\n +\n +\n +\n + <!--<span class="tool_buttons">\n + <div class="div_next" align="right" id="div_next">\n +\n + <a class="jump_first" title="First"\n + tal:attributes="href python: \'portal_selections/viewFirst?%s\' % (http_parameters, )"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">First</span>\n + </a>\n + <a class="jump_previous" title="Previous"\n + tal:attributes="href python: \'portal_selections/viewPrevious?%s\' % (http_parameters, )"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Previous</span>\n + </a>\n + <a class="list_mode" title="List Mode" tal:attributes="href python: here.portal_selections.getSelectionListUrlFor(request[\'selection_name\'])"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">List Mode</span>\n + </a>\n + <a class="jump_next" title="Next"\n + tal:attributes="href python: \'portal_selections/viewNext?%s\' % (http_parameters, )"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Next</span>\n + </a>\n + <a class="jump_last" title="Last"\n + tal:attributes="href python: \'portal_selections/viewLast?%s\' % (http_parameters, )"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Last</span>\n + </a>\n +\n + </div>\n + </span>--> \n +\n +</span>\n +</tal:block> + +]]></string> </value> + </item> + <item> + <key> <string>content_type</string> </key> + <value> <string>text/html</string> </value> + </item> + <item> + <key> <string>expand</string> </key> + <value> <int>0</int> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>context_actions_render</string> </value> + </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/context_box_render.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/context_box_render.xml index 57bcac1743fc0ae42deabdf0aaae1df2de16b8ad..01e689bccc8db33651526363afe30dd713a04612 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/context_box_render.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/context_box_render.xml @@ -76,197 +76,65 @@ XXX: Folder_filter accesses selection directly\n ui_actions actions/object_ui | nothing;\n print_actions actions/object_print | nothing;\n list_mode list_mode | nothing">\n - <span class="tool_buttons" align="center">\n - <tal:block tal:condition="list_mode | nothing">\n - <button class="cut" type="submit" name="Folder_cut:method" title="Cut"\n - i18n:attributes="title" i18n:domain="ui">\n - <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">Cut</span>\n - </button>\n - <button class="copy" type="submit" name="Folder_copy:method" title="Copy"\n - i18n:attributes="title" i18n:domain="ui">\n - <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">Copy</span>\n - </button>\n - <button class="paste" type="submit" name="Folder_paste:method" title="Paste"\n - i18n:attributes="title" i18n:domain="ui">\n - <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">Paste</span>\n - </button>\n - <span class="separator"><!--separator--></span>\n - </tal:block>\n \n - <button class="new" type="submit" title="New"\n - tal:attributes="name python: list_mode and \'Folder_create:method\' or \'Base_createNewDocument:method\'"\n - i18n:attributes="title" i18n:domain="ui">\n + <div class="div_prev" id="div_prev">\n +\n + <tal:block tal:condition="not: list_mode | nothing">\n + <tal:block tal:condition="request/selection_index | nothing">\n + <!-- Navigation buttons starts here -->\n + <span class="tool_buttons">\n + <div class="div_navigation" align="center" id="div_navigation">\n + <a class="jump_first" title="First"\n + tal:attributes="href python: \'portal_selections/viewFirst?%s\' % (http_parameters, )"\n + i18n:attributes="title" i18n:domain="ui">\n <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">New</span>\n - </button>\n - <button class="clone" type="submit" title="Clone"\n - tal:condition="python: not list_mode"\n - tal:attributes="name python: \'Base_createCloneDocument:method\'"\n - i18n:attributes="title" i18n:domain="ui">\n + <span class="description" i18n:translate="" i18n:domain="ui">First</span>\n + </a> \n + <a class="jump_previous" title="Previous"\n + tal:attributes="href python: \'portal_selections/viewPrevious?%s\' % (http_parameters, )"\n + i18n:attributes="title" i18n:domain="ui">\n <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">Clone</span>\n - </button>\n - <button tal:condition="list_mode" class="delete" type="submit" name="Folder_deleteObjectList:method" title="Delete"\n - i18n:attributes="title" i18n:domain="ui">\n + <span class="description" i18n:translate="" i18n:domain="ui">Previous</span>\n + </a>\n + <a class="list_mode" title="List Mode" tal:attributes="href python: here.portal_selections.getSelectionListUrlFor(request[\'selection_name\'])"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">List Mode</span>\n + </a>\n + <a class="jump_next" title="Next"\n + tal:attributes="href python: \'portal_selections/viewNext?%s\' % (http_parameters, )"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Next</span>\n + </a>\n + <a class="jump_last" title="Last"\n + tal:attributes="href python: \'portal_selections/viewLast?%s\' % (http_parameters, )"\n + i18n:attributes="title" i18n:domain="ui">\n <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">Delete</span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Last</span>\n + </a>\n + </div>\n + </span>\n + <script>\n + loadDivSize();\n + </script>\n + <div id="shortcuts" class="shortcuts">\n + <a class="import_export"\n + title="Import / Export"\n + tal:attributes="href python:here.ERP5Site_renderLink(\'Person_exportPersonAsvCard\',http_parameters)"\n + i18n:attributes="title" i18n:domain="ui">\n + <button class="button" i18n:translate="" i18n:domain="ui">\n + <span class="link" i18n:translate="" i18n:domain="ui">Export as vCard</span>\n </button>\n -\n - <tal:block tal:condition="list_mode">\n - <span class="separator"><!--separator--></span>\n - <a tal:condition="search_actions" class="find" title="Find"\n - tal:attributes="href python: portal.ERP5Site_renderCustomLink(search_actions[0][\'url\'], http_parameter_list, dialog_category=\'object_search\')"\n - i18n:attributes="title" i18n:domain="ui">\n - <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">Find</span>\n - </a> <!---->\n - <button class="show_all" type="submit" name="Folder_show:method" title="Show All"\n - i18n:attributes="title" i18n:domain="ui">\n - <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">Show All</span>\n - </button>\n - <button type="submit" name="Folder_filter:method" title="Filter"\n - tal:attributes="class python: here.portal_selections.getSelectionInvertModeFor(request[\'selection_name\']) and \'filter_on\' or \'filter\';"\n - i18n:attributes="title" i18n:domain="ui">\n - <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">Filter</span>\n - </button>\n - <a tal:condition="sort_actions" class="sort" title="Sort"\n - tal:attributes="href python: portal.ERP5Site_renderCustomLink(sort_actions[0][\'url\'], http_parameter_list, dialog_category=\'object_sort\')"\n - i18n:attributes="title" i18n:domain="ui">\n - <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">Sort</span>\n - </a>\n - </tal:block>\n - </span><br />\n - <div class="div_prev" id="div_prev">\n - <div id="actions">\n - <select name="select_action"\n - tal:attributes="onChange string:submitAction(this.form,\'${url}/Base_doAction\')" tal:define="document_template_list here/getDocumentTemplateList | nothing">\n - <option selected="selected" value=""\n - i18n:translate="" i18n:domain="ui">Action...\n - </option>\n - <tal:block tal:repeat="content here/allowedContentTypes | nothing">\n - <tal:block tal:condition="python: not content.getId() in here.portal_types.getTypeInfo(here).getHiddenContentTypeList()">\n - <option tal:attributes="value python: \'add \' + content.getId()"\n - i18n:translate="" i18n:domain="ui">Add\n - <tal:block tal:content="content/Title"\n - i18n:name="portal_type" i18n:translate="" i18n:domain="ui">\n - </tal:block>\n - </option>\n - </tal:block>\n - </tal:block>\n - <tal:block tal:condition="document_template_list">\n - <option disabled="disabled">-- \n - <tal:block i18n:translate="" i18n:domain="ui">Templates</tal:block> --\n - </option>\n - <tal:block tal:repeat="document_template document_template_list">\n - <option tal:attributes="value python:\'template \' + document_template.getRelativeUrl()"\n - i18n:translate="" i18n:domain="ui">Add\n - <tal:block tal:content="document_template/getTitle"\n - i18n:name="document_template"></tal:block>\n - </option>\n - </tal:block>\n - </tal:block>\n - <option disabled="disabled">-- \n - <tal:block i18n:translate="" i18n:domain="ui">Workflows</tal:block> --\n - </option>\n - <tal:block tal:repeat="action actions/workflow">\n - <option tal:content="action/name"\n - tal:attributes="value python: \'workflow \' + action[\'url\']"\n - i18n:translate="" i18n:domain="ui"></option>\n - </tal:block>\n - <option disabled="disabled">-- \n - <tal:block i18n:translate="" i18n:domain="ui">Object</tal:block> --\n - </option>\n - <tal:block tal:repeat="action actions/object_action | nothing">\n - <option tal:content="action/name"\n - tal:attributes="value python: \'object \' + action[\'url\']"\n - i18n:translate="" i18n:domain="ui"></option>\n - </tal:block>\n - <tal:block tal:replace=\'nothing\'>\n - <!-- XXX folder actions is inherited from CMF, but not used in ERP5 (for now) -->\n - <option disabled="disabled">--\n - <tal:block i18n:translate="" i18n:domain="ui">folder</tal:block> --\n - </option>\n - <tal:block tal:repeat="action actions/folder">\n - <option tal:content="action/name"\n - tal:attributes="value python: \'folder \' + action[\'url\']"\n - i18n:translate="" i18n:domain="ui"></option>\n - </tal:block>\n - </tal:block>\n - </select>\n - <!--\n - <button class="button" type="submit" name="Base_doAction:method" title="Action"\n - i18n:attributes="title" i18n:domain="ui">\n - <span class="image"></span>\n - <span class="description"\n - i18n:translate="" i18n:domain="ui">Action</span>\n - </button>\n - -->\n + </a>\n </div>\n + <script>\n + affShortcuts ();\n + </script>\n + </tal:block>\n + </tal:block>\n </div>\n \n -\n - <tal:block tal:condition="not: list_mode | nothing">\n - <tal:block tal:condition="request/selection_index | nothing">\n - <span class="tool_buttons">\n - <div class="div_next" align="right" id="div_next">\n -\n -<!-- <a class="jump_first" title="First"\n - tal:attributes="href python: \'portal_selections/viewFirst?%s\' % (http_parameters, )"\n - i18n:attributes="title" i18n:domain="ui">\n - <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">First</span>\n - </a> -->\n - <a class="jump_previous" title="Previous"\n - tal:attributes="href python: \'portal_selections/viewPrevious?%s\' % (http_parameters, )"\n - i18n:attributes="title" i18n:domain="ui">\n - <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">Previous</span>\n - </a>\n - <a class="list_mode" title="List Mode" tal:attributes="href python: here.portal_selections.getSelectionListUrlFor(request[\'selection_name\'])"\n - i18n:attributes="title" i18n:domain="ui">\n - <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">List Mode</span>\n - </a>\n - <a class="jump_next" title="Next"\n - tal:attributes="href python: \'portal_selections/viewNext?%s\' % (http_parameters, )"\n - i18n:attributes="title" i18n:domain="ui">\n - <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">Next</span>\n - </a>\n -<!-- <a class="jump_last" title="Last"\n - tal:attributes="href python: \'portal_selections/viewLast?%s\' % (http_parameters, )"\n - i18n:attributes="title" i18n:domain="ui">\n - <span class="image"></span>\n - <span class="description" i18n:translate="" i18n:domain="ui">Last</span>\n - </a> -->\n -\n - </div>\n - </span>\n - <script>\n - loadDivSize();\n - </script>\n -\n - <div id="shortcuts" class="shortcuts">\n - <a class="import_export"\n - title="Import / Export"\n - tal:attributes="href python:here.ERP5Site_renderLink(\'Person_exportPersonAsvCard\',http_parameters)"\n - i18n:attributes="title" i18n:domain="ui">\n - <button class="button" i18n:translate="" i18n:domain="ui">\n - <span class="link">Export as vCard</span>\n - </button>\n - </a>\n - </div>\n - <script>\n - affShortcuts ();\n - </script>\n - </tal:block>\n - </tal:block>\n </span>\n </tal:block> diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/erp5.css.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/erp5.css.xml index ac2c3a03ecc3b455e201a6a6abdd3229b8cd9f7e..d6477bd13756051acf58a22b549b55cdd9135af5 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/erp5.css.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/erp5.css.xml @@ -472,6 +472,17 @@ margin: 15px;\n border-color: #3D7474;\n background-color: #C1DAD2;\n margin-bottom: 5px;\n + /*padding-top: 10px;*/\n +}\n +\n +.div_navigation {\n + border-top: solid 1px;\n + /*border-bottom: solid 1px;*/\n + border-color: #3D7474;\n + background-color: #C1DAD2;\n + margin-bottom: 5px;\n + position: absolute;\n + right: 10px;\n }\n \n .List_top {\n @@ -525,12 +536,13 @@ margin: 15px;\n }\n \n .erp {\n + font-size: 18px;\n color: #3D7474;\n text-decoration: none;\n }\n \n .link_white {\n - font-size: 12px;\n + font-size: 14px;\n color: #FFFFFF;\n }\n \n @@ -725,6 +737,14 @@ textarea {\n text-decoration: underline;\n }\n \n +.div_short_mode, .div_normal_mode {\n + color: #3D7474;\n + font-weight: bold;\n + font-size: 8pt;\n + text-decoration: underline;\n + cursor: pointer;\n +}\n +\n .link2 {\n color: #3D7474;\n font-size: 12pt;\n @@ -753,8 +773,8 @@ fieldset {\n }\n \n .div_prev {\n - margin-top: 10px;\n - width: 0px;\n + margin-top: 5px;\n + width: 95%;\n text-align:left;\n padding-left:5px;\n line-height:85%;\n @@ -770,14 +790,14 @@ fieldset {\n border-bottom-color: #3D7474;\n border-right: solid 1px;\n border-right-color: #3D7474;\n - width: 60px;\n + width: 70px;\n text-align:center;\n position: absolute;\n padding-right: 3px;\n padding-bottom: 3px;\n right: 0px;\n - line-height: 85%;\n - top: 50px;\n + /*line-height: 85%;*/\n + top: 100px;\n }\n \n .div_sc {\n @@ -899,7 +919,7 @@ fieldset {\n \n .left_data {\n text-decoration: none;\n - padding-left: 10px;\n + padding-left: 30px;\n color: #000000;\n font-size: 12px;\n }\n @@ -932,8 +952,15 @@ fieldset {\n background-image: url(\'<dtml-var expr="portal_url.getPortalObject().absolute_url()">/images/search.png\');\n }\n \n -#actions button .image {\n +#actions button .image{\n background-image: url(\'<dtml-var expr="portal_url.getPortalObject().absolute_url()">/images/exec16.png\');\n + position: relative;\n + background-repeat: no-repeat;\n +}\n +#jump button .image {\n + background-image: url(\'<dtml-var expr="portal_url.getPortalObject().absolute_url()">/images/jump.png\');\n + position: relative;\n + background-repeat: no-repeat;\n }\n \n .separator {\n @@ -1111,7 +1138,6 @@ p.clear {\n \n body {\n background-color: <dtml-var background_color>;\n - font-size: 14px;\n }\n \n #transition_message {\n diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/erp5.js.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/erp5.js.xml index 591ede62c07807b7f93ce902305a8e7790b2053b..98e8133a13f97ad7888b2a6bd8d4f98770e8250e 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/erp5.js.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/erp5.js.xml @@ -108,23 +108,32 @@ function simple_aff(dynamic_check_field) {\n form_id=dynamic_check_field.split("listbox_")\n max_lenght_field_id=form_id[0]+"listbox_listMax"\n max_item_field_id=form_id[0]+"listbox_itemMax";\n - check_field_id=form_id[0]+"listbox_check";\n + span_field_id=form_id[0]+"listbox_check";\n var max_lenght = document.getElementById(max_lenght_field_id).value;\n var max_item = document.getElementById(max_item_field_id).value;\n - var check = document.getElementById(check_field_id);\n + var span_field = document.getElementById(span_field_id);\n +\n + if (span_field.className=="div_short_mode") {\n + var span_className="div_short_mode"\n + }\n + else {\n + var span_className="div_normal_mode"\n + }\n \n for (b = 0; b < max_item; b++)\n {\n for (a = 0; a < max_lenght; a++)\n { var foo =form_id[0]+ \'listbox_\' + b + \'data\' + a;\n var target = document.getElementById(foo);\n - if (check.checked)\n + if (span_className=="div_short_mode")\n {\n - target.style.display = "none";\n + target.style.display = "inline";\n + span_field.className="div_normal_mode"\n }\n else\n {\n - target.style.display = "inline";\n + target.style.display = "none";\n + span_field.className="div_short_mode"\n }\n }\n }\n diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/field_render.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/field_render.xml index 9fe4f328092e3d5825d75930416dbc6cb591bb3c..6bfd9692546172293a743a700c77d7d01ba84e4e 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/field_render.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/field_render.xml @@ -72,11 +72,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n field_has_error python: field_errors.has_key(field_id);\n global form_id form_id | python: form.id;\n field_description field/Field_getDescription;">\n - <div tal:define="html_render python: field.render_htmlgrid(value, request, render_prefix=render_prefix)"\n + <div tal:define="html_render python: field.render_htmlgrid(value, request, render_prefix=render_prefix)"\n tal:attributes="title field_description;\n class python: \' \'.join([x for x in [\'field\', field.is_required() and \'required\' or None, field_has_error and \'error\' or None, field.get_value(\'css_class\') or None] if x is not None])"\n i18n:attributes="title" i18n:domain="ui">\n - <tal:block tal:repeat="html_tuple html_render">\n + <tal:block tal:repeat="html_tuple html_render">\n <label>\n <tal:block tal:content="structure python: html_tuple[0]"\n i18n:translate="" i18n:domain="ui"/>\n diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/form_render.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/form_render.xml index 33d7c2c54e17e7ab09e1314ecf07aa6ea222293b..8554f7d1ed975aac17716ed5653c1f7904825b34 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/form_render.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/form_render.xml @@ -93,7 +93,6 @@ It is possible to specify a group id and a group title by naming a group followi group_list python: form.Form_getGroupTitleAndId();\n gid_list python: \' \'.join([x[\'gid\'] for x in group_list if x!=\'hidden\']);\n field_render nocall: here/field_render/macros/field_render">\n - <!-- field_errors python: request.get(\'field_errors\', {}); -->\n <tal:block tal:repeat="group group_list">\n <tal:block tal:define="gid group/gid;">\n <fieldset tal:condition="python: gid.find(\'hidden\') < 0"\n @@ -113,7 +112,7 @@ It is possible to specify a group id and a group title by naming a group followi <p class="clear"> </p>\n </tal:block>\n <div class="div_gtt" align="middle">\n - <a class="link_white" tal:attributes="href python: \'%s%s%s%s\' % (context.REQUEST.URL0,\'?\', context.REQUEST.QUERY_STRING,\'#TOP\')">////////// Top of page \\\\\\\\\\\\\\\\\\\\</a>\n + <a class="link_white" tal:attributes="href python: \'%s%s%s%s\' % (context.REQUEST.URL0,\'?\', context.REQUEST.QUERY_STRING,\'#TOP\')" i18n:translate="" i18n:domain="ui">////////// Top of page \\\\\\\\\\\\\\\\\\\\</a>\n </div>\n </tal:block>\n </tal:block> diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/1leftarrowb.png.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/1leftarrowb.png.xml index 3ee085fe9f6dd0001ba07ba236023ea46987160b..eb708074762308ce4df50c1b0370520261da6b87 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/1leftarrowb.png.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/1leftarrowb.png.xml @@ -15,7 +15,7 @@ </item> <item> <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts36632016.88</string> </value> + <value> <string>ts37807874.42</string> </value> </item> <item> <key> <string>__name__</string> </key> @@ -27,18 +27,17 @@ </item> <item> <key> <string>data</string> </key> - <value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAABbklEQVQ4y2P4//8/Ay0wTQxFMZhS -QLHBXFwGnmxsoiFAJhvVDObn9wtVUop4x8kpew7I5aOKwZycdoExMRPfpKfP+S8oqLIbKMRDscFs -bPY+yclTnh0//uJ/YeH8/2xs0jupYLB5cELCpGeXL7/5v2PHnf/+/m3/WVnFKTNYWNjZPzl50svz -51/837nz9v+amq3/PT0b/3NyipBtMDM/v1NIRETfy5MnnwMNvfm/snL9//T0pf/d3Or/c3OT72IW -NjbVYguL7H95ecv/V1dvAhq84X9m5tL/rq51/zk4xCgKCi4GBqVaKamAv35+/f8bG7f9b2/f89/H -pwkYeeQHBTxIGBjkG6Wl/X+Fh0/739Gx739YWB8wKHSpkSoYWJmYVGplZYN/eXr2/LezqwQarEoV -g0GAkZlZsUFKyu+funoSMFVQJR0jXM7KqtIiKGgFDGPRMwzUytJQwM7CIlQLpNogkUs9g3EC+hf0 -owYDADYuIvHs3hRyAAAAAElFTkSuQmCC</string> </value> + <value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAYAAAAmL5yKAAABVklEQVQoz2NgIBJwcRl4srGJhgCZ +bAykAn5+v1AlpYh3nJyy54BcPpI0c3LaBcbETHyTnj7nv6Cgym6gEA/RmtnY7H2Sk6c8O378xf/C +wvn/2dikd5JggHlwQsKkZ5cvv/m/Y8ed//7+bf9ZWcWJM0BY2Nk/OXnSy/PnX/zfufP2/5qarf89 +PRv/c3KKEDSAmZ/fKSQiou/lyZPPgZpv/q+sXP8/PX3pfze3+v/c3IRdwMLGplpsYZH9Ly9v+f/q +6k1AAzb8z8xc+t/Vte4/B4cYUV7gYmBQqpWSCvjr59f/v7Fx2//29j3/fXyagIEoQnQgMjMwyDdK +S/v/Cg+f9r+jY9//sLA+oBd0SYkFBlYmJpVaWdngX56ePf/t7CqBBqiSZAAIMDIzKzZISfn9U1dP +AsaCNMkGgF3CyqrSIihoBQwD0TMkJ2UoYGdhEaoFUm2QQEYAAH0OeXB6HHCWAAAAAElFTkSuQmCC</string> </value> </item> <item> <key> <string>height</string> </key> - <value> <int>22</int> </value> + <value> <int>14</int> </value> </item> <item> <key> <string>precondition</string> </key> @@ -46,7 +45,7 @@ owYDADYuIvHs3hRyAAAAAElFTkSuQmCC</string> </value> </item> <item> <key> <string>size</string> </key> - <value> <int>423</int> </value> + <value> <int>399</int> </value> </item> <item> <key> <string>title</string> </key> @@ -54,7 +53,7 @@ owYDADYuIvHs3hRyAAAAAElFTkSuQmCC</string> </value> </item> <item> <key> <string>width</string> </key> - <value> <int>22</int> </value> + <value> <int>16</int> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/1rightarrowb.png.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/1rightarrowb.png.xml index ff7c416f190b6aef0f98511fec04875b289f054f..7e20a62002071e2f7378f4fdae476040a3a3cfbd 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/1rightarrowb.png.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/1rightarrowb.png.xml @@ -15,7 +15,7 @@ </item> <item> <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts36632016.93</string> </value> + <value> <string>ts37807875.21</string> </value> </item> <item> <key> <string>__name__</string> </key> @@ -27,18 +27,18 @@ </item> <item> <key> <string>data</string> </key> - <value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAABg0lEQVQ4y2P4//8/Ay0wA80NphQQ -aXA9k6iolxUvr30CkMNKRYONWaWlg3s0NBL+s7KKNxFjOLFBwaqkFFFfW7v2X2BgyV8GBn6ChhNt -sIiIR92MGQd/Xbr07r+vb/4/BgaOeqA4I8UG8/E51DU1rf959er7/+vWXf3v6Zn3i4mJpwaXy0kw -2KKusnLZz5UrL/3v7Nzzf9asE//9/PJ/s7IKYw0Wog3m4dGry8mZ9XPKlGP/MzIW/6+s3PB/5syT -/52ds/6xsgq2AtWwk2UwF5daXXR038/q6i3/09IW/a+q2vgfxDYzy/jPxMS7BqiGi0yD5ep8fBp/ -lpSs+9/QsPV/efmG//r6iUBDRTcC5aXJDgo2NpE6d/fKn62te8Au1dNL/M/IKAhyqQRFkcfGxlPn -4VH+s7Bw438jo1SgAsF1QHERipMbB4dAnbV1zl9Dwwxg7pPYDBSTpEoGYWbm7JaUtP4PDOuNhAwl -xWBmII4FZrQ5xBhKisHUKzaHXg0yZAwGAKelJSawQlTuAAAAAElFTkSuQmCC</string> </value> + <value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAYAAAAmL5yKAAABZElEQVQoz2NgQAH1TKKiXla8vPYJ +QA4rA+nAmFVaOrhHQyPhPyureBM5hrAqKUXU19au/RcYWPKXgYGfZENYRUQ86mbMOPjr0qV3/319 +8/8xMHDUA8UZiTaAj8+hrqlp/c+rV9//X7fu6n9Pz7xfTEw8NcS6BGiARV1l5bKfK1de+t/Zuef/ +rFkn/vv55f9mZRUmyjusPDx6dTk5s35OmXLsf0bG4v+VlRv+z5x58r+zc9Y/VlbBVqAadrwGcHGp +1UVH9/2srt7yPy1t0f+qqo3/QWwzs4z/TEy8a4BquAgYIFfn49P4s6Rk3f+Ghq3/y8s3/NfXTwRq +Ft0IlJcm6AU2NpE6d/fKn62te8A26+kl/mdkFATZLEFUILKx8dR5eJT/LCzc+N/IKPU/A4PgOqC4 +CNHRyMEhUGdtnfPX0DADmBolNgPFJElKSMzMnN2Sktb/gWGxkVTNIMAMxLHAhDeHWM0AN8F7pQD6 +pwEAAAAASUVORK5CYII=</string> </value> </item> <item> <key> <string>height</string> </key> - <value> <int>22</int> </value> + <value> <int>14</int> </value> </item> <item> <key> <string>precondition</string> </key> @@ -46,7 +46,7 @@ xWBmII4FZrQ5xBhKisHUKzaHXg0yZAwGAKelJSawQlTuAAAAAElFTkSuQmCC</string> </value> </item> <item> <key> <string>size</string> </key> - <value> <int>444</int> </value> + <value> <int>413</int> </value> </item> <item> <key> <string>title</string> </key> @@ -54,7 +54,7 @@ xWBmII4FZrQ5xBhKisHUKzaHXg0yZAwGAKelJSawQlTuAAAAAElFTkSuQmCC</string> </value> </item> <item> <key> <string>width</string> </key> - <value> <int>22</int> </value> + <value> <int>16</int> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/showall.png.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/showall.png.xml index 8e974da865594ada455a694ba805e405050603a4..403a1a1e6efebe8446afa3b4df4ea32f4ceb2d7c 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/showall.png.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/showall.png.xml @@ -15,7 +15,7 @@ </item> <item> <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts36632017.57</string> </value> + <value> <string>ts37809759.72</string> </value> </item> <item> <key> <string>__name__</string> </key> @@ -27,15 +27,10 @@ </item> <item> <key> <string>data</string> </key> - <value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABnklEQVQ4EQXBu0uVYRwA4Of3ntfP -bphgN4gazLK1oBqEEioHiZZcWlukoSGI1gMFTQ3NDQ31JwQtGpWQ0CCRFNgFA8FTYUMHBC/f8f16 -ngAA2oNsDjK8ynQNAAAAAAmA9i48Yt9Lfo8DIBAIBAKBgAxAa5RyAQdI17k6z8wELiOjABIKFvAi -A+1MuUazRj1LusiZ48y8xScEAADW0ctANUTvCnGKZi/pJEOXaH1l5ywqFECgwRJeZaAaJW8ycJ/d -Hf7dpDXM8Du+L6BCAwg0+IOSkXheUb7xpR+HOLLCwGFWx9AFBAAarCMCgdM4jz2AbUAFAIBAgx94 -k9HgLxaR0AAAAAoKAg26KBkJJzCJCgUAABmBggY9fEYno2ARPxFoABDYYWSL25PEOHUi9VOWGZSR -cA43UKEAIKFmZY6+ZeqKjSligjRPpwlAH/oRAACALWzTHiGeUt5z9AHTdUbCGKZQoQAgoYfX3PlA -PMYa20+YriEA+3EQAQCAwrENbt2juktvjrRE7yOeZUAXXQAAAFaCh7O0lulV5BblF6vNf1Jpfaan -JZnNAAAAAElFTkSuQmCC</string> </value> + <value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAeklEQVQ4y2NgQAH1QFwOxDMZyAAg +zQ3/IbgRJvgfD0YHDf+xs0m2HYbLSHFBK8wABigGsjtJcUE3Li8Q6wJdBiTboVgNiLlICoj/JGJS +QQMWTLwLsMRSAym2qzCgxhCI7sRIsQRcMAktpTZD0w9pYfCfimFAcSxQCQAAJw9uCBnYXCcAAAAA +SUVORK5CYII=</string> </value> </item> <item> <key> <string>height</string> </key> @@ -47,7 +42,7 @@ JZnNAAAAAElFTkSuQmCC</string> </value> </item> <item> <key> <string>size</string> </key> - <value> <int>471</int> </value> + <value> <int>179</int> </value> </item> <item> <key> <string>title</string> </key> diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/sort.png.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/sort.png.xml index 28b28ba948737a1c63d485745a26b812d35ae740..975dcd346e44e45dbab824c56750dcb950325ace 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/sort.png.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/sort.png.xml @@ -15,7 +15,7 @@ </item> <item> <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts36632017.62</string> </value> + <value> <string>ts37809758.87</string> </value> </item> <item> <key> <string>__name__</string> </key> @@ -27,17 +27,13 @@ </item> <item> <key> <string>data</string> </key> - <value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABAAAAAOCAYAAAAmL5yKAAABOklEQVQoFZXBP0uUcQAA4Of3vj+O -9/JExcDUqMmpKZrjZmlujD6AKNlkY0KgUau4O7cIbUE1+AEKDKupAhWxQdRE7/3jwR2ReFk+T4oM -NzCIQ5T+av4WzTmam7zf0ZZgDLOYwYALFeNU90nGdUV8wxMEFKjjBIVz8px0jzzXFXETU+hHiiMs -4ZP/EPEDzxF0lNjRU9IiVBQtXRGjeIg+FDrqyLGKNd6mvGtgiCohDrLYz6+jgD5MIKLSEVDgKw54 -dZ0Pzwh3CVcpdwlvOF4IGME9ZCidlSHhyjqPh6i9pD7G/neqRySvA4bRRA2V80p8xGeWJtmdpljm -6aq2gAHcRg2l3jJk2OLBBis/dUU0cAd1lHoLfltZ84eADNeQ+LeIBo7xBa2IUUyjgcLFAlJs4wX2 -go7E5VSotJ0CCJtSj+SHwqAAAAAASUVORK5CYII=</string> </value> + <value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAXUlEQVQ4y2NgIAk0AXEDENczkAka +/kNwI6UGNGCV/Q/FZBtANRfgcQmyAZ2kBCZcIxquwOsCJJc0YDOEgcSwaGAgpPk/fgzThIwZSHYB +Xs3/icNkpwHC4D+JeJAAAKd3WEOA24xgAAAAAElFTkSuQmCC</string> </value> </item> <item> <key> <string>height</string> </key> - <value> <int>14</int> </value> + <value> <int>16</int> </value> </item> <item> <key> <string>precondition</string> </key> @@ -45,7 +41,7 @@ go7E5VSotJ0CCJtSj+SHwqAAAAAASUVORK5CYII=</string> </value> </item> <item> <key> <string>size</string> </key> - <value> <int>371</int> </value> + <value> <int>150</int> </value> </item> <item> <key> <string>title</string> </key> diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/text_block.png.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/text_block.png.xml index ca62e73c4125308b1d8445907de27931f32ba5b7..d6d9c9fa583280dd77d4df5883ea8667a6179041 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/text_block.png.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/images/text_block.png.xml @@ -15,7 +15,7 @@ </item> <item> <key> <string>_EtagSupport__etag</string> </key> - <value> <string>ts32023546.26</string> </value> + <value> <string>ts37809760.35</string> </value> </item> <item> <key> <string>__name__</string> </key> @@ -27,12 +27,12 @@ </item> <item> <key> <string>data</string> </key> - <value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAALElEQVQ4y2P4//8/Ay0ww9A1GAj+ -UwOPBsVoUIwGxWhQjAYFUV4fRjUItTEA0PHXYTXzqhwAAAAASUVORK5CYII=</string> </value> + <value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAG0lEQVQ4jWNgoCL4TyKmPhh1wagL +hoYLBikAAOPnT7GfqXaJAAAAAElFTkSuQmCC</string> </value> </item> <item> <key> <string>height</string> </key> - <value> <int>22</int> </value> + <value> <int>16</int> </value> </item> <item> <key> <string>precondition</string> </key> @@ -40,7 +40,7 @@ UwOPBsVoUIwGxWhQjAYFUV4fRjUItTEA0PHXYTXzqhwAAAAASUVORK5CYII=</string> </value> </item> <item> <key> <string>size</string> </key> - <value> <int>101</int> </value> + <value> <int>84</int> </value> </item> <item> <key> <string>title</string> </key> @@ -48,7 +48,7 @@ UwOPBsVoUIwGxWhQjAYFUV4fRjUItTEA0PHXYTXzqhwAAAAASUVORK5CYII=</string> </value> </item> <item> <key> <string>width</string> </key> - <value> <int>22</int> </value> + <value> <int>16</int> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/index_html.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/index_html.xml index 423b646b892ab59475dd1143fc353ae7a24d7cec..aa6f843dedddc4fc00c58c886bfb16941e74eedf 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/index_html.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/index_html.xml @@ -75,7 +75,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n </div>\n <div class="window">\n <div class="modules"><br>\n - <span class="link2">Main menu</span>\n + <span class="link2" i18n:translate="" i18n:domain="ui">Main menu</span>\n <!--\n <tal:block tal:condition="not: here/portal_membership/isAnonymousUser">\n <span class="link2" i18n:translate="" i18n:domain="ui">of</span>\n diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/list_main.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/list_main.xml index 86f246297e354f425c6b5fc477718eb28760db6b..58cf4ee84de578548d6cc0682a5e02d42f88dc2b 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/list_main.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/list_main.xml @@ -204,6 +204,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n <tal:block metal:fill-slot="main">\n <tal:block metal:define-slot="main"/>\n </tal:block>\n + <tal:block metal:fill-slot="context_actions">\n + <tal:block metal:use-macro="here/context_actions_render/macros/master" />\n + </tal:block>\n </tal:block>\n </div>\n </tal:block>\n diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/main_template.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/main_template.xml index 1e95ed44051f75a3de05264cdcfd5b532b716127..bdd2d11946f125c1120458baf8e4016cde5847e3 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/main_template.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/main_template.xml @@ -83,6 +83,9 @@ IDEAS:\n <tal:block metal:fill-slot="context_bar">\n <tal:block metal:define-slot="context_bar"/>\n </tal:block>\n + <tal:block metal:fill-slot="context_actions">\n + <tal:block metal:define-slot="context_actions"/>\n + </tal:block>\n </tal:block>\n </tal:block>\n </tal:block> diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/template_erp5_xhtml_style.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/template_erp5_xhtml_style.xml index 90aebd1bbaa27bca0143e0cba9a1c8fdde066a8f..880f4bfc6369bc4ccf56a294048866c7c863862e 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/template_erp5_xhtml_style.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/template_erp5_xhtml_style.xml @@ -112,6 +112,7 @@ IDEAS:\n <div id="master">\n <tal:block metal:define-slot="main"/>\n </div>\n + <div id="context_bar"> <tal:block metal:define-slot="context_actions"/></div>\n </form>\n </body>\n </html>\n diff --git a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/view_main.xml b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/view_main.xml index 45b38e35f006ce608ef0ebcb4cae2f069fc50cca..2c484b3867a24dcc512f7d1b3dfeeee20efab397 100644 --- a/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/view_main.xml +++ b/bt5/erp5_mobile/SkinTemplateItem/portal_skins/erp5_mobile_ui/view_main.xml @@ -73,8 +73,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n local_parameter_list local_parameter_list | python: {};\n dummy python: local_parameter_list.update({\'object_uid\': object_uid, \'object_path\': object_path, \'form_id\': form_id});\n title string:${template/title_or_id} - ${here/Title};\n -\n - "><!-- current_action python: here.ERP5Site_getCurrentDialogAction(current_url, dialog_actions); -->\n + ">\n <div class="div1 small">\n \n <div class="title_index" align="middle">\n @@ -113,27 +112,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n <tal:block metal:fill-slot="main">\n <div tal:define="actions actions/object_view | python: []">\n <div class="content nomarg div4" align="middle"><!-- tal:attributes="class python: action == current_action and \'selected\' or \'not_selected\'" -->\n - <span tal:repeat="action actions" >\n + <span tal:repeat="action actions">\n <a tal:attributes="href python: here.ERP5Site_renderLink(action[\'url\'], http_parameters); class python: action == current_action and \'link_selected\' or \'link\'"\n - tal:content="action/name"\n - i18n:translate="" i18n:domain="ui"/>\n + tal:content="action/name" i18n:translate="" i18n:domain="ui"/>\n </span>\n </div>\n -<!--\n - <div id="breadcrumb" class="breadcrumb">\n - <tal:block tal:repeat="item here/breadcrumbs">\n - <tal:block tal:condition="python: repeat[\'item\'].index < 2">\n - <a class="link mobil" tal:attributes="href item/url"\n - tal:content="item/title"\n - i18n:translate="" i18n:domain="ui"></a>\n - </tal:block>\n - <tal:block tal:condition="python: repeat[\'item\'].index >= 2">\n - <a class="link mobil" tal:attributes="href item/url"\n - tal:content="item/title"></a>\n - </tal:block>\n - <span class="mobil">/</span>\n - </tal:block>\n - </div> -->\n \n <tal:block metal:define-slot="main"/>\n <div class="save" align="middle" tal:condition="python: (not is_web_mode or editable_mode) and len(actions)">\n @@ -146,6 +129,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n <a name="BOTTOM"></a>\n </div>\n </div>\n + <div id="context_bar">\n + <tal:block metal:use-macro="here/context_actions_render/macros/master" />\n + </div>\n </tal:block>\n </tal:block>\n </div>\n diff --git a/bt5/erp5_mobile/bt/revision b/bt5/erp5_mobile/bt/revision index f70d7bba4ae1f07682e0358bd7a2068094fc023b..ac4213d6e97d9cfeb1d7bc8f948c06114a56de18 100644 --- a/bt5/erp5_mobile/bt/revision +++ b/bt5/erp5_mobile/bt/revision @@ -1 +1 @@ -42 \ No newline at end of file +43 \ No newline at end of file diff --git a/bt5/erp5_mobile/bt/template_catalog_datetime_key_list b/bt5/erp5_mobile/bt/template_catalog_datetime_key_list new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/bt5/erp5_mobile/bt/template_catalog_local_role_key_list b/bt5/erp5_mobile/bt/template_catalog_local_role_key_list new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/bt5/erp5_mobile/bt/template_catalog_role_key_list b/bt5/erp5_mobile/bt/template_catalog_role_key_list new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/bt5/erp5_mobile/bt/template_catalog_scriptable_key_list b/bt5/erp5_mobile/bt/template_catalog_scriptable_key_list new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/bt5/erp5_mobile/bt/template_tool_id_list b/bt5/erp5_mobile/bt/template_tool_id_list new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391