Even though the HTML5 "email" input type allows multiple
addresses to be separated by commas there is nothing that
can be done to signal to Angular.js that this is ok; it
will only ever accept a single address. This patch forces
the type of the input tag to plain text so Angular will
rely on any supplied regex to verify the entry.
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
%]
<div class="col-md-3 reg-field-input">
<input
- type="[% type %]"
+ [% IF type == "email" %]type="text"
+ [% ELSE %]type="[% type %]"
+ [% END %]
class="form-control"
name="[% model %]"
ng-change="field_modified()"