Lines 222-228
Link Here
|
222 |
<form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off"> |
222 |
<form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off"> |
223 |
[% INCLUDE 'csrf-token.inc' %] |
223 |
[% INCLUDE 'csrf-token.inc' %] |
224 |
|
224 |
|
225 |
[% FOREACH field = ['streetnumber' 'streettype' 'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'preferred_name' 'middle_name' 'dateofbirth' 'initials' 'pronouns' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' 'B_streettype' 'B_streetnumber' 'B_address' 'B_address2' 'B_city' 'B_state' 'B_zipcode' 'B_country' 'B_phone' 'B_email' 'contactnote' 'altcontactsurname' 'altcontactfirstname' 'altcontactaddress1' 'altcontactaddress2' 'altcontactaddress3' 'altcontactstate' 'altcontactzipcode' 'altcontactcountry' 'altcontactphone' 'password' 'lang' ] %] |
225 |
[% FOREACH field = ['streetnumber' 'streettype' 'cardnumber' 'branchcode' 'categorycode' 'title' 'surname' 'firstname' 'preferred_name' 'middle_name' 'dateofbirth' 'initials' 'pronouns' 'othernames' 'address' 'address2' 'city' 'state' 'zipcode' 'country' 'phone' 'phonepro' 'mobile' 'email' 'emailpro' 'fax' 'B_streettype' 'B_streetnumber' 'B_address' 'B_address2' 'B_city' 'B_state' 'B_zipcode' 'B_country' 'B_phone' 'B_email' 'contactnote' 'altcontactsurname' 'altcontactfirstname' 'altcontactaddress1' 'altcontactaddress2' 'altcontactaddress3' 'altcontactstate' 'altcontactzipcode' 'altcontactcountry' 'altcontactphone' 'password' 'lang' 'smsalertnumber' 'sms_provider_id' ] %] |
226 |
[% IF mandatory.defined( field ) %] |
226 |
[% IF mandatory.defined( field ) %] |
227 |
[% SET required.$field = 'required' %] |
227 |
[% SET required.$field = 'required' %] |
228 |
[% END %] |
228 |
[% END %] |
Lines 1169-1174
Link Here
|
1169 |
<!-- /.row --> |
1169 |
<!-- /.row --> |
1170 |
[% END %] |
1170 |
[% END %] |
1171 |
|
1171 |
|
|
|
1172 |
[% IF ( Koha.Preference('SMSSendDriver') ) && !hidden.defined('smsalertnumber') && !hidden.defined('sms_provider_id') && action != 'edit' %] |
1173 |
<div class="row"> |
1174 |
<div class="col"> |
1175 |
<fieldset class="rows" id="memberentry_sms"> |
1176 |
<legend id="sms_legend">SMS number</legend> |
1177 |
<ol> |
1178 |
[% UNLESS hidden.defined('smsalertnumber') %] |
1179 |
<li> |
1180 |
<label for="borrower_smsalertnumber" class="[% required.smsalertnumber | html %]">SMS number:</label> |
1181 |
<input type="text" id="borrower_smsalertnumber" name="borrower_smsalertnumber" value="[% borrower.smsalertnumber | html %]" class="[% required.smsalertnumber | html %]" /> |
1182 |
<div class="required_label [% required.smsalertnumber | html %]">Required</div> |
1183 |
<span class="hint smsalertnumber_help">Please enter numbers only. Prefix the number with + or 00 if including the country code.</span> |
1184 |
</li> |
1185 |
[% END %] |
1186 |
[% UNLESS hidden.defined('sms_provider_id') %] |
1187 |
<li> |
1188 |
<label for="borrower_sms_provider_id" class="[% required.sms_provider_id | html %]">SMS provider:</label> |
1189 |
<select id="borrower_sms_provider_id" name="borrower_sms_provider_id" class="[% required.sms_provider_id | html %]"> |
1190 |
<option value="">Unknown</option> |
1191 |
[% FOREACH s IN sms_providers %] |
1192 |
<option value="[% s.id | html %]">[% s.name | html %]</option> |
1193 |
[% END %] |
1194 |
</select> |
1195 |
<div class="required_label [% required.sms_provider_id | html %]">Required</div> |
1196 |
<span class="hint sms_provider_id_help">Please contact a library staff member if you are unsure of your mobile service provider, or you do not see your provider in this list.</span> |
1197 |
</li> |
1198 |
[% END %] |
1199 |
</ol> |
1200 |
</fieldset> |
1201 |
</div> |
1202 |
</div> |
1203 |
[% END %] |
1204 |
|
1172 |
[% UNLESS op == 'edit' || hidden.defined('password') %] |
1205 |
[% UNLESS op == 'edit' || hidden.defined('password') %] |
1173 |
<div class="row"> |
1206 |
<div class="row"> |
1174 |
<div class="col"> |
1207 |
<div class="col"> |