Commit 0d4780e1 authored by Gabriel Monnerat's avatar Gabriel Monnerat

fix css and don't call DateTime functions when date is None

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44595 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4084ac1c
...@@ -57,6 +57,8 @@ ...@@ -57,6 +57,8 @@
XXX - check if it is possible with DateField\n XXX - check if it is possible with DateField\n
"""\n """\n
date = context.getStartDate()\n date = context.getStartDate()\n
if not date:\n
return None\n
if date.isCurrentDay():\n if date.isCurrentDay():\n
return date.AMPMMinutes()\n return date.AMPMMinutes()\n
else:\n else:\n
......
...@@ -168,6 +168,10 @@ a.email {\n ...@@ -168,6 +168,10 @@ a.email {\n
\n \n
div.header-left {\n div.header-left {\n
margin-top: -9px !important;\n margin-top: -9px !important;\n
}\n
\n
div.listbox-tree {\n
display: none !important;\n
}</string> </value> }</string> </value>
</item> </item>
<item> <item>
......
324 325
\ No newline at end of file \ No newline at end of file
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