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
Thomas Gambier
erp5
Commits
368ed35d
Commit
368ed35d
authored
Aug 13, 2020
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_corporate_identity: add parameter to define letter recipient position
parent
f5c8c036
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
153 additions
and
17 deletions
+153
-17
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_viewAsLetter.py
...portal_skins/erp5_corporate_identity/Base_viewAsLetter.py
+3
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Letter_createLetter.zpt
...tal_skins/erp5_corporate_identity/Letter_createLetter.zpt
+1
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Letter_createLetterContent.zpt
...ns/erp5_corporate_identity/Letter_createLetterContent.zpt
+25
-11
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Letter_viewAsLetter.py
...rtal_skins/erp5_corporate_identity/Letter_viewAsLetter.py
+1
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Letter_viewAsLetter.xml
...tal_skins/erp5_corporate_identity/Letter_viewAsLetter.xml
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_exportAsLetter.py
...l_skins/erp5_corporate_identity/WebPage_exportAsLetter.py
+1
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_exportAsLetter.xml
..._skins/erp5_corporate_identity/WebPage_exportAsLetter.xml
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_updateLetterDialog.py
...ins/erp5_corporate_identity/WebPage_updateLetterDialog.py
+1
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_updateLetterDialog.xml
...ns/erp5_corporate_identity/WebPage_updateLetterDialog.xml
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsLetter.py
...tal_skins/erp5_corporate_identity/WebPage_viewAsLetter.py
+1
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsLetter.xml
...al_skins/erp5_corporate_identity/WebPage_viewAsLetter.xml
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewExportAsLetterDialog.xml
...5_corporate_identity/WebPage_viewExportAsLetterDialog.xml
+1
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewExportAsLetterDialog/content.xml
...ate_identity/WebPage_viewExportAsLetterDialog/content.xml
+1
-1
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewExportAsLetterDialog/destination_position_in_letter.xml
...ewExportAsLetterDialog/destination_position_in_letter.xml
+110
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/template_css/letter.css.css
...skins/erp5_corporate_identity/template_css/letter.css.css
+1
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/template_css/letter.pdf.css.css
...s/erp5_corporate_identity/template_css/letter.pdf.css.css
+1
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_letter/WebPage_viewAsWeb.py
...skins/erp5_corporate_identity_letter/WebPage_viewAsWeb.py
+1
-0
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_letter/WebPage_viewAsWeb.xml
...kins/erp5_corporate_identity_letter/WebPage_viewAsWeb.xml
+1
-1
No files found.
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Base_viewAsLetter.py
View file @
368ed35d
...
@@ -48,6 +48,7 @@ override_destination_organisation_title = kw.get("override_destination_organisat
...
@@ -48,6 +48,7 @@ override_destination_organisation_title = kw.get("override_destination_organisat
override_date
=
kw
.
get
(
"override_date"
)
override_date
=
kw
.
get
(
"override_date"
)
override_batch_mode
=
kw
.
get
(
'batch_mode'
,
None
)
override_batch_mode
=
kw
.
get
(
'batch_mode'
,
None
)
destination_position_in_letter
=
kw
.
get
(
'destination_position_in_letter'
,
'right'
)
# -------------------------- Document Parameters ------------------------------
# -------------------------- Document Parameters ------------------------------
letter_portal_type
=
letter
.
getPortalType
()
letter_portal_type
=
letter
.
getPortalType
()
letter_relative_url
=
letter
.
getRelativeUrl
()
letter_relative_url
=
letter
.
getRelativeUrl
()
...
@@ -138,6 +139,7 @@ if letter_format == "html":
...
@@ -138,6 +139,7 @@ if letter_format == "html":
letter_destination_postal_code
=
letter_destination
.
get
(
"postal_code"
,
blank
),
letter_destination_postal_code
=
letter_destination
.
get
(
"postal_code"
,
blank
),
letter_destination_city
=
letter_destination
.
get
(
"city"
,
blank
),
letter_destination_city
=
letter_destination
.
get
(
"city"
,
blank
),
letter_destination_country
=
letter_destination
.
get
(
"country"
,
blank
),
letter_destination_country
=
letter_destination
.
get
(
"country"
,
blank
),
letter_destination_position
=
destination_position_in_letter
,
letter_source_company
=
letter_source
.
get
(
"corporate_name"
,
letter_source
.
get
(
"organisation_title"
,
blank
)),
letter_source_company
=
letter_source
.
get
(
"corporate_name"
,
letter_source
.
get
(
"organisation_title"
,
blank
)),
letter_source_company_corporate_name
=
letter_source
.
get
(
"corporate_name"
,
blank
),
letter_source_company_corporate_name
=
letter_source
.
get
(
"corporate_name"
,
blank
),
letter_source_company_capital
=
letter_source
.
get
(
"social_capital"
,
blank
),
letter_source_company_capital
=
letter_source
.
get
(
"social_capital"
,
blank
),
...
@@ -207,6 +209,7 @@ if letter_format == "pdf":
...
@@ -207,6 +209,7 @@ if letter_format == "pdf":
letter_destination_postal_code
=
letter_destination
.
get
(
"postal_code"
,
blank
),
letter_destination_postal_code
=
letter_destination
.
get
(
"postal_code"
,
blank
),
letter_destination_city
=
letter_destination
.
get
(
"city"
,
blank
),
letter_destination_city
=
letter_destination
.
get
(
"city"
,
blank
),
letter_destination_country
=
letter_destination
.
get
(
"country"
,
blank
),
letter_destination_country
=
letter_destination
.
get
(
"country"
,
blank
),
letter_destination_position
=
destination_position_in_letter
,
letter_source_company
=
letter_source
.
get
(
"corporate_name"
,
letter_source
.
get
(
"organisation_title"
,
blank
)),
letter_source_company
=
letter_source
.
get
(
"corporate_name"
,
letter_source
.
get
(
"organisation_title"
,
blank
)),
letter_source_address
=
letter_source
.
get
(
"address"
,
blank
),
letter_source_address
=
letter_source
.
get
(
"address"
,
blank
),
letter_source_postal_code
=
letter_source
.
get
(
"postal_code"
,
blank
),
letter_source_postal_code
=
letter_source
.
get
(
"postal_code"
,
blank
),
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Letter_createLetter.zpt
View file @
368ed35d
...
@@ -34,6 +34,7 @@ Generates the complete letter
...
@@ -34,6 +34,7 @@ Generates the complete letter
letter_destination_postal_code python: options.get('letter_destination_postal_code');
letter_destination_postal_code python: options.get('letter_destination_postal_code');
letter_destination_city python: options.get('letter_destination_city');
letter_destination_city python: options.get('letter_destination_city');
letter_destination_country python: options.get('letter_destination_country');
letter_destination_country python: options.get('letter_destination_country');
letter_destination_position python: options.get('letter_destination_position');
letter_content python: options.get('letter_content');
letter_content python: options.get('letter_content');
letter_display_source_address python: options.get('letter_display_source_address');
letter_display_source_address python: options.get('letter_display_source_address');
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Letter_createLetterContent.zpt
View file @
368ed35d
...
@@ -28,6 +28,7 @@ Generates the letter Content
...
@@ -28,6 +28,7 @@ Generates the letter Content
letter_destination_city python: options.get('letter_destination_city');
letter_destination_city python: options.get('letter_destination_city');
letter_destination_country python: options.get('letter_destination_country');
letter_destination_country python: options.get('letter_destination_country');
letter_display_source_address python: options.get('letter_display_source_address');
letter_display_source_address python: options.get('letter_display_source_address');
letter_destination_position python: options.get('letter_destination_position');
letter_content python: options.get('letter_content');"
>
letter_content python: options.get('letter_content');"
>
<!DOCTYPE html>
<!DOCTYPE html>
<html
tal:attributes=
"class python: ''.join(['ci-', letter_theme, ' ci-', letter_language])"
>
<html
tal:attributes=
"class python: ''.join(['ci-', letter_theme, ' ci-', letter_language])"
>
...
@@ -47,6 +48,20 @@ Generates the letter Content
...
@@ -47,6 +48,20 @@ Generates the letter Content
</html>
</html>
</tal:block>
</tal:block>
<tal:block
tal:condition=
"python: False"
>
<tal:block
metal:define-macro=
"letter_destination"
>
<td
class=
"ci-letter-destination"
>
<span
tal:content=
"python: letter_destination_company or ' '"
></span>
<span
tal:content=
"python: letter_destination_person or ' '"
></span>
<tal:block
tal:repeat=
"address python: letter_destination_address.split('\n')"
>
<span
tal:content=
"python: address"
></span>
</tal:block>
<span
tal:content=
"python: ''.join([letter_destination_postal_code, ' ', letter_destination_city])"
></span>
<span
tal:content=
"python: letter_destination_country or ' '"
></span>
</td>
</tal:block>
</tal:block>
<tal:block
tal:condition=
"python: False"
>
<tal:block
tal:condition=
"python: False"
>
<tal:block
metal:define-macro=
"letter_content"
>
<tal:block
metal:define-macro=
"letter_content"
>
<div
class=
"ci-letter-head ci-letter-head-right"
>
<div
class=
"ci-letter-head ci-letter-head-right"
>
...
@@ -73,17 +88,16 @@ Generates the letter Content
...
@@ -73,17 +88,16 @@ Generates the letter Content
<td></td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<tal:block
tal:condition=
"python: letter_destination_position== 'right'"
>
<td></td>
<tal:block
metal:use-macro=
"context/Letter_createLetterContent/macros/letter_destination"
/>
<td></td>
<td></td>
<td
class=
"ci-letter-destination"
>
<span
tal:content=
"python: letter_destination_company or ' '"
></span>
<span
tal:content=
"python: letter_destination_person or ' '"
></span>
<tal:block
tal:repeat=
"address python: letter_destination_address.split('\n')"
>
<span
tal:content=
"python: address"
></span>
</tal:block>
</tal:block>
<span
tal:content=
"python: ''.join([letter_destination_postal_code, ' ', letter_destination_city])"
></span
>
<tal:block
tal:condition=
"python: letter_destination_position=='left'"
>
<span
tal:content=
"python: letter_destination_country or ' '"
></span
>
<tal:block
metal:use-macro=
"context/Letter_createLetterContent/macros/letter_destination"
/
>
</td>
<td>
</td>
<td></td>
<td></td>
</tal:block>
</tr>
</tr>
</tal:block>
</tal:block>
</tbody>
</tbody>
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Letter_viewAsLetter.py
View file @
368ed35d
...
@@ -37,5 +37,6 @@ return context.Base_viewAsLetter(
...
@@ -37,5 +37,6 @@ return context.Base_viewAsLetter(
document_save
=
document_save
,
document_save
=
document_save
,
document_download
=
document_download
,
document_download
=
document_download
,
batch_mode
=
batch_mode
,
batch_mode
=
batch_mode
,
destination_position_in_letter
=
destination_position_in_letter
,
**
kw
**
kw
)
)
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/Letter_viewAsLetter.xml
View file @
368ed35d
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
format=None, display_source_address=None, display_head=None, display_svg=None, batch_mode=False, document_download=None, document_save=None, override_source_organisation_title=None,override_source_person_title=None,override_destination_organisation_title=None,override_destination_person_title=None,override_date=None,**kw
</string>
</value>
<value>
<string>
format=None, display_source_address=None, display_head=None, display_svg=None, batch_mode=False, document_download=None, document_save=None, override_source_organisation_title=None,override_source_person_title=None,override_destination_organisation_title=None,override_destination_person_title=None,override_date=None,
destination_position_in_letter=\'right\',
**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_exportAsLetter.py
View file @
368ed35d
...
@@ -38,5 +38,6 @@ return context.WebPage_viewAsLetter(
...
@@ -38,5 +38,6 @@ return context.WebPage_viewAsLetter(
document_save
=
document_save
,
document_save
=
document_save
,
document_download
=
document_download
,
document_download
=
document_download
,
batch_mode
=
batch_mode
,
batch_mode
=
batch_mode
,
destination_position_in_letter
=
destination_position_in_letter
,
**
kw
**
kw
)
)
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_exportAsLetter.xml
View file @
368ed35d
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
format="html", display_source_address=None, display_head=1, display_svg=None, batch_mode=False, document_download=None, document_save=None, override_source_organisation_title=None,override_source_person_title=None,override_destination_organisation_title=None,override_destination_person_title=None,override_date=None,**kw
</string>
</value>
<value>
<string>
format="html", display_source_address=None, display_head=1, display_svg=None, batch_mode=False, document_download=None, document_save=None, override_source_organisation_title=None,override_source_person_title=None,override_destination_organisation_title=None,override_destination_person_title=None,override_date=None,
destination_position_in_letter = \'right\',
**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_updateLetterDialog.py
View file @
368ed35d
...
@@ -46,6 +46,7 @@ if dialog_id is not None:
...
@@ -46,6 +46,7 @@ if dialog_id is not None:
display_source_address
=
display_source_address
,
display_source_address
=
display_source_address
,
document_download
=
document_download
,
document_download
=
document_download
,
document_save
=
document_save
,
document_save
=
document_save
,
destination_position_in_letter
=
destination_position_in_letter
,
**
kw
**
kw
)
)
)
)
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_updateLetterDialog.xml
View file @
368ed35d
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
override_source_organisation_title=None, display_source_address=None, display_svg=None,document_download=None, document_save=None, dialog_id=None, cancel_url=None, portal_skin=None,display_head=None, format=None, override_date=None, override_destination_person_title=None, override_source_person_title=None,override_destination_organisation_title=None, *args,**kw
</string>
</value>
<value>
<string>
override_source_organisation_title=None, display_source_address=None, display_svg=None,document_download=None, document_save=None, dialog_id=None, cancel_url=None, portal_skin=None,display_head=None, format=None, override_date=None, override_destination_person_title=None, override_source_person_title=None,override_destination_organisation_title=None,
destination_position_in_letter = \'right\',
*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_viewAsLetter.py
View file @
368ed35d
...
@@ -37,5 +37,6 @@ return context.Base_viewAsLetter(
...
@@ -37,5 +37,6 @@ return context.Base_viewAsLetter(
document_save
=
document_save
,
document_save
=
document_save
,
document_download
=
document_download
,
document_download
=
document_download
,
batch_mode
=
batch_mode
,
batch_mode
=
batch_mode
,
destination_position_in_letter
=
destination_position_in_letter
,
**
kw
**
kw
)
)
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewAsLetter.xml
View file @
368ed35d
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
format=None, display_source_address=None, display_head=None, display_svg=None, batch_mode=False, document_download=None, document_save=None, override_source_organisation_title=None,override_source_person_title=None,override_destination_organisation_title=None,override_destination_person_title=None,override_date=None,**kw
</string>
</value>
<value>
<string>
format=None, display_source_address=None, display_head=None, display_svg=None, batch_mode=False, document_download=None, document_save=None, override_source_organisation_title=None,override_source_person_title=None,override_destination_organisation_title=None,override_destination_person_title=None,override_date=None,
destination_position_in_letter = \'right\',
**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_viewExportAsLetterDialog.xml
View file @
368ed35d
...
@@ -91,6 +91,7 @@
...
@@ -91,6 +91,7 @@
<string>
override_source_person_title
</string>
<string>
override_source_person_title
</string>
<string>
override_destination_organisation_title
</string>
<string>
override_destination_organisation_title
</string>
<string>
override_destination_person_title
</string>
<string>
override_destination_person_title
</string>
<string>
destination_position_in_letter
</string>
<string>
override_date
</string>
<string>
override_date
</string>
</list>
</list>
</value>
</value>
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewExportAsLetterDialog/content.xml
View file @
368ed35d
...
@@ -301,7 +301,7 @@
...
@@ -301,7 +301,7 @@
<key>
<string>
_text
</string>
</key>
<key>
<string>
_text
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
python: \'<iframe width="100%%" height="500" style="background-color:#FFFFFF;box-sizing:border-box;-wekbit-box-sizing:border-box;" src="%s/WebPage_viewAsWeb?portal_skin=Letter&override_source_person_title=%s&override_source_organisation_title=%s&override_destination_person_title=%s&override_destination_organisation_title=%s&display_head=%s&override_date=%s&display_source_address=%s&display_svg=%s
" name="default_version">
</iframe>
\' % (context.absolute_url(), context.REQUEST.get("override_source_person_title", ""), context.REQUEST.get("override_source_organisation_title", ""), context.REQUEST.get("override_destination_person_title", ""), context.REQUEST.get("override_destination_organisation_title", ""), context.REQUEST.get("display_head", 1), context.REQUEST.get("override_date", ""), context.REQUEST.get("display_source_address", 0), context.REQUEST.get("display_svg", "png
"))
python: \'<iframe width="100%%" height="500" style="background-color:#FFFFFF;box-sizing:border-box;-wekbit-box-sizing:border-box;" src="%s/WebPage_viewAsWeb?portal_skin=Letter&override_source_person_title=%s&override_source_organisation_title=%s&override_destination_person_title=%s&override_destination_organisation_title=%s&display_head=%s&override_date=%s&display_source_address=%s&display_svg=%s
&destination_position_in_letter=%s" name="default_version">
</iframe>
\' % (context.absolute_url(), context.REQUEST.get("override_source_person_title", ""), context.REQUEST.get("override_source_organisation_title", ""), context.REQUEST.get("override_destination_person_title", ""), context.REQUEST.get("override_destination_organisation_title", ""), context.REQUEST.get("display_head", 1), context.REQUEST.get("override_date", ""), context.REQUEST.get("display_source_address", 0), context.REQUEST.get("display_svg", "png"), context.REQUEST.get("destination_position_in_letter", "right
"))
]]>
</string>
</value>
]]>
</string>
</value>
</item>
</item>
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/WebPage_viewExportAsLetterDialog/destination_position_in_letter.xml
0 → 100644
View file @
368ed35d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
first_item
</string>
<string>
items
</string>
<string>
size
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
destination_position_in_letter
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_list_field
</string>
</value>
</item>
<item>
<key>
<string>
first_item
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
items
</string>
</key>
<value>
<list>
<tuple>
<string>
Right
</string>
<string>
right
</string>
</tuple>
<tuple>
<string>
Left
</string>
<string>
left
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
size
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Recipient Position In Letter
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/template_css/letter.css.css
View file @
368ed35d
...
@@ -129,6 +129,7 @@ html{
...
@@ -129,6 +129,7 @@ html{
width
:
50%
;
width
:
50%
;
}
}
.ci-letter
.ci-letter-head-right
table
tr
td
:nth-child
(
2
)
{
.ci-letter
.ci-letter-head-right
table
tr
td
:nth-child
(
2
)
{
padding-left
:
100px
;
width
:
48%
;
width
:
48%
;
}
}
.ci-letter
.ci-letter-head-right
table
tr
td
:nth-child
(
3
)
{
.ci-letter
.ci-letter-head-right
table
tr
td
:nth-child
(
3
)
{
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity/template_css/letter.pdf.css.css
View file @
368ed35d
...
@@ -137,6 +137,7 @@ html {
...
@@ -137,6 +137,7 @@ html {
width
:
43%
;
width
:
43%
;
}
}
.ci-letter
.ci-letter-head-right
table
tr
td
:nth-child
(
2
)
{
.ci-letter
.ci-letter-head-right
table
tr
td
:nth-child
(
2
)
{
padding-left
:
100px
;
width
:
55%
;
width
:
55%
;
}
}
.ci-letter
.ci-letter-head-right
table
tr
td
:nth-child
(
3
)
{
.ci-letter
.ci-letter-head-right
table
tr
td
:nth-child
(
3
)
{
...
...
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_letter/WebPage_viewAsWeb.py
View file @
368ed35d
...
@@ -39,5 +39,6 @@ return context.Letter_viewAsLetter(
...
@@ -39,5 +39,6 @@ return context.Letter_viewAsLetter(
document_save
=
document_save
,
document_save
=
document_save
,
document_download
=
document_download
,
document_download
=
document_download
,
batch_mode
=
batch_mode
,
batch_mode
=
batch_mode
,
destination_position_in_letter
=
destination_position_in_letter
,
**
kw
**
kw
)
)
bt5/erp5_corporate_identity/SkinTemplateItem/portal_skins/erp5_corporate_identity_letter/WebPage_viewAsWeb.xml
View file @
368ed35d
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
format="html", display_source_address=None, display_svg=None,document_download=None, batch_mode=False, display_head=None,document_save=None, override_source_organisation_title=None,override_source_person_title=None,override_destination_organisation_title=None,override_destination_person_title=None,override_date=None,**kw
</string>
</value>
<value>
<string>
format="html", display_source_address=None, display_svg=None,document_download=None, batch_mode=False, display_head=None,document_save=None, override_source_organisation_title=None,override_source_person_title=None,override_destination_organisation_title=None,override_destination_person_title=None,override_date=None,
destination_position_in_letter=\'right\',
**kw
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
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