Provide an example DoB date format message. Since the message may need
translating, it is provided as a template string and not an org unit
setting. Note, however, that the Dojo widget inside the patron
registration UI, where self-reg data ultimately goes, requires
incoming/default date values to be in ISO8601 format. It will not
accept locale-shaped dates.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
{class => 'stgu', name = 'email', label => l('Email Address')}
{class => 'stgu', name = 'usrname', label => l('Requested Username')}
];
+
+# The dojo date widget in the patron edit UI only accepts default
+# values in ISO8601 format. It will not accept locale-shaped dates.
+IF !ctx.register.settings.stgu.dob.example;
+ ctx.register.settings.stgu.dob.example = l('YYYY-MM-DD');
+END;
+
%]
<div id="content-wrapper">