From: <svn...@pl...> - 2004-10-25 20:55:22
|
Author: shh42 Date: Mon Oct 25 16:12:07 2004 New Revision: 5716 Modified: CMFPlone/branches/shh-catch-datetime-errors/skins/plone_content/event_edit_form.cpt Log: Provide defaults if the request variable is empty. Modified: CMFPlone/branches/shh-catch-datetime-errors/skins/plone_content/event_edit_form.cpt ============================================================================== --- CMFPlone/branches/shh-catch-datetime-errors/skins/plone_content/event_edit_form.cpt (original) +++ CMFPlone/branches/shh-catch-datetime-errors/skins/plone_content/event_edit_form.cpt Mon Oct 25 16:12:07 2004 @@ -195,6 +195,7 @@ <div class="field" tal:define="here_start here/start|nothing; start_date python:request.get('start_date', here_start); + start_date python:start_date or here_start; error errors/start_date | nothing;" tal:attributes="class python:test(error, 'field error', 'field')"> @@ -223,6 +224,7 @@ <div class="field" tal:define="here_end here/end|nothing; end_date python:request.get('end_date', here_end); + end_date python:end_date or here_end; error errors/end_date | nothing;" tal:attributes="class python:test(error, 'field error', 'field')"> |