Commit b5eb9d7c authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_corporate_identity: margin for web page and add missing parameter for update dialog

parent dc20cdcd
...@@ -34,6 +34,7 @@ Generates the complete book (only called in HTML version) ...@@ -34,6 +34,7 @@ Generates the complete book (only called in HTML version)
book_short_date python: options.get('book_short_date'); book_short_date python: options.get('book_short_date');
book_full_reference python: options.get('book_full_reference'); book_full_reference python: options.get('book_full_reference');
book_source_organisation_title python: options.get('book_source_organisation_title'); book_source_organisation_title python: options.get('book_source_organisation_title');
margin_15mm python: options.get('margin_15mm');
book_table_of_content python: options.get('book_table_of_content');"> book_table_of_content python: options.get('book_table_of_content');">
<!DOCTYPE html> <!DOCTYPE html>
<html tal:attributes="class python: ''.join(['ci-', book_theme, ' ci-', book_language])"> <html tal:attributes="class python: ''.join(['ci-', book_theme, ' ci-', book_language])">
...@@ -65,6 +66,31 @@ Generates the complete book (only called in HTML version) ...@@ -65,6 +66,31 @@ Generates the complete book (only called in HTML version)
} }
</script> </script>
</head> </head>
<tal:block tal:condition="python: margin_15mm">
<body class="ci-book margin-15mm" onload="setPlaceholdersWithUrlParameters()">
<tal:block tal:condition="python: book_embed != 1">
<tal:block metal:use-macro="context/WebPage_createBookHeader/macros/book_header" />
<tal:block tal:condition="python: book_raw_report != True">
<tal:block metal:use-macro="context/WebPage_createBookCover/macros/book_cover" />
</tal:block>
<tal:block tal:condition="python: book_include_history is not None">
<tal:block metal:use-macro="context/WebPage_createBookTableOfHistory/macros/book_history" />
</tal:block>
<tal:block tal:replace="structure book_table_of_content"></tal:block>
</tal:block>
<tal:block metal:use-macro="context/WebPage_createBookContent/macros/book_content" />
<tal:block tal:condition="python: book_embed != 1">
<tal:block metal:use-macro="context/WebPage_createBookFooter/macros/book_footer" />
</tal:block>
<script type="text/javascript" src="template_js/highlight.js"></script>
<tal:block tal:condition="python: len(book_report_js_list) > 0">
<tal:block tal:repeat="js_src book_report_js_list">
<script type="text/javascript" tal:attributes="src js_src"></script>
</tal:block>
</tal:block>
</body>
</tal:block>
<tal:block tal:condition="python: not margin_15mm">
<body class="ci-book" onload="setPlaceholdersWithUrlParameters()"> <body class="ci-book" onload="setPlaceholdersWithUrlParameters()">
<tal:block tal:condition="python: book_embed != 1"> <tal:block tal:condition="python: book_embed != 1">
<tal:block metal:use-macro="context/WebPage_createBookHeader/macros/book_header" /> <tal:block metal:use-macro="context/WebPage_createBookHeader/macros/book_header" />
...@@ -87,5 +113,6 @@ Generates the complete book (only called in HTML version) ...@@ -87,5 +113,6 @@ Generates the complete book (only called in HTML version)
</tal:block> </tal:block>
</tal:block> </tal:block>
</body> </body>
</tal:block>
</html> </html>
</tal:block> </tal:block>
\ No newline at end of file
...@@ -62,6 +62,7 @@ if dialog_id is not None: ...@@ -62,6 +62,7 @@ if dialog_id is not None:
include_reference_table=include_reference_table, include_reference_table=include_reference_table,
include_linked_content=include_linked_content, include_linked_content=include_linked_content,
include_report_content=include_report_content, include_report_content=include_report_content,
margin15mm = margin15mm,
#**kw #**kw
) )
) )
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>dialog_id=None, cancel_url=None, portal_skin=None, include_content_table=None, include_history_table= None, include_reference_table=None, include_linked_content=None, include_report_content=None, format=None,display_svg=None,document_save=None, document_download=None, transformation=None,override_document_description=None,override_document_short_title=None,override_document_title=None,override_document_version=None,override_logo_reference=None,override_source_organisation_title=None,override_source_person_title=None, override_document_reference=None, *args,**kw</string> </value> <value> <string>dialog_id=None, cancel_url=None, portal_skin=None, include_content_table=None, include_history_table= None, include_reference_table=None, include_linked_content=None, include_report_content=None, margin15mm=None, format=None,display_svg=None,document_save=None, document_download=None, transformation=None,override_document_description=None,override_document_short_title=None,override_document_title=None,override_document_version=None,override_logo_reference=None,override_source_organisation_title=None,override_source_person_title=None, override_document_reference=None, *args,**kw</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
...@@ -255,6 +255,7 @@ if book_format == "html" or book_format == "mhtml": ...@@ -255,6 +255,7 @@ if book_format == "html" or book_format == "mhtml":
book_full_reference=book_full_reference, book_full_reference=book_full_reference,
book_source_organisation_title=book_source.get("organisation_title") or blank, book_source_organisation_title=book_source.get("organisation_title") or blank,
book_content=book_content, book_content=book_content,
margin_15mm = margin_15mm,
book_table_of_content=book_table_of_content book_table_of_content=book_table_of_content
) )
if book_format == "html": if book_format == "html":
......
.margin-15mm{
margin-left:15mm;
margin-right:15mm;
}
/* === font-size === */ /* === font-size === */
.ci-book h1 + p::first-letter { .ci-book h1 + p::first-letter {
font-size: 21.1667mm; /* 60pt; */ /* 80px; */ font-size: 21.1667mm; /* 60pt; */ /* 80px; */
...@@ -102,6 +107,10 @@ ...@@ -102,6 +107,10 @@
font-style: normal; font-style: normal;
font-size: 6.35mm; /* 18pt; */ /* 24px; */ font-size: 6.35mm; /* 18pt; */ /* 24px; */
} }
.ci-book p em,
.ci-book p i {
font-style: italic;
}
/* === color === */ /* === color === */
/* .ci-book a:not([href*="#"]), */ /* .ci-book a:not([href*="#"]), */
...@@ -520,7 +529,8 @@ NOTE: logos will disappear in wkhtmltopdf if they go beyond the available space ...@@ -520,7 +529,8 @@ NOTE: logos will disappear in wkhtmltopdf if they go beyond the available space
list-style: none; list-style: none;
list-style-position: inside; list-style-position: inside;
} }
.ci-book ul li { .ci-book ul li,
.ci-book ol li {
padding-left: 16px; padding-left: 16px;
text-indent: -24px; text-indent: -24px;
} }
......
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