Commit d8c8e865 authored by Jean-Paul Smets's avatar Jean-Paul Smets

2006-01-02 JPS

* Small fixes to make xhtml style compatible with erp5_web.
* clear tags no longer used if in web mode
* do not display group title if not defined

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11832 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 65e0f5c0
......@@ -75,7 +75,8 @@
page from a script. It should probably be extended, reviewed and documented\n
so that less code is copied and pasted in dialog scripts.\n
\n
TODO: improve API and extensively document.\n
TODO: improve API and extensively document. ERP5Site_redirect may \n
be redundant.\n
"""\n
from ZTUtils import make_query\n
request_form = context.REQUEST.form\n
......
......@@ -69,7 +69,7 @@
<item>
<key> <string>_body</string> </key>
<value> <string>"""\n
This script split a form group id in two part:\n
This script splits a form group id in two part:\n
* a group id,\n
* a group title.\n
\n
......@@ -116,7 +116,7 @@ def getFormGroupTitleAndId():\n
group_title = \')\'.join(group_title_list[:-1]).strip()\n
# Return the group id if no title found\n
if len(group_title) == 0:\n
group_title = group_id\n
group_title = None\n
res.append({\'gid\': group_id, \'gtitle\': group_title, \'goid\': original_group_id})\n
return res\n
\n
......
......@@ -106,7 +106,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
class="error"\n
tal:content="python: field_errors[field_id].error_text"\n
i18n:translate="" i18n:domain="ui"/>\n
<p class="clear"></p>\n
<p class="clear" tal:condition="not:is_web_mode"></p>\n
</tal:block>\n
</div>\n
</tal:block>\n
......
......@@ -118,7 +118,7 @@ It is possible to specify a group id and a group title by naming a group followi
<fieldset tal:condition="python: gid.find(\'hidden\') < 0"\n
tal:attributes="class gid;\n
id python: \'fieldset_%s\' % (gid.replace(\' \', \'_\'), );">\n
<legend tal:content="group/gtitle" class="group_title"/>\n
<legend tal:condition="group/gtitle" tal:content="group/gtitle" class="group_title"/>\n
<tal:block tal:repeat="field python: form.get_fields_in_group(group[\'goid\'])">\n
<tal:block metal:use-macro="field_render"/>\n
</tal:block>\n
......
......@@ -62,7 +62,7 @@
dummy python: local_parameter_list.update({\'cancel_url\': cancel_url});\n
\n
global actions python: here.getPortalObject().portal_actions.listFilteredActionsFor(here);\n
global url python: \'%s%s\' % (request[\'SERVER_URL\'], here.getPath(), );\n
global url here/absolute_url;\n
global current_form_id python: local_parameter_list.get(\'dialog_id\', local_parameter_list.get(\'form_id\', \'view\'));\n
global current_url python: \'%s/%s\' % (url, current_form_id);\n
global current_action python: here.ERP5Site_getCurrentAction(current_url, actions);\n
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>OFS.Image</string>
<string>Image</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>save-preview.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
WXMAAAsSAAALEgHS3X78AAAAB3RJTUUH0wgcEjo6jsYXEgAABD9JREFUeNqFlF+IVFUcxz935s44
s9uubbqotemmZGEPmy710GKkBIJREFLiw9JDiYFg0oMI6YMGRvRQoORT4Usv+hKYhYhhQmL2UMsa
xLqbu6tuu7M6u/Pnzrnnfw93dmanTA/8OL9z7uVzv/f7O+cXXLt+23e0ZQkCWoYHnANrHdZ6ytUo
LhTufmqU+HjXm1ssDxnB8OiMf2ZNN2G6FTpdusvpa2c48csXjIkbkIdclKPTPzZWmJ46iOUi3zD3
YHBvN95q7ty5A4Cymo9+OMQ5d5Z4TQwdQAowwBxkbmWVv+FOm6rZ93/wcCHJZDL09vbinOPkpZOc
y50l7osT4Cx03lxK170uUqSJwihbXHZvJxLHuxzgK2buD/agdaJ4qjzF1yOniAdiaIPUaJr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AAASUVO
RK5CYII=</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>22</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <long>1202</long> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Save and View</string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>22</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>OFS.Image</string>
<string>Image</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>save.png</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/png</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="base64">iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
WXMAAAsSAAALEgHS3X78AAAAB3RJTUUH1goICwsb4nOaGgAABLpJREFUOMuVlE2PXEcZRk/Vvbf7
dk/39DjjmbETk0TATEiCoiBLRNkhpIgPwb9gw449v4J/wDLsWIKcBaDAhshx4uA4thMTO7bH06an
v+699fHWWyx6HCN2qXXVqadOPVWGbzie/A5bXqgu5/4rv5X+L3++ur/+cv3V579f3f303fbR3Xvv
vEcEKL8p2Nb0i3F+zozcbllHa6qjSTXZu4wxN8rh6PQK10/feY9c/unP/zwy1kzIHKhmrDGs1i0+
CCklSmtRVWJMiAj/MH8Z/6B89+2DvdOjorxZbG1f3Gts/xenZblYF+PPbnK0hFtSWmt/U/XKo6Is
3jLZYC08nM4JQbDWsLu/TVVaRJQkwjBdMKHYLq192OP4Cqw+xJwcVcfr4at/m146fH/1ygO4tSht
YX89Gg3ZOzjHoK6w1vK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cC2XrvPY0tKs1gxLcK5FZLNBrLbwO9/G2TFqh9gENgvWKsbkZ33vWoLrSCLkjWPK
ZtX+sVm335oeP3ntfl0xP5lt/oiUEO+QKIiuSBlSUkTSWbJn4NnjOe3Sk0T/qsojgP8CrNOFEjTc
9+YAAAAASUVORK5CYII=</string> </value>
</item>
<item>
<key> <string>height</string> </key>
<value> <int>22</int> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <long>1325</long> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Save</string> </value>
</item>
<item>
<key> <string>width</string> </key>
<value> <int>22</int> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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