Commit 5ba46d1c authored by Kevin Deldycke's avatar Kevin Deldycke

Include support for editable_mode parameter in main_template.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9280 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a97a8e41
......@@ -44,6 +44,12 @@
</object>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
......@@ -73,19 +79,31 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
\n
IDEAS:\n
- Add callbacks to ERP5Form object (selection ?) to gather needed fields -> put them in http_parameter_list.\n
\n
MISSING:\n
(jp) - Support for layout through page template (without form)\n
(jp) - hidden parameters (where should they be defined ?) - see layout form\n
-->\n
</tal:block>\n
<tal:block metal:define-macro="master">\n
<tal:block tal:define="ignore_layout request/ignore_layout | nothing;\n
layout_form_id here/getApplicableLayout | nothing;\n
layout_form python: layout_form_id and getattr(here, layout_form_id, None) or None;\n
page_template python:(layout_form and not(ignore_layout)) and getattr(layout_form, \'pt\', None) or \'template_erp5_xhtml_style\';">\n
<tal:block tal:define="ignore_layout request/ignore_layout | nothing;\n
layout_form_id here/getApplicableLayout | nothing;\n
editable_mode python: layout_form_id and request.get(\'editable_mode\', ignore_layout) or 1;\n
dummy python: request.set(\'editable_mode\', editable_mode);\n
layout_form python: layout_form_id and getattr(here, layout_form_id, None) or None;\n
page_template python: (layout_form and not(ignore_layout)) and getattr(layout_form, \'pt\', None) or \'template_erp5_xhtml_style\';">\n
\n
<!--\n
# editable_mode python: layout_form_id and request.get(\'editable_mode\', ignore_layout) or 0;\n
# dummy python: request.set(\'editable_mode\', editable_mode);-->\n
\n
\n
<tal:block metal:use-macro="python: getattr(here, page_template).macros[\'master\']">\n
<tal:block metal:fill-slot="context_bar">\n
<tal:block metal:define-slot="context_bar" />\n
<tal:block metal:define-slot="context_bar"/>\n
</tal:block>\n
<tal:block metal:fill-slot="main">\n
<tal:block metal:define-slot="main" />\n
<tal:block metal:define-slot="main"/>\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
......
2006-08-21 Kevin
* Include support for editable_mode parameter in main_template.
2006-08-21 Chris
* Made form_render code a lot lighter with same final result using a loop
......
This style is a rewrite of erp5_html_style more CSS and semantic html oriented.
Handles page parameters dynamically.
\ No newline at end of file
85
\ No newline at end of file
88
\ No newline at end of file
1.2
\ No newline at end of file
1.2.1
\ No newline at end of file
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