Bug 19857: Use BorrowerUnwantedField system preference for SMS provider selection
Optionally hide SMS provider field in patron modification screen with BorrowerUnwantedField system preference. To test: 1. Apply patch 2. Append BorrowerUnwantedField with sms_provider_id and save changes 3. Go to patron modification screen in staff client 4. Observe the SMS provider selection is now hidden Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
5ff8eca26c
commit
f20d2f1ea3
|
|
@ -1241,6 +1241,7 @@ $(document).ready(function() {
|
|||
<p><label for="SMSnumber">SMS number:</label>
|
||||
<input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber %]" />
|
||||
</p>
|
||||
[% UNLESS nosms_provider_id %]
|
||||
<p>
|
||||
<label for="sms_provider_id">SMS provider:</label>
|
||||
<select id="sms_provider_id" name="sms_provider_id"/>
|
||||
|
|
@ -1254,6 +1255,7 @@ $(document).ready(function() {
|
|||
[% END %]
|
||||
</select>
|
||||
</p>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</fieldset>
|
||||
[% END %] [% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue