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 9ba01bb45d12c2578fd6cba7e5a08182b678f314..eccd165a788c8e98b570e3e4f29f750f55147c2c 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 @@ -132,10 +132,10 @@ <div class="top_list">\n <div id="listbox_title_line" tal:attributes="id string:${field_id}_title_line" class="List_top">\n <!-- <tal:block tal:define="global field_id string:${field_id}" /> -->\n -\t <span id="listbox_record_number"\n + <span id="listbox_record_number"\n tal:attributes="id string:${field_id}_record_number"\n i18n:translate="" i18n:domain="ui"><tal:block tal:replace="here/total_size" i18n:name="number">0</tal:block> record(s)</span>\n - <span id="listbox_item_number"\n + <span id="listbox_item_number"\n tal:attributes="id string:${field_id}_item_number; class string:listbox_item_number"\n i18n:translate="" i18n:domain="ui"> - <tal:block tal:replace="python: len(here.getCheckedUidList())" i18n:name="number">0</tal:block> item(s) selected</span>\n <input type="hidden" tal:attributes="id string:${field_id}_listMax; name string:${field_id}_listMax; value python: len(search_value_list)">\n @@ -173,8 +173,23 @@ src string:${portal_url_string}/images/1rightarrowv.png;\n class string:listbox_next_page"\n i18n:domain="ui" i18n:attributes="title" /> \n + <br />\n + <tal:block tal:condition="python: len(line_list)>0">\n + <input id="listbox_check_all" type="image"\n + name="checkAll:method" value="1"\n + src="checkall.png" alt="Check All" title="Check All"\n + class="listbox_check_all"\n + tal:attributes="id string:${field_id}_check_all;\n + name string:${field_id}_checkAll:method;\n + src string:${portal_url_string}/images/checkall.png"\n + i18n:domain="ui" i18n:attributes="title" /> <input id="listbox_uncheck_all" type="image" name="uncheckAll:method" value="1"\n + src="%(portal_url_string)s/images/decheckall.png" style="border: 0" alt="Uncheck All" title="Uncheck All" class="listbox_uncheck_all"\n + tal:attributes="id string:${field_id}_uncheck_all;\n + name string:${field_id}_uncheckAll:method;\n + src string:${portal_url_string}/images/decheckall.png"\n + i18n:domain="ui" i18n:attributes="title" /> \n + </tal:block>\n </span>\n -\n </div>\n </div>\n </div>\n @@ -217,10 +232,10 @@ i18n:domain="ui" i18n:translate="">Show</a>\n </div>\n </tal:block>\n -\t <div name="selection_mui" style="padding-bottom: 5px;">\n + <div name="selection_mui" style="padding-bottom: 5px;">\n \n - <select id="select_search_field" onChange="javascript: showSearchSelectedColumn();" name="select_search_field">\n - <tal:block tal:repeat="valueX search_value_list">\n + <select id="select_search_field" onChange="javascript: showSearchSelectedColumn();" name="select_search_field">\n + <tal:block tal:repeat="valueX search_value_list">\n <tal:block tal:define="\n aliasX python: valueX[0];\n paramX python: valueX[1];\n @@ -249,7 +264,7 @@ tal:attributes="name alias; value param; id python: \'%s%s\' % (\'input\', foo)" type="text"/>\n </span>\n </div>\n - </tal:block>\n + </tal:block>\t \n </div>\n </div>\n \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 index ffdedc8ce2b04d11f14bd8b445f97f44a1f35342..8901984329baf19db1fb6f0de6c1ccafc1e7c4c5 100644 --- 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 @@ -140,6 +140,17 @@ XXX: Folder_filter accesses selection directly\n <span class="image"></span>\n <span class="description" i18n:translate="" i18n:domain="ui">Sort</span>\n </a>\n + <tal:block tal:condition="list_mode">\n + <tal:block tal:condition="ui_actions">\n + <span class="separator"><!--separator--></span>\n + <a class="configure" title="Configure"\n + tal:attributes="href python: portal.ERP5Site_renderCustomLink(ui_actions[0][\'url\'], http_parameter_list, dialog_category=\'object_ui\')"\n + i18n:attributes="title" i18n:domain="ui">\n + <span class="image"></span>\n + <span class="description" i18n:translate="" i18n:domain="ui">Configure</span>\n + </a>\n + </tal:block>\n + </tal:block>\n </tal:block>\n </span><br />\n \n 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 01e689bccc8db33651526363afe30dd713a04612..c28ae758228203693c5fc55c43948d7a1e5de494 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 @@ -118,8 +118,9 @@ XXX: Folder_filter accesses selection directly\n <script>\n loadDivSize();\n </script>\n - <div id="shortcuts" class="shortcuts">\n - <a class="import_export"\n + <div id="shortcuts" class="shortcuts" >\n + <a tal:condition="python: here.getPortalType() in [\'Person\',]"\n + 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 @@ -127,6 +128,10 @@ XXX: Folder_filter accesses selection directly\n <span class="link" i18n:translate="" i18n:domain="ui">Export as vCard</span>\n </button>\n </a>\n + <button class="button" i18n:translate="" i18n:domain="ui">\n + <span class="link" i18n:translate="" i18n:domain="ui"> </span>\n + </button>\n +\n </div>\n <script>\n affShortcuts ();\n 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 93adeb2b99f31bac3ffe67b29ac95d0fdfb36c61..2a8496c4f9640716e1e68e08e174aeaf85c655ab 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 @@ -955,13 +955,11 @@ fieldset {\n #actions button .image{\n background-image: url(\'<dtml-var expr="portal_url.getPortalObject().absolute_url()">/images/exec16.png\');\n position: relative;\n - top: -10px;\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 - top: -10px;\n background-repeat: no-repeat;\n }\n \n @@ -1052,6 +1050,10 @@ fieldset {\n background-image: url(\'<dtml-var expr="portal_url.getPortalObject().absolute_url()">/images/sort.png\');\n }\n \n +#context_bar .tool_buttons .configure .image {\n + background-image: url(\'<dtml-var expr="portal_url.getPortalObject().absolute_url()">/images/configure.png\');\n +}\n +\n #navigation_buttons {\n text-align: right;\n float: right\n diff --git a/bt5/erp5_mobile/bt/change_log b/bt5/erp5_mobile/bt/change_log index c6d0d14063d8d22b5bc0e0454342dc2885a7216c..fd5c3009d550738ef49dabe992544d3d4500c7cd 100644 --- a/bt5/erp5_mobile/bt/change_log +++ b/bt5/erp5_mobile/bt/change_log @@ -1,3 +1,8 @@ +2009-08-19 Mohamadou +* Disallow Export as vCard in other modules +* Add check/uncheck checkbox in list view +* Add "Configure icon" in actions box + 2009-03-10 Mohamadou * In listmode it is now posible to copy/paste/cut/delete/find/filter/show_all/sort or add new element. * In document view it is possible to clone or add new one diff --git a/bt5/erp5_mobile/bt/revision b/bt5/erp5_mobile/bt/revision index 7d37386284a97324cbac474cb5ea5360d361d104..613955421088a491231b1c6c7766f0f95a5c5824 100644 --- a/bt5/erp5_mobile/bt/revision +++ b/bt5/erp5_mobile/bt/revision @@ -1 +1 @@ -45 \ No newline at end of file +52 \ No newline at end of file