HTML5 required attribute for some input forms

This commit is contained in:
Mikael Nordfeldth
2014-04-06 11:27:41 +02:00
parent 0777aa5487
commit a2a2105058
8 changed files with 29 additions and 12 deletions

View File

@@ -104,7 +104,8 @@ class EventForm extends Form
null,
// TRANS: Field title on event form.
_m('Title of the event.'),
'title');
'title',
true); // HTML5 "required" attribute
$this->unli();
$this->li();
@@ -195,7 +196,8 @@ class EventForm extends Form
null,
// TRANS: Field title on event form.
_m('Description of the event.'),
'description');
'description',
true); // HTML5 "required" attribute
$this->unli();
$this->out->elementEnd('ul');