Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
e69bc864
Commit
e69bc864
authored
Dec 29, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ods_style: use DateTimeField to display date in form_view
parent
ed1a017c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_style/field_ods_macro.xml
...plateItem/portal_skins/erp5_ods_style/field_ods_macro.xml
+14
-10
No files found.
bt5/erp5_ods_style/SkinTemplateItem/portal_skins/erp5_ods_style/field_ods_macro.xml
View file @
e69bc864
...
@@ -110,8 +110,11 @@
...
@@ -110,8 +110,11 @@
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
<tal:block
tal:condition=
"python: (not (same_type(value, []) or same_type(value, ()))) and value is not None"
>
\n
<tal:block
tal:condition=
"python: (not (same_type(value, []) or same_type(value, ()))) and value is not None"
>
\n
<text:p
tal:condition=
"not: item_list"
tal:content=
"value"
>
\n
<tal:block
tal:condition=
"python:field_meta_type == \'DateTimeField\'"
>
\n
</text:p>
\n
<text:p
tal:content=
"python: field.render_pdf(value)"
/>
\n
</tal:block>
\n
<tal:block
tal:condition=
"python: field_meta_type != \'DateTimeField\'"
>
\n
<text:p
tal:condition=
"not: item_list"
tal:content=
"value"
></text:p>
\n
<tal:block
tal:condition=
"python: value != \'\'"
>
\n
<tal:block
tal:condition=
"python: value != \'\'"
>
\n
<tal:block
tal:condition=
"item_list"
>
\n
<tal:block
tal:condition=
"item_list"
>
\n
<tal:block
tal:define=
"displayed_value_list python: [str(i[0]).replace(\'&\', \'\') for i in item_list if i[1] == value]"
>
\n
<tal:block
tal:define=
"displayed_value_list python: [str(i[0]).replace(\'&\', \'\') for i in item_list if i[1] == value]"
>
\n
...
@@ -124,6 +127,7 @@
...
@@ -124,6 +127,7 @@
<text:p
table:style=
"Default"
tal:content=
"python: \' \'"
/>
\n
<text:p
table:style=
"Default"
tal:content=
"python: \' \'"
/>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
</table:table-cell>
\n
</table:table-cell>
\n
</tal:block>
\n
</tal:block>
\n
</table:table-row>
\n
</table:table-row>
\n
...
...
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