Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Thompson
erp5
Commits
b5eb9d7c
Commit
b5eb9d7c
authored
Sep 19, 2019
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: margin for web page and add missing parameter for update dialog
parent
dc20cdcd
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
73 additions
and
34 deletions
+73
-34
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_createBook.zpt
...rtal_skins/erp5_corporate_identity/WebPage_createBook.zpt
+47
-20
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_updateBookDialog.py
...skins/erp5_corporate_identity/WebPage_updateBookDialog.py
+1
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_updateBookDialog.xml
...kins/erp5_corporate_identity/WebPage_updateBookDialog.xml
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsBook.py
...ortal_skins/erp5_corporate_identity/WebPage_viewAsBook.py
+1
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/template_css/book.css.css
...l_skins/erp5_corporate_identity/template_css/book.css.css
+23
-13
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_createBook.zpt
View file @
b5eb9d7c
...
@@ -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
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_updateBookDialog.py
View file @
b5eb9d7c
...
@@ -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
)
)
)
)
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_updateBookDialog.xml
View file @
b5eb9d7c
...
@@ -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>
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsBook.py
View file @
b5eb9d7c
...
@@ -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"
:
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/template_css/book.css.css
View file @
b5eb9d7c
.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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment