%]
<div class="col-md-3 reg-field-input">
<input
- type="[% type %]"
+ [% IF type == 'email' %]type="text" pattern="^(?:\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b(?:,(?!$)|$))*$" multiple
+ [% ELSE %]type="[% type %]"
+ [% END %]
class="form-control"
name="[% model %]"
ng-change="field_modified()"
ng-required="field_required('[% cls %]', '[% field %]')"
ng-blur="handle_field_changed([% base_obj %], '[% field %]')"
- ng-pattern="field_pattern('[% cls %]', '[% field %]')"
+ [% IF type != 'email' %]ng-pattern="field_pattern('[% cls %]', '[% field %]')"[% END %]
[% IF disable %]ng-disabled="[% disable %]"[% END %]
ng-model="[% model %]"/>
</div>
service.existing_patron = current;
var patron = egCore.idl.toHash(current);
-
+ patron.classname = "au";
patron.home_ou = egCore.org.get(patron.home_ou.id);
patron.expire_date = new Date(Date.parse(patron.expire_date));
patron.dob = service.parse_dob(patron.dob);