Commit 5c175280 authored by Vincent Pelletier's avatar Vincent Pelletier

Add buttons in form view (form-wide buttons and one for the fields in bottom group).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6890 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2c5c6876
...@@ -50,13 +50,18 @@ ...@@ -50,13 +50,18 @@
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n
"DTD/xhtml1-strict.dtd">\n "DTD/xhtml1-strict.dtd">\n
\n
<tal:block tal:replace="nothing">\n <tal:block tal:replace="nothing">\n
<!--\n <!--\n
Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.\n Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.\n
...@@ -116,6 +121,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -116,6 +121,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<tal:block metal:define-macro="form_layout">\n <tal:block metal:define-macro="form_layout">\n
<div class="Main" tal:define="field_errors python: request.get(\'field_errors\',{});\n <div class="Main" tal:define="field_errors python: request.get(\'field_errors\',{});\n
dummy python: request.set(\'here\',here)">\n dummy python: request.set(\'here\',here)">\n
<tal:block metal:use-macro="here/form_developper_buttons/macros/form"/>\n
<tal:block tal:define="groups python: form.get_groups();\n <tal:block tal:define="groups python: form.get_groups();\n
rows python:[];">\n rows python:[];">\n
<tal:block tal:repeat="group groups">\n <tal:block tal:repeat="group groups">\n
...@@ -148,6 +154,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -148,6 +154,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<tal:block tal:condition="python: \'bottom\' in groups[row[0]].lower()">\n <tal:block tal:condition="python: \'bottom\' in groups[row[0]].lower()">\n
<tal:block tal:repeat="cell row">\n <tal:block tal:repeat="cell row">\n
<tal:block tal:repeat="field python:form.get_fields_in_group(groups[cell])">\n <tal:block tal:repeat="field python:form.get_fields_in_group(groups[cell])">\n
<tal:block metal:use-macro="here/form_developper_buttons/macros/field"/>\n
<tal:block tal:define="value python:request.get(field.id, None)"\n <tal:block tal:define="value python:request.get(field.id, None)"\n
tal:replace="structure python:field.render(value, request)" />\n tal:replace="structure python:field.render(value, request)" />\n
</tal:block>\n </tal:block>\n
......
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