|
Lines 244-250
Link Here
|
| 244 |
<form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off"> |
244 |
<form method="post" action="/cgi-bin/koha/opac-memberentry.pl" id="memberentry-form" autocomplete="off"> |
| 245 |
[% INCLUDE 'csrf-token.inc' %] |
245 |
[% INCLUDE 'csrf-token.inc' %] |
| 246 |
|
246 |
|
| 247 |
[% 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' ] %] |
247 |
[% 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' ] %] |
| 248 |
[% IF mandatory.defined( field ) %] |
248 |
[% IF mandatory.defined( field ) %] |
| 249 |
[% SET required.$field = 'required' %] |
249 |
[% SET required.$field = 'required' %] |
| 250 |
[% END %] |
250 |
[% END %] |
|
Lines 1191-1196
Link Here
|
| 1191 |
<!-- /.row --> |
1191 |
<!-- /.row --> |
| 1192 |
[% END %] |
1192 |
[% END %] |
| 1193 |
|
1193 |
|
|
|
1194 |
[% IF ( Koha.Preference('SMSSendDriver') ) && !hidden.defined('smsalertnumber') && !hidden.defined('sms_provider_id') && action != 'edit' %] |
| 1195 |
<div class="row"> |
| 1196 |
<div class="col"> |
| 1197 |
<fieldset class="rows" id="memberentry_sms"> |
| 1198 |
<legend id="sms_legend">SMS number</legend> |
| 1199 |
<ol> |
| 1200 |
[% UNLESS hidden.defined('smsalertnumber') %] |
| 1201 |
<li> |
| 1202 |
<label for="borrower_smsalertnumber" class="[% required.smsalertnumber | html %]">SMS number:</label> |
| 1203 |
<input type="text" id="borrower_smsalertnumber" name="borrower_smsalertnumber" value="[% borrower.smsalertnumber | html %]" class="[% required.smsalertnumber | html %]" /> |
| 1204 |
<div class="required_label [% required.smsalertnumber | html %]">Required</div> |
| 1205 |
<span class="hint smsalertnumber_help">Please enter numbers only. Prefix the number with + or 00 if including the country code.</span> |
| 1206 |
</li> |
| 1207 |
[% END %] |
| 1208 |
[% UNLESS hidden.defined('sms_provider_id') %] |
| 1209 |
<li> |
| 1210 |
<label for="borrower_sms_provider_id" class="[% required.sms_provider_id | html %]">SMS provider:</label> |
| 1211 |
<select id="borrower_sms_provider_id" name="borrower_sms_provider_id" class="[% required.sms_provider_id | html %]"> |
| 1212 |
<option value="">Unknown</option> |
| 1213 |
[% FOREACH s IN sms_providers %] |
| 1214 |
<option value="[% s.id | html %]">[% s.name | html %]</option> |
| 1215 |
[% END %] |
| 1216 |
</select> |
| 1217 |
<div class="required_label [% required.sms_provider_id | html %]">Required</div> |
| 1218 |
<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> |
| 1219 |
</li> |
| 1220 |
[% END %] |
| 1221 |
</ol> |
| 1222 |
</fieldset> |
| 1223 |
</div> |
| 1224 |
</div> |
| 1225 |
[% END %] |
| 1226 |
|
| 1194 |
[% UNLESS op == 'edit' || hidden.defined('password') %] |
1227 |
[% UNLESS op == 'edit' || hidden.defined('password') %] |
| 1195 |
<div class="row"> |
1228 |
<div class="row"> |
| 1196 |
<div class="col"> |
1229 |
<div class="col"> |