Commit a30c6d53 authored by Fabien Morin's avatar Fabien Morin

No source code modification. Just improve indentation because the file was near inreadable.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19341 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 085a8dee
...@@ -100,10 +100,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -100,10 +100,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
tal:attributes="class string:my_span">\n tal:attributes="class string:my_span">\n
\n \n
\n \n
<div\n <div class="my_page_class"\n
class="my_page_class"\n tal:attributes="class string:page_${pagenum}">\n
tal:attributes="class string:page_${pagenum}"\n <img src="test_object_page_0.png"\n
><img src="test_object_page_0.png"\n
alt="background"\n alt="background"\n
class="page_0_background"\n class="page_0_background"\n
tal:attributes="src string:${object_name}_background_${pagenum};\n tal:attributes="src string:${object_name}_background_${pagenum};\n
...@@ -115,17 +114,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -115,17 +114,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
</span>\n </span>\n
<span tal:repeat="field python:form.get_fields_in_group(groups[pagenum])"\n <span tal:repeat="field python:form.get_fields_in_group(groups[pagenum])"\n
class="my_span"\n class="my_span"\n
tal:omit-tag=""\n tal:omit-tag=""><!--get a field-->\n
><!--get a field-->\n
<span tal:condition="python:field.meta_type != \'HiddenStringField\'"\n <span tal:condition="python:field.meta_type != \'HiddenStringField\'"\n
tal:define="name python:str(field.id);\n tal:define="name python:str(field.id);\n
value python:request.get(field.id,None);\n value python:request.get(field.id,None);\n
class_base string:${name}"\n class_base string:${name}"\n
class="my_span"\n class="my_span"\n
tal:omit-tag=""\n tal:omit-tag="">\n
><div tal:omit-tag=""\n <div tal:omit-tag=""\n
tal:define="struct python:field.render(value,request)"\n tal:define="struct python:field.render(value,request)">\n
><span tal:omit-tag=""\n <span tal:omit-tag=""\n
tal:define="struct python:struct.replace(\'&nbsp;;\',\'\');\n tal:define="struct python:struct.replace(\'&nbsp;;\',\'\');\n
struct_input_div python:struct.split(\'<input\');\n struct_input_div python:struct.split(\'<input\');\n
struct_input_len python:len(struct_input_div);\n struct_input_len python:len(struct_input_div);\n
...@@ -135,8 +133,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -135,8 +133,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
struct_selec_len python:len(struct_selec_div);\n struct_selec_len python:len(struct_selec_div);\n
struct_selec_range python:range(struct_selec_len);\n struct_selec_range python:range(struct_selec_len);\n
struct_selec_test python:int(struct_selec_len) == 1;\n struct_selec_test python:int(struct_selec_len) == 1;\n
struct_test python:struct_selec_test and struct_input_test"\n struct_test python:struct_selec_test and struct_input_test">\n
><span tal:replace="nothing">\n <span tal:replace="nothing">\n
- rendering final output string through \'field.render\'.\n - rendering final output string through \'field.render\'.\n
- replacing all \'&nbsp\' with \'\' to prevent error in rendering\n - replacing all \'&nbsp\' with \'\' to prevent error in rendering\n
- making two tests : first one (struct_input_test) is used to test if\n - making two tests : first one (struct_input_test) is used to test if\n
...@@ -147,32 +145,29 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -147,32 +145,29 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
Second one takes care of the RelationStrinField item when it is filled\n Second one takes care of the RelationStrinField item when it is filled\n
as it is composed of 1 input field + 1 select field\n as it is composed of 1 input field + 1 select field\n
</span>\n </span>\n
<span tal:omit-tag=""\n <span tal:omit-tag="" \n
tal:condition="struct_test"\n tal:condition="struct_test"><!-- begining single field processing -->\n
><!-- begining single field processing --><span tal:replace="nothing">\n <span tal:replace="nothing">\n
this bloc has been implemented to take care of the textarea\n this bloc has been implemented to take care of the textarea\n
and single inputfield renderings. this just process the\n and single inputfield renderings. this just process the\n
output rendering as a single field.\n output rendering as a single field.\n
UPDATE : with xhtml_style, this \n UPDATE : with xhtml_style, this \n
</span>\n </span>\n
<div tal:condition="python:(not field_errors.has_key(field.id))"\n <div tal:condition="python:(not field_errors.has_key(field.id))"><!-- field has no error -->\n
><!-- field has no error -->\n
<span tal:replace="structure struct"\n <span tal:replace="structure struct"\n
tal:attributes="class string:${name}_class;\n tal:attributes="class string:${name}_class;\n
title field/title"\n title field/title"/>\n
/></div>\n </div>\n
<div tal:condition="python: field_errors.has_key(field.id)"\n <div tal:condition="python: field_errors.has_key(field.id)"><!-- field has errors-->\n
><!-- field has errors-->\n
<span tal:replace="structure struct"\n <span tal:replace="structure struct"\n
i18n:attributes="title"\n i18n:attributes="title"\n
tal:attributes="class string:${name}_class_error;\n tal:attributes="class string:${name}_class_error;\n
title string:${field/title}"\n title string:${field/title}"/>\n
/></div>\n </div>\n
<!-- end single field processing-->\n <!-- end single field processing-->\n
</span>\n </span>\n
<span tal:omit-tag=""\n <span tal:omit-tag=""\n
tal:condition="not:struct_input_test"\n tal:condition="not:struct_input_test"><!-- begining multi-input processing -->\n
><!-- begining multi-input processing -->\n
<span tal:replace="nothing">\n <span tal:replace="nothing">\n
this bloc is designed to process standard multi-input fields such as\n this bloc is designed to process standard multi-input fields such as\n
DateTimeFields and RelationStringFields. (and checkbox field in\n DateTimeFields and RelationStringFields. (and checkbox field in\n
...@@ -184,8 +179,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -184,8 +179,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<tal:block tal:condition="python: \'hidden\' not in struct_input_div[1]">\n <tal:block tal:condition="python: \'hidden\' not in struct_input_div[1]">\n
<span tal:define="struct_range python:range(struct_input_len)"\n <span tal:define="struct_range python:range(struct_input_len)"\n
tal:repeat="struct_ind python:struct_range[1:]">\n tal:repeat="struct_ind python:struct_range[1:]">\n
<div tal:condition="python:(not field_errors.has_key(field.id))"\n <div tal:condition="python:(not field_errors.has_key(field.id))"><!-- field has no error 1-->\n
><!-- field has no error 1-->\n
<span tal:define="struct_content python:struct_input_div[struct_ind];\n <span tal:define="struct_content python:struct_input_div[struct_ind];\n
struct_final python:\'%s %s\' %\n struct_final python:\'%s %s\' %\n
(\'<input \', struct_content);\n (\'<input \', struct_content);\n
...@@ -193,11 +187,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -193,11 +187,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
(class_base,\'_class_\', struct_ind)"\n (class_base,\'_class_\', struct_ind)"\n
tal:replace="structure struct_final"\n tal:replace="structure struct_final"\n
tal:attributes="class class_final;\n tal:attributes="class class_final;\n
title field/title"\n title field/title"/>\n
/>\n
</div>\n </div>\n
<div tal:condition="python:field_errors.has_key(field.id)"\n <div tal:condition="python:field_errors.has_key(field.id)"><!-- field has errors 1-->\n
><!-- field has errors 1-->\n
<span tal:define="struct_content python:struct_input_div[struct_ind];\n <span tal:define="struct_content python:struct_input_div[struct_ind];\n
struct_final python:\'%s %s\' %\n struct_final python:\'%s %s\' %\n
(\'<input \', struct_content);\n (\'<input \', struct_content);\n
...@@ -206,16 +198,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -206,16 +198,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
tal:replace="structure struct_final"\n tal:replace="structure struct_final"\n
i18n:attributes="title"\n i18n:attributes="title"\n
tal:attributes="class class_final;\n tal:attributes="class class_final;\n
title field/title"\n title field/title"/>\n
/></div>\n </div>\n
</span>\n </span>\n
</tal:block>\n </tal:block>\n
<tal:block tal:condition="python: \'hidden\' in struct_input_div[1]">\n <tal:block tal:condition="python: \'hidden\' in struct_input_div[1]">\n
<!-- processing CheckBoxField in xhtml_style -->\n <!-- processing CheckBoxField in xhtml_style -->\n
<span tal:define="struct_range python:range(struct_input_len)"\n <span tal:define="struct_range python:range(struct_input_len)"\n
tal:repeat="struct_ind python:struct_range[1:]">\n tal:repeat="struct_ind python:struct_range[1:]">\n
<div tal:condition="python:(not field_errors.has_key(field.id))"\n <div tal:condition="python:(not field_errors.has_key(field.id))">\n
><!-- field has no error 2-->\n <!-- field has no error 2-->\n
<span tal:define="struct_content python:struct_input_div[struct_ind];\n <span tal:define="struct_content python:struct_input_div[struct_ind];\n
struct_final python:\'%s %s\' %\n struct_final python:\'%s %s\' %\n
(\'<input \', struct_content);\n (\'<input \', struct_content);\n
...@@ -223,11 +215,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -223,11 +215,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
(class_base,\'_class\')"\n (class_base,\'_class\')"\n
tal:replace="structure struct_final"\n tal:replace="structure struct_final"\n
tal:attributes="class class_final;\n tal:attributes="class class_final;\n
title field/title"\n title field/title"/>\n
/>\n
</div>\n </div>\n
<div tal:condition="python:field_errors.has_key(field.id)"\n <div tal:condition="python:field_errors.has_key(field.id)">\n
><!-- field has errors 2-->\n <!-- field has errors 2-->\n
<span tal:define="struct_content python:struct_input_div[struct_ind];\n <span tal:define="struct_content python:struct_input_div[struct_ind];\n
struct_final python:\'%s %s\' %\n struct_final python:\'%s %s\' %\n
(\'<input \', struct_content);\n (\'<input \', struct_content);\n
...@@ -235,14 +226,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -235,14 +226,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
(class_base,\'_class_error\')"\n (class_base,\'_class_error\')"\n
tal:replace="structure struct_final"\n tal:replace="structure struct_final"\n
tal:attributes="class class_final;\n tal:attributes="class class_final;\n
title field/title"\n title field/title"/>\n
/></div>\n </div>\n
</span>\n </span>\n
</tal:block>\n </tal:block>\n
</span>\n </span>\n
<span tal:omit-tag=""\n <span tal:omit-tag=""\n
tal:condition="not:struct_selec_test"\n tal:condition="not:struct_selec_test">\n
><!-- start select-field rendering -->\n <!-- start select-field rendering -->\n
<span tal:replace="nothing">\n <span tal:replace="nothing">\n
this bloc is here to process special multi-fields rendering based on\n this bloc is here to process special multi-fields rendering based on\n
input + select (for RelationStringFields when user can select element\n input + select (for RelationStringFields when user can select element\n
...@@ -255,28 +246,27 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -255,28 +246,27 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
(\'<select\',struct_content1);\n (\'<select\',struct_content1);\n
struct_selec_div python:[\'\',struct_content0, struct_content1];\n struct_selec_div python:[\'\',struct_content0, struct_content1];\n
struct_range python:range(struct_selec_len +1)"\n struct_range python:range(struct_selec_len +1)"\n
tal:repeat="struct_ind python:struct_range[1:]"\n tal:repeat="struct_ind python:struct_range[1:]">\n
><div\n <div><!-- field has no errors-->\n
><!-- field has no errors-->\n
<span tal:condition="python:(not field_errors.has_key(field.id))"\n <span tal:condition="python:(not field_errors.has_key(field.id))"\n
tal:define="class_final python:\'%s%s%s\' %\n tal:define="class_final python:\'%s%s%s\' %\n
(class_base,\'_class_\', struct_ind)"\n (class_base,\'_class_\', struct_ind)"\n
tal:replace="structure python:struct_selec_div[struct_ind]"\n tal:replace="structure python:struct_selec_div[struct_ind]"\n
tal:attributes="class class_final;\n tal:attributes="class class_final;\n
title field/title"\n title field/title"/>\n
/><!-- field has no errors -->\n <!-- field has no errors -->\n
<span tal:condition="python:field_errors.has_key(field.id)"\n <span tal:condition="python:field_errors.has_key(field.id)"\n
tal:define="class_final python:\'%s%s%s%s\' %\n tal:define="class_final python:\'%s%s%s%s\' %\n
(class_base,\'_class_\', struct_ind, \'_error\')"\n (class_base,\'_class_\', struct_ind, \'_error\')"\n
tal:replace="structure python:struct_selec_div[struct_ind]"\n tal:replace="structure python:struct_selec_div[struct_ind]"\n
tal:attributes="class class_final;\n tal:attributes="class class_final;\n
title field/title"\n title field/title"/>\n
/></div>\n </div>\n
</span>\n </span>\n
</span>\n </span>\n
<span tal:omit-tag=""\n <span tal:omit-tag=""\n
tal:condition="python:field_errors.has_key(field.id)"\n tal:condition="python:field_errors.has_key(field.id)">\n
><!-- rendering error text -->\n <!-- rendering error text -->\n
<span tal:replace="nothing">\n <span tal:replace="nothing">\n
once all the field have been rendered, just need to add error text\n once all the field have been rendered, just need to add error text\n
if necessary on the rigth side of the page.\n if necessary on the rigth side of the page.\n
...@@ -287,13 +277,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -287,13 +277,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
i18n:translate=""\n i18n:translate=""\n
i18n:domain="ui"\n i18n:domain="ui"\n
tal:attributes="class class_final;\n tal:attributes="class class_final;\n
title string:${field/title}"\n title string:${field/title}">\n
></div>\n </div>\n
</span>\n </span>\n
</span>\n </span>\n
\n
\n
\n
</div>\n </div>\n
</span>\n </span>\n
</span>\n </span>\n
\n
<br/>\n <br/>\n
<br/>\n <br/>\n
</div>\n </div>\n
......
15 16
\ No newline at end of file \ 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