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
1
Issues
1
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
Roque
erp5
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
Hide 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,18 +110,22 @@
...
@@ -110,18 +110,22 @@
</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
tal:condition=
"python: value != \'\'"
>
\n
</tal:block>
\n
<tal:block
tal:condition=
"item_list"
>
\n
<tal:block
tal:condition=
"python: field_meta_type != \'DateTimeField\'"
>
\n
<tal:block
tal:define=
"displayed_value_list python: [str(i[0]).replace(\'&\', \'\') for i in item_list if i[1] == value]"
>
\n
<text:p
tal:condition=
"not: item_list"
tal:content=
"value"
></text:p>
\n
<text:p
tal:condition=
"displayed_value_list"
tal:content=
"python: displayed_value_list[0]"
/>
\n
<tal:block
tal:condition=
"python: value != \'\'"
>
\n
<text:p
tal:condition=
"not: displayed_value_list"
tal:content=
"python: value"
/>
\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
<text:p
tal:condition=
"displayed_value_list"
tal:content=
"python: displayed_value_list[0]"
/>
\n
<text:p
tal:condition=
"not: displayed_value_list"
tal:content=
"python: value"
/>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block
>
\n
<tal:block
tal:condition=
"python: value is None"
>
\n
<tal:block
tal:condition=
"python: value is None"
>
\n
<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
...
...
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