Bugzilla – Attachment 92913 Details for
Bug 23533
Reindent patron entry form (memberentrygen.tt)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23533: (follow-up) Add markup comments
Bug-23533-follow-up-Add-markup-comments.patch (text/plain), 134.63 KB, created by
Owen Leonard
on 2019-09-17 18:52:49 UTC
(
hide
)
Description:
Bug 23533: (follow-up) Add markup comments
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-09-17 18:52:49 UTC
Size:
134.63 KB
patch
obsolete
>From 03262f5ce95b43f4dfaaec7d0203d349bd689b3e Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 17 Sep 2019 18:41:48 +0000 >Subject: [PATCH] Bug 23533: (follow-up) Add markup comments > >This patch adds comments to the template to highlight the markup >structure. > >This patch should have no effect on the interface or functionality. >--- > .../prog/en/modules/members/memberentrygen.tt | 1446 ++++++++++---------- > 1 file changed, 724 insertions(+), 722 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >index 9847f748374..c19d249f4f9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt >@@ -122,7 +122,7 @@ > > <button type="submit" id="not-duplicate" class="new"><i class="fa fa-plus"></i> Not a duplicate. Save as new record</button> > </div> >- [% END %] >+ [% END # /IF check_member %] > > [% IF ( nok ) %] > <div class="dialog alert"> >@@ -178,8 +178,8 @@ > <li id="ERROR_bad_email_alternative">The alternative email is invalid.</li> > [% END %] > </ul> >- </div> >- [% END %] >+ </div> <!-- /.dialog.alert --> >+ [% END # /IF nok %] > > > <div id="toolbar" class="btn-toolbar"> >@@ -195,8 +195,8 @@ > [% END %] > <i class="fa fa-times"></i> Cancel > </a> >- [% END %] >- </div> >+ [% END # /UNLESS check_member %] >+ </div> <!-- /#toolbar --> > > <form name="form" id="entryform" action="/cgi-bin/koha/members/memberentry.pl" method="post" autocomplete="off" class="toggler" > > [% UNLESS ( check_member ) %] >@@ -226,7 +226,7 @@ > <input type="hidden" name="cardnumber" value="[% cardnumber | html %]" /> > [% END %] > [% END %] >- [% END %] >+ [% END # /IF opadd %] > > [% IF ( step_1 ) %] > [% UNLESS notitle && nosurname && nofirstname && nodateofbirth && noinitials && noothernames &&nosex %] >@@ -257,9 +257,9 @@ > <span class="required">Required</span> > [% END %] > </li> >- [% END %] >- [% END %] >- [% END %] >+ [% END # /IF BorrowersTitles %] >+ [% END # /UNLESS notitle %] >+ [% END # /UNLESS I %] > > [% UNLESS nosurname %] > <li> >@@ -274,7 +274,7 @@ > <label for="surname"> > [% END %] > Surname: </label> >- [% END %] >+ [% END # /IF I %] > > [% IF ( uppercasesurnames ) %] > <input style="text-transform:uppercase;" type="text" id="surname" name="surname" size="20" value="[% surname | html %]" /> >@@ -283,7 +283,7 @@ > [% END %] > [% IF ( mandatorysurname ) %]<span class="required">Required</span>[% END %] > </li> >- [% END %] >+ [% END # /UNLESS nosurname %] > > [% UNLESS ( I ) %] > [% UNLESS nofirstname %] >@@ -298,7 +298,7 @@ > <input type="text" id="firstname" name="firstname" size="20" value="[% firstname | html UNLESS opduplicate %]" /> > [% IF ( mandatoryfirstname ) %]<span class="required">Required</span>[% END %] > </li> >- [% END %] >+ [% END # /UNLESS nofirstname %] > [% UNLESS nodateofbirth %] > <li> > [% IF ( mandatorydateofbirth ) %] >@@ -313,7 +313,7 @@ > [% IF ( ERROR_dateofbirth ) %]<span class="required">(Error)</span>[% END %] > <div class="hint">[% INCLUDE 'date-format.inc' %]</div> > </li> >- [% END %] >+ [% END # /UNLESS nodateofbirth %] > [% UNLESS noinitials %] > <li> > [% IF ( mandatoryinitials ) %] >@@ -326,8 +326,8 @@ > <input type="text" id="initials" name="initials" size="20" value="[% initials | html UNLESS opduplicate %]" /> > [% IF ( mandatoryinitials ) %]<span class="required">Required</span>[% END %] > </li> >- [% END %] >- [% END %] >+ [% END # /UNLESS noinitials %] >+ [% END # /UNLESS I %] > > [% UNLESS noothernames %] > <li> >@@ -342,7 +342,7 @@ > [% IF ( mandatoryothernames ) %]<span class="required">Required</span>[% END %] > [% IF ( I ) %]<input type="hidden" name="sex" value="N" />[% END %] > </li> >- [% END %] >+ [% END # /UNLESS noothernames %] > > [% UNLESS ( I ) %] > [% UNLESS nosex %] >@@ -367,13 +367,13 @@ > <label for="sex-female">Female </label><input type="radio" name="sex" id="sex-female" value="F" /> > <label for="sex-male">Male </label><input type="radio" name="sex" id="sex-male" value="M" /> > <label for="sex-none">None specified </label><input type="radio" name="sex" id="sex-none" value="" checked="checked" /> >- [% END %] >+ [% END # /UNLESS opduplicate %] > </li> >- [% END %] >- [% END %] >+ [% END # /UNLESS nosex %] >+ [% END # /UNLESS I %] > </ol> > </fieldset> >- [% END # hide fieldset %] >+ [% END # /UNLESS notitle && nosurname && nofirstname... %] > > [% IF show_guarantor || guarantor %] > [% SET possible_relationships = Koha.Preference('borrowerRelationship') %] >@@ -422,10 +422,10 @@ > <label for="delete_guarantor-[% r.id | uri %]">Remove: </label> > <input type="checkbox" id="delete_guarantor-[% r.id | uri %]" name="delete_guarantor" value="[% r.id | html %]" /> > </li> >- [% END %] >+ [% END # /IF category_type %] > </ol> > </fieldset> >- [% END # END relationships foreach %] >+ [% END # END FOREACH r %] > </span> > > <fieldset class="rows guarantor" id="guarantor_template"> >@@ -485,7 +485,7 @@ > </select> > <div class="hint">Allow guarantors of this patron to view this patron's checkouts from the OPAC</div> > </li> >- [% END %] >+ [% END # /IF relationships %] > [% IF relationships && Koha.Preference('AllowStaffToSetFinesVisibilityForGuarantor') %] > <li> > <label for="privacy_guarantor_fines">Show fines to guarantors</label> >@@ -500,10 +500,10 @@ > </select> > <div class="hint">Allow guarantors of this patron to view this patron's fines from the OPAC</div> > </li> >- [% END %] >+ [% END # /IF relationships %] > </ol> > </fieldset> >- [% END %] >+ [% END # /IF show_guarantor %] > > [% UNLESS noaddress && noaddress2 && nocity && nostate && nozipcode && nocountry %] > [% IF Koha.Preference( 'AddressFormat' ) %] >@@ -513,793 +513,795 @@ > > [% UNLESS nophone && nophonepro && nomobile && noemail && noemailpro && nofax %] > <fieldset class="rows" id="memberentry_contact"> >- <legend id="contact_lgd">Contact</legend><ol> >- >- [% UNLESS nocontactname %] >- <li> >- [% IF ( mandatorycontactname ) %] >- <label for="contactname" class="required"> >- [% ELSE %] >- <label for="contactname"> >- [% END %] >- Guarantor surname: >- </label> >- <input type="text" id="contactname" name="contactname" value="[% contactname | html %]" /> >- [% IF ( mandatorycontactname ) %]<span class="required">Required</span>[% END %] >- <div class="hint">Non-patron guarantor surname</div> >- </li> >- [% END %] >- >- [% UNLESS nocontactfirstname %] >- <li> >- [% IF ( mandatorycontactfirstname ) %] >- <label for="contactfirstname" class="required"> >- [% ELSE %] >- <label for="contactfirstname"> >- [% END %] >- Guarantor first name: >- </label> >- <input type="text" id="contactfirstname" name="contactfirstname" value="[% contactfirstname | html %]" /> >- [% IF ( mandatorycontactfirstname ) %]<span class="required">Required</span>[% END %] >- <div class="hint">Non-patron guarantor first name</div> >- </li> >- [% END %] >+ <legend id="contact_lgd">Contact</legend> >+ <ol> > >- [% UNLESS norelationship %] >- [% IF possible_relationships %] >+ [% UNLESS nocontactname %] > <li> >- <label for="relationship">Relationship: </label> >- <select class="relationship" name="relationship"> >- <option value=""></option> >- [% FOREACH pr IN possible_relationships.split('\|') %] >- [% IF pr == relationship %] >- <option value="[% pr | html %]" selected="selected">[% pr | html %]</option> >- [% ELSE %] >- <option value="[% pr | html %]">[% pr | html %]</option> >- [% END %] >- [% END %] >- </select> >+ [% IF ( mandatorycontactname ) %] >+ <label for="contactname" class="required"> >+ [% ELSE %] >+ <label for="contactname"> >+ [% END %] >+ Guarantor surname: >+ </label> >+ <input type="text" id="contactname" name="contactname" value="[% contactname | html %]" /> >+ [% IF ( mandatorycontactname ) %]<span class="required">Required</span>[% END %] >+ <div class="hint">Non-patron guarantor surname</div> > </li> >- [% END %] >- [% END %] >+ [% END # /UNLESS nocontactname %] > >- [% UNLESS nophone %] >- <li> >- [% IF ( mandatoryphone ) %] >- <label for="phone" class="required"> >- [% ELSE %] >- <label for="phone"> >- [% END %] >- Primary phone: >- </label> >- <input type="text" id="phone" name="phone" value="[% phone | html %]" /> >- [% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %] >- <div class="hint">Shows on transit slips</div> >- </li> >- [% END %] >+ [% UNLESS nocontactfirstname %] >+ <li> >+ [% IF ( mandatorycontactfirstname ) %] >+ <label for="contactfirstname" class="required"> >+ [% ELSE %] >+ <label for="contactfirstname"> >+ [% END %] >+ Guarantor first name: >+ </label> >+ <input type="text" id="contactfirstname" name="contactfirstname" value="[% contactfirstname | html %]" /> >+ [% IF ( mandatorycontactfirstname ) %]<span class="required">Required</span>[% END %] >+ <div class="hint">Non-patron guarantor first name</div> >+ </li> >+ [% END # /UNLESS nocontactfirstname %] > >- [% UNLESS nophonepro %] >- <li> >- [% IF ( mandatoryphonepro ) %] >- <label for="phonepro" class="required"> >- [% ELSE %] >- <label for="phonepro"> >- [% END %] >- Secondary phone: >- </label> >- <input type="text" id="phonepro" name="phonepro" value="[% phonepro | html %]" /> >- [% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >+ [% UNLESS norelationship %] >+ [% IF possible_relationships %] >+ <li> >+ <label for="relationship">Relationship: </label> >+ <select class="relationship" name="relationship"> >+ <option value=""></option> >+ [% FOREACH pr IN possible_relationships.split('\|') %] >+ [% IF pr == relationship %] >+ <option value="[% pr | html %]" selected="selected">[% pr | html %]</option> >+ [% ELSE %] >+ <option value="[% pr | html %]">[% pr | html %]</option> >+ [% END %] >+ [% END %] >+ </select> >+ </li> >+ [% END # /UNLESS possible_relationships %] >+ [% END # /UNLESS norelationship %] > >- [% UNLESS nomobile %] >- <li> >- [% IF ( mandatorymobile ) %] >- <label for="mobile" class="required"> >- [% ELSE %] >- <label for="mobile"> >- [% END %] >- Other phone: >- </label> >- <input type="text" id="mobile" name="mobile" value="[% mobile | html %]" /> >- [% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >+ [% UNLESS nophone %] >+ <li> >+ [% IF ( mandatoryphone ) %] >+ <label for="phone" class="required"> >+ [% ELSE %] >+ <label for="phone"> >+ [% END %] >+ Primary phone: >+ </label> >+ <input type="text" id="phone" name="phone" value="[% phone | html %]" /> >+ [% IF ( mandatoryphone ) %]<span class="required">Required</span>[% END %] >+ <div class="hint">Shows on transit slips</div> >+ </li> >+ [% END # /UNLESS nophone %] > >- [% UNLESS noemail %] >- <li> >- [% IF ( mandatoryemail ) %] >- <label for="email" class="required"> >- [% ELSE %] >- <label for="email"> >- [% END %] >- Primary email: >- </label> >- <input type="text" id="email" name="email" size="45" value="[% email | html %]" /> >- [% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %] >- <div class="hint">Shows on transit slips</div> >- </li> >- [% END %] >+ [% UNLESS nophonepro %] >+ <li> >+ [% IF ( mandatoryphonepro ) %] >+ <label for="phonepro" class="required"> >+ [% ELSE %] >+ <label for="phonepro"> >+ [% END %] >+ Secondary phone: >+ </label> >+ <input type="text" id="phonepro" name="phonepro" value="[% phonepro | html %]" /> >+ [% IF ( mandatoryphonepro ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END # /UNLESS nophonepro %] > >- [% UNLESS noemailpro %] >- <li> >- [% IF ( mandatoryemailpro ) %] >- <label for="emailpro" class="required"> >- [% ELSE %] >- <label for="emailpro"> >- [% END %] >- Secondary email: >- </label> >- <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro | html %]" /> >- [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >+ [% UNLESS nomobile %] >+ <li> >+ [% IF ( mandatorymobile ) %] >+ <label for="mobile" class="required"> >+ [% ELSE %] >+ <label for="mobile"> >+ [% END %] >+ Other phone: >+ </label> >+ <input type="text" id="mobile" name="mobile" value="[% mobile | html %]" /> >+ [% IF ( mandatorymobile ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END # /UNLESS nomobile %] > >- [% UNLESS nofax %] >- <li> >- [% IF ( mandatoryfax ) %] >- <label for="fax" class="required"> >- [% ELSE %] >- <label for="fax"> >- [% END %] >- Fax: >- </label> >- <input type="text" id="fax" name="fax" value="[% fax | html %]" /> >- [% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- </ol> >- </fieldset> >- [% END # hide fieldset %] >+ [% UNLESS noemail %] >+ <li> >+ [% IF ( mandatoryemail ) %] >+ <label for="email" class="required"> >+ [% ELSE %] >+ <label for="email"> >+ [% END %] >+ Primary email: >+ </label> >+ <input type="text" id="email" name="email" size="45" value="[% email | html %]" /> >+ [% IF ( mandatoryemail ) %]<span class="required">Required</span>[% END %] >+ <div class="hint">Shows on transit slips</div> >+ </li> >+ [% END # /UNLESS noemail %] > >- <!-- ************************ STEP_1 *********************** --> >- [% END %] >+ [% UNLESS noemailpro %] >+ <li> >+ [% IF ( mandatoryemailpro ) %] >+ <label for="emailpro" class="required"> >+ [% ELSE %] >+ <label for="emailpro"> >+ [% END %] >+ Secondary email: >+ </label> >+ <input type="text" id="emailpro" name="emailpro" size="45" value="[% emailpro | html %]" /> >+ [% IF ( mandatoryemailpro ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END # /UNLESS noemailpro %] > >- [% IF ( step_6 ) %] >- [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %] >+ [% UNLESS nofax %] >+ <li> >+ [% IF ( mandatoryfax ) %] >+ <label for="fax" class="required"> >+ [% ELSE %] >+ <label for="fax"> >+ [% END %] >+ Fax: >+ </label> >+ <input type="text" id="fax" name="fax" value="[% fax | html %]" /> >+ [% IF ( mandatoryfax ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END # /nofax %] >+ </ol> >+ </fieldset> <!-- /#memberentry_contact --> >+ [% END # /UNLESS nophone && nophonepro... %] >+ >+ <!-- ************************ STEP_1 *********************** --> >+ [% END # /IF step_1 %] >+ >+ [% IF ( step_6 ) %] >+ [% UNLESS noB_address && noB_address2 && noB_city && noB_zipcode && noB_state && noB_country &&nocontactnote && noB_phone && noB_email %] >+ [% SWITCH Koha.Preference( 'AddressFormat' ) %] >+ [% CASE 'de' %] >+ [% INCLUDE 'member-alt-address-style-de.inc' %] >+ [% CASE # us %] >+ [% INCLUDE 'member-alt-address-style-us.inc' %] >+ [% END %] >+ [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %] >+ [% END # /IF step_6 %] >+ >+ [% IF ( step_2 ) %] >+ [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %] > [% SWITCH Koha.Preference( 'AddressFormat' ) %] > [% CASE 'de' %] >- [% INCLUDE 'member-alt-address-style-de.inc' %] >+ [% INCLUDE 'member-alt-contact-style-de.inc' %] > [% CASE # us %] >- [% INCLUDE 'member-alt-address-style-us.inc' %] >+ [% INCLUDE 'member-alt-contact-style-us.inc' %] > [% END %] >- [% END # UNLESS noB_address && noB_city && noB_state && noB_phone && noB_email %] >- [% END %] >+ [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %] >+ [% END # /IF step_2 %] > >- [% IF ( step_2 ) %] >- [% UNLESS noaltcontactsurname && noaltcontactfirstname && noaltcontactaddress1 && noaltcontactaddress2 && noaltcontactaddress3 && noaltcontactstate && noaltcontactzipcode && noaltcontactcountry && noaltcontactphone %] >- [% SWITCH Koha.Preference( 'AddressFormat' ) %] >- [% CASE 'de' %] >- [% INCLUDE 'member-alt-contact-style-de.inc' %] >- [% CASE # us %] >- [% INCLUDE 'member-alt-contact-style-us.inc' %] >- [% END %] >- [% END # UNLESS noaltcontactsurname && noaltcontactfirstname etc %] >- [% END %] >- >- [% IF ( step_3 ) %] >- [% SET autoMemberNum = Koha.Preference('autoMemberNum') %] >- <fieldset class="rows" id="memberentry_library_management"> >- <legend id="library_management_lgd">Library management</legend> >- <ol> >- [% UNLESS nocardnumber %] >- <li> >- [% IF mandatorycardnumber %] >- <label for="cardnumber" class="required"> >- [% ELSE %] >- <label for="cardnumber" class="validated"> >- [% END %] >- Card number: >- </label> >- >- <!-- NOTE: div.hint closing tag isn't on the same line --> >- [% IF minlength_cardnumber == maxlength_cardnumber %] >- <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> >- [% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] >- <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> >- <div class="hint">Card number must be exactly [% minlength_cardnumber | html %] characters.</div> >- [% ELSIF minlength_cardnumber && maxlength_cardnumber %] >- <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> >- [% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] >- <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> >- <div class="hint">Card number must be between [% minlength_cardnumber | html %] and [% maxlength_cardnumber | html %] characters.</div> >- [% ELSIF maxlength_cardnumber %] >- <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> >- [% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] >- <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> >- <div class="hint">Card number can be up to [% maxlength_cardnumber | html %] characters.</div> >- [% ELSE %] >- <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" /> >- [% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] >- <div class="hint">There is no minimum or maximum character length.</div> >- [% END %] >- [% IF autoMemberNum %] >+ [% IF ( step_3 ) %] >+ [% SET autoMemberNum = Koha.Preference('autoMemberNum') %] >+ <fieldset class="rows" id="memberentry_library_management"> >+ <legend id="library_management_lgd">Library management</legend> >+ <ol> >+ [% UNLESS nocardnumber %] >+ <li> > [% IF mandatorycardnumber %] >- <br/><span class="error">AutoMemberNum is set to enabled, but cardnumber is marked as mandatory in BorrowerMandatoryField: auto calc has been disabled.</span> >+ <label for="cardnumber" class="required"> > [% ELSE %] >- <br/>Leave blank for auto calc during registration >+ <label for="cardnumber" class="validated"> > [% END %] >- [% END %] >- </li> >- [% END %] >- >- [% UNLESS nobranchcode %] >- <li> >- <label for="libraries" class="required">Library:</label> >- <select name="branchcode" size="1" id="libraries"> >- [% PROCESS options_for_libraries libraries => Branches.all( selected => userbranch, only_from_group => 1 ) %] >- </select> >- <span class="required">Required</span> >- </li> >- [% END %] >+ Card number: >+ </label> > >- <li> >- <label for="categorycode_entry" class="required">Category: </label> >- <select id="categorycode_entry" name="categorycode" onchange="update_category_code(this);"> >- [% FOREACH typeloo IN typeloop %] >- [% FOREACH categoryloo IN typeloo.categoryloop %] >- [% IF ( loop.first ) %] >- [% IF ( typeloo.typename_C ) %]<optgroup label="Child">[% END %] >- [% IF ( typeloo.typename_A ) %]<optgroup label="Adult">[% END %] >- [% IF ( typeloo.typename_S ) %]<optgroup label="Staff">[% END %] >- [% IF ( typeloo.typename_I ) %]<optgroup label="Organization">[% END %] >- [% IF ( typeloo.typename_P ) %]<optgroup label="Professional">[% END %] >- [% IF ( typeloo.typename_X ) %]<optgroup label="Statistical">[% END %] >- [% END %] >- [% IF ( categoryloo.categorycodeselected ) %] >- <option value="[% categoryloo.categorycode | html %]" selected="selected" data-typename="[% typeloo.typename | html %]">[% categoryloo.categoryname | html %]</option> >+ <!-- NOTE: div.hint closing tag isn't on the same line --> >+ [% IF minlength_cardnumber == maxlength_cardnumber %] >+ <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> >+ [% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] >+ <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> >+ <div class="hint">Card number must be exactly [% minlength_cardnumber | html %] characters.</div> >+ [% ELSIF minlength_cardnumber && maxlength_cardnumber %] >+ <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" minlength="[% minlength_cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> >+ [% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] >+ <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> >+ <div class="hint">Card number must be between [% minlength_cardnumber | html %] and [% maxlength_cardnumber | html %] characters.</div> >+ [% ELSIF maxlength_cardnumber %] >+ <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" maxlength="[% maxlength_cardnumber | html %]" /> >+ [% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] >+ <span id="cn_max" class="required">Card number must not be more than [% maxlength_cardnumber | html %] characters.</span> >+ <div class="hint">Card number can be up to [% maxlength_cardnumber | html %] characters.</div> >+ [% ELSE %] >+ <input type="text" id="cardnumber" name="cardnumber" size="20" value="[% cardnumber | html %]" /> >+ [% IF mandatorycardnumber %]<span class="required">Required</span>[% END %] >+ <div class="hint">There is no minimum or maximum character length.</div> >+ [% END # /IF minlength_cardnumber %] >+ [% IF autoMemberNum %] >+ [% IF mandatorycardnumber %] >+ <br/><span class="error">AutoMemberNum is set to enabled, but cardnumber is marked as mandatory in BorrowerMandatoryField: auto calc has been disabled.</span> > [% ELSE %] >- <option value="[% categoryloo.categorycode | html %]" data-typename="[% typeloo.typename | html %]">[% categoryloo.categoryname | html %]</option> >- [% END %] >- [% IF ( loop.last ) %] >- </optgroup> >+ <br/>Leave blank for auto calc during registration > [% END %] >- [% END %] >- [% END %] >- </select> >- <span class="required">Required</span> >- </li> >- >- [% UNLESS nosort1 %] >- <li> >- [% IF ( mandatorysort1 ) %] >- <label for="sort1" class="required"> >- [% ELSE %] >- <label for="sort1"> >- [% END %] >- Sort 1: >- </label> >- [% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, size = 20 %] >- [% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >- >- [% UNLESS nosort2 %] >- <li> >- [% IF ( mandatorysort2 ) %] >- <label for="sort2" class="required"> >- [% ELSE %] >- <label for="sort2"> >- [% END %] >- Sort 2: >- </label> >- [% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, size = 20 %] >- [% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >+ [% END # /IF mandatorycardnumber %] >+ </li> >+ [% END # /UNLESS nocardnumber %] > >- [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] >- <li> >- <label for="checkprevcheckout">Check for previous checkouts: </label> >- <select name="checkprevcheckout" id="checkprevcheckout"> >- [% IF ( checkprevcheckout == 'yes' ) %] >- <option value="yes" selected="selected">Yes if settings allow it</option> >- <option value="no">No if settings allow it</option> >- <option value="inherit">Inherit from settings</option> >- [% ELSIF ( checkprevcheckout == 'no' ) %] >- <option value="yes">Yes if settings allow it</option> >- <option value="no" selected="selected">No if settings allow it</option> >- <option value="inherit">Inherit from settings</option> >- [% ELSE %] >- <option value="yes">Yes if settings allow it</option> >- <option value="no">No if settings allow it</option> >- <option value="inherit" selected="selected">Inherit from settings</option> >- [% END %] >- </select> >- </li> >- [% END %] >+ [% UNLESS nobranchcode %] >+ <li> >+ <label for="libraries" class="required">Library:</label> >+ <select name="branchcode" size="1" id="libraries"> >+ [% PROCESS options_for_libraries libraries => Branches.all( selected => userbranch, only_from_group => 1 ) %] >+ </select> >+ <span class="required">Required</span> >+ </li> >+ [% END # /UNLESS nobranchcode %] > >- [% IF Koha.Preference('TranslateNotices') %] > <li> >- <label for="lang">Preferred language for notices: </label> >- <select id="lang" name="lang"> >- <option value="default">Default</option> >- [% FOR language IN languages %] >- [% FOR sublanguage IN language.sublanguages_loop %] >- [% IF language.plural %] >- [% IF sublanguage.rfc4646_subtag == lang %] >- <option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> >- [% ELSE %] >- <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> >- [% END %] >+ <label for="categorycode_entry" class="required">Category: </label> >+ <select id="categorycode_entry" name="categorycode" onchange="update_category_code(this);"> >+ [% FOREACH typeloo IN typeloop %] >+ [% FOREACH categoryloo IN typeloo.categoryloop %] >+ [% IF ( loop.first ) %] >+ [% IF ( typeloo.typename_C ) %]<optgroup label="Child">[% END %] >+ [% IF ( typeloo.typename_A ) %]<optgroup label="Adult">[% END %] >+ [% IF ( typeloo.typename_S ) %]<optgroup label="Staff">[% END %] >+ [% IF ( typeloo.typename_I ) %]<optgroup label="Organization">[% END %] >+ [% IF ( typeloo.typename_P ) %]<optgroup label="Professional">[% END %] >+ [% IF ( typeloo.typename_X ) %]<optgroup label="Statistical">[% END %] >+ [% END %] >+ [% IF ( categoryloo.categorycodeselected ) %] >+ <option value="[% categoryloo.categorycode | html %]" selected="selected" data-typename="[% typeloo.typename | html %]">[% categoryloo.categoryname | html %]</option> > [% ELSE %] >- [% IF sublanguage.rfc4646_subtag == lang %] >- <option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> >- [% ELSE %] >- <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> >- [% END %] >+ <option value="[% categoryloo.categorycode | html %]" data-typename="[% typeloo.typename | html %]">[% categoryloo.categoryname | html %]</option> >+ [% END %] >+ [% IF ( loop.last ) %] >+ </optgroup> > [% END %] > [% END %] > [% END %] >- </select> >+ </select> <!-- # /categorycode_entry --> >+ <span class="required">Required</span> > </li> >- [% END %] >- </ol> >- </fieldset> > >- [% UNLESS nodateenrolled && noopacnote && noborrowernotes %] >- <fieldset class="rows" id="memberentry_subscription"> >- <legend id="library_setup_lgd">Library set-up</legend> >- <ol> >- [% UNLESS nodateenrolled %] >+ [% UNLESS nosort1 %] > <li> >- [% IF ( mandatorydateenrolled ) %] >- <label for="from" class="required"> >+ [% IF ( mandatorysort1 ) %] >+ <label for="sort1" class="required"> > [% ELSE %] >- <label for="from"> >+ <label for="sort1"> > [% END %] >- Registration date: >+ Sort 1: > </label> >- [% IF ( dateformat == "metric" ) %] >- <input type="text" id="from" name="dateenrolled" maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled | html %]" class="datepickerfrom" /> >- [% ELSE %] >- <input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% dateenrolled | html %]" class="datepickerfrom" /> >- [% END %] >- [% IF ( mandatorydateenrolled ) %]<span class="required">Required</span>[% END %] >- [% IF ( ERROR_dateenrolled ) %]<span class="required">(Error)</span>[% END %] >- <div class="hint">[% INCLUDE 'date-format.inc' %]</div> >+ [% PROCESS 'av-build-dropbox.inc' name="sort1", category="Bsort1", default=sort1, size = 20 %] >+ [% IF ( mandatorysort1 ) %]<span class="required">Required</span>[% END %] > </li> >- [% END %] >+ [% END # /UNLESS nosort1 %] > >- [% UNLESS nodateexpiry %] >+ [% UNLESS nosort2 %] > <li> >- [% ELSE %] >- <li style="display:none"> >- [% END %] >- >- [% IF ( mandatorydateexpiry ) %] >- <label for="to" class="required"> >- [% ELSE %] >- <label for="to"> >- [% END %] >- Expiry date (leave blank for auto calc): >- </label> >- >- [% IF ( dateformat == "metric" ) %] >- [% UNLESS ( opadd ) %] >- <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" /> >- [% ELSE %] >- <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" /> >- [% END %] >- [% ELSE %] >- [% UNLESS ( opadd ) %] >- <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" /> >+ [% IF ( mandatorysort2 ) %] >+ <label for="sort2" class="required"> > [% ELSE %] >- <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html %]" class="datepickerto" /> >+ <label for="sort2"> > [% END %] >- [% END %] >- [% IF ( mandatorydateexpiry ) %]<span class="required">Required</span>[% END %] >- [% IF ( ERROR_dateexpiry ) %]<span class="required">(Error)</span>[% END %] >- <div class="hint">[% INCLUDE 'date-format.inc' %]</div> >- </li> >+ Sort 2: >+ </label> >+ [% PROCESS 'av-build-dropbox.inc' name="sort2", category="Bsort2", default=sort2, size = 20 %] >+ [% IF ( mandatorysort2 ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END # /UNLESS nosort2 %] > >- [% UNLESS noopacnote %] >+ [% IF ( Koha.Preference('CheckPrevCheckout') == 'softyes' || Koha.Preference('CheckPrevCheckout') == 'softno' ) %] > <li> >- [% IF ( mandatoryopacnote ) %] >- <label for="opacnote" class="required"> >- [% ELSE %] >- <label for="opacnote"> >- [% END %] >- OPAC note: >- </label> >- <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% opacnote | html UNLESS opduplicate %]</textarea> >- <div class="hint">This message appears on this patron's user page in the OPAC</div> >- [% IF ( mandatoryopacnote ) %]<span class="required">Required</span>[% END %] >+ <label for="checkprevcheckout">Check for previous checkouts: </label> >+ <select name="checkprevcheckout" id="checkprevcheckout"> >+ [% IF ( checkprevcheckout == 'yes' ) %] >+ <option value="yes" selected="selected">Yes if settings allow it</option> >+ <option value="no">No if settings allow it</option> >+ <option value="inherit">Inherit from settings</option> >+ [% ELSIF ( checkprevcheckout == 'no' ) %] >+ <option value="yes">Yes if settings allow it</option> >+ <option value="no" selected="selected">No if settings allow it</option> >+ <option value="inherit">Inherit from settings</option> >+ [% ELSE %] >+ <option value="yes">Yes if settings allow it</option> >+ <option value="no">No if settings allow it</option> >+ <option value="inherit" selected="selected">Inherit from settings</option> >+ [% END # /IF checkprevcheckout %] >+ </select> <!-- /#checkprevcheckout --> > </li> >- [% END %] >+ [% END # IF Koha.Preference('CheckPrevCheckout') %] > >- [% UNLESS noborrowernotes %] >+ [% IF Koha.Preference('TranslateNotices') %] > <li> >- [% IF ( mandatoryborrowernotes ) %] >- <label for="borrowernotes" class="required"> >- [% ELSE %] >- <label for="borrowernotes"> >- [% END %] >- Circulation note: >- </label> >- <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrowernotes | html UNLESS opduplicate %]</textarea> >- <div class="hint">This message displays when checking out to this patron</div> >- [% IF ( mandatoryborrowernotes ) %]<span class="required">Required</span>[% END %] >+ <label for="lang">Preferred language for notices: </label> >+ <select id="lang" name="lang"> >+ <option value="default">Default</option> >+ [% FOR language IN languages %] >+ [% FOR sublanguage IN language.sublanguages_loop %] >+ [% IF language.plural %] >+ [% IF sublanguage.rfc4646_subtag == lang %] >+ <option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> >+ [% ELSE %] >+ <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] [% sublanguage.region_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> >+ [% END %] >+ [% ELSE %] >+ [% IF sublanguage.rfc4646_subtag == lang %] >+ <option value="[% sublanguage.rfc4646_subtag | html %]" selected="selected">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> >+ [% ELSE %] >+ <option value="[% sublanguage.rfc4646_subtag | html %]">[% sublanguage.native_description | html %] ([% sublanguage.rfc4646_subtag | html %])</option> >+ [% END %] >+ [% END # /IF language.plural %] >+ [% END # /FOR sublanguage %] >+ [% END # /FOR language %] >+ </select> <!-- /#lang --> > </li> >- [% END %] >+ [% END # /Koha.Preference('TranslateNotices') %] > </ol> >- </fieldset> >- [% END # hide fieldset %] >+ </fieldset> <!-- /#memberentry_library_management --> > >- [% UNLESS nouserid && nopassword %] >- <fieldset class="rows" id="memberentry_userid"> >- <legend id="opac_staff_login_lgd">OPAC/Staff login</legend><ol> >- [% UNLESS nouserid %] >- <li> >- [% IF ( mandatoryuserid ) %] >- <label for="userid" class="required"> >+ [% UNLESS nodateenrolled && noopacnote && noborrowernotes %] >+ <fieldset class="rows" id="memberentry_subscription"> >+ <legend id="library_setup_lgd">Library set-up</legend> >+ <ol> >+ [% UNLESS nodateenrolled %] >+ <li> >+ [% IF ( mandatorydateenrolled ) %] >+ <label for="from" class="required"> >+ [% ELSE %] >+ <label for="from"> >+ [% END %] >+ Registration date: >+ </label> >+ [% IF ( dateformat == "metric" ) %] >+ <input type="text" id="from" name="dateenrolled" maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="[% dateenrolled | html %]" class="datepickerfrom" /> >+ [% ELSE %] >+ <input type="text" id="from" name="dateenrolled" maxlength="10" size="10" value="[% dateenrolled | html %]" class="datepickerfrom" /> >+ [% END %] >+ [% IF ( mandatorydateenrolled ) %]<span class="required">Required</span>[% END %] >+ [% IF ( ERROR_dateenrolled ) %]<span class="required">(Error)</span>[% END %] >+ <div class="hint">[% INCLUDE 'date-format.inc' %]</div> >+ </li> >+ [% END # /UNLESS nodateenrolled %] >+ >+ [% UNLESS nodateexpiry %] >+ <li> > [% ELSE %] >- <label for="userid"> >+ <li style="display:none"> > [% END %] >- Username: >- </label> > >- [% IF ( NoUpdateLogin ) %] >- [% IF ( opduplicate ) %] >- <input type="text" id="userid" name="userid" size="20" disabled="disabled" /> >- [% ELSE %] >- <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid | html %]" /> >- [% END %] >- [% ELSE %] >- [% IF ( opduplicate ) %] >- <input type="text" id="userid" name="userid" size="20" value="" /> >+ [% IF ( mandatorydateexpiry ) %] >+ <label for="to" class="required"> > [% ELSE %] >- <input type="text" id="userid" name="userid" size="20" value="[% userid | html %]" /> >+ <label for="to"> > [% END %] >- [% END %] >- >- [%# Dummy input to avoid Firefox from using userid/password saved for authentication %] >- <input type="text" disabled="disabled" style="display:none" /> >- >- [% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %] >- </li> >- [% END %] >+ Expiry date (leave blank for auto calc): >+ </label> > >- [% UNLESS nopassword %] >- <li> >- [% IF ( mandatorypassword ) %] >- <label for="password" class="required"> >- [% ELSE %] >- <label for="password"> >- [% END %] >- Password: >- </label> >- [% IF ( opadd ) %] >- [% IF ( NoUpdateLogin ) %] >- [% IF ( opduplicate ) %] >- <input type="password" id="password" name="password" size="20" disabled="disabled" /> >+ [% IF ( dateformat == "metric" ) %] >+ [% UNLESS ( opadd ) %] >+ <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" /> > [% ELSE %] >- <input type="password" id="password" name="password" size="20" disabled="disabled" value="[% password | html %]" /> >+ <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" class="datepickerto" /> > [% END %] > [% ELSE %] >- [% IF ( opduplicate ) %] >- <input type="password" id="password" name="password" size="20" /> >- [% ELSE %] >- <input type="password" id="password" name="password" size="20" value="[% password | html %]" /> >- [% END %] >- [% END %] >- [% ELSE %] >- [% IF ( password ) %] >- [% IF ( NoUpdateLogin ) %] >- <input type="password" id="password" name="password" size="20" disabled="disabled" value="****" /> >+ [% UNLESS ( opadd ) %] >+ <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html UNLESS opduplicate %]" class="datepickerto" /> > [% ELSE %] >- [% IF ( opduplicate ) %] >- <input type="password" id="password" name="password" size="20" /> >- [% ELSE %] >- <input type="password" id="password" name="password" size="20" value="****" /> >- [% END %] >+ <input type="text" id="to" name="dateexpiry" maxlength="10" size="10" value="[% dateexpiry | html %]" class="datepickerto" /> > [% END %] >- [% ELSE %] >- [% IF ( NoUpdateLogin ) %] >- <input type="password" id="password" name="password" size="20" disabled="disabled" value="" /> >+ [% END # /IF dateformat metric %] >+ [% IF ( mandatorydateexpiry ) %]<span class="required">Required</span>[% END %] >+ [% IF ( ERROR_dateexpiry ) %]<span class="required">(Error)</span>[% END %] >+ <div class="hint">[% INCLUDE 'date-format.inc' %]</div> >+ </li> >+ >+ [% UNLESS noopacnote %] >+ <li> >+ [% IF ( mandatoryopacnote ) %] >+ <label for="opacnote" class="required"> > [% ELSE %] >- <input type="password" id="password" name="password" size="20" value="" /> >+ <label for="opacnote"> > [% END %] >- [% END %] >- [% END %] >- [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %] >- [% IF ( ERROR_password_too_short ) %]<span class="required">Password is too short</span>[% END %] >- [% IF ( ERROR_password_too_weak ) %]<span class="required">Password is too weak</span>[% END %] >- [% IF ( ERROR_password_has_whitespaces ) %]<span class="required">Password has leading or trailing whitespaces</span>[% END %] >- <div class="hint">Minimum password length: [% minPasswordLength | html %]</div> >- </li> >+ OPAC note: >+ </label> >+ <textarea id="opacnote" name="opacnote" cols="55" rows="5">[% opacnote | html UNLESS opduplicate %]</textarea> >+ <div class="hint">This message appears on this patron's user page in the OPAC</div> >+ [% IF ( mandatoryopacnote ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END # /UNLESS noopacnote %] > >- <li> >- [% IF ( mandatorypassword ) %] >- <label for="password2" class="required"> >- [% ELSE %] >- <label for="password2"> >- [% END %] >- Confirm password: >- </label> >- [% IF ( opadd ) %] >- [% IF ( NoUpdateLogin ) %] >- [% IF ( opduplicate ) %] >- <input type="password" id="password2" name="password2" size="20" disabled="disabled" /> >+ [% UNLESS noborrowernotes %] >+ <li> >+ [% IF ( mandatoryborrowernotes ) %] >+ <label for="borrowernotes" class="required"> > [% ELSE %] >- <input type="password" id="password2" name="password2" size="20" disabled="disabled" value="[% password | html %]" /> >+ <label for="borrowernotes"> > [% END %] >- [% ELSE %] >- [% IF ( opduplicate ) %] >- <input type="password" id="password2" name="password2" size="20" /> >+ Circulation note: >+ </label> >+ <textarea id="borrowernotes" name="borrowernotes" cols="55" rows="5">[% borrowernotes | html UNLESS opduplicate %]</textarea> >+ <div class="hint">This message displays when checking out to this patron</div> >+ [% IF ( mandatoryborrowernotes ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END # /UNLESS noborrowernotes %] >+ </ol> >+ </fieldset> <!-- /#memberentry_subscription --> >+ [% END # /UNLESS nodateenrolled && noopacnote %] >+ >+ [% UNLESS nouserid && nopassword %] >+ <fieldset class="rows" id="memberentry_userid"> >+ <legend id="opac_staff_login_lgd">OPAC/Staff login</legend> >+ <ol> >+ [% UNLESS nouserid %] >+ <li> >+ [% IF ( mandatoryuserid ) %] >+ <label for="userid" class="required"> > [% ELSE %] >- <input type="password" id="password2" name="password2" size="20" value="[% password | html %]" /> >+ <label for="userid"> > [% END %] >- [% END %] >- [% ELSE %] >- [% IF ( password ) %] >+ Username: >+ </label> >+ > [% IF ( NoUpdateLogin ) %] >- <input type="password" id="password2" name="password2" size="20" disabled="disabled" value="****" /> >- [% ELSE %] > [% IF ( opduplicate ) %] >- <input type="password" id="password2" name="password2" size="20" /> >+ <input type="text" id="userid" name="userid" size="20" disabled="disabled" /> > [% ELSE %] >- <input type="password" id="password2" name="password2" size="20" value="****" /> >+ <input type="text" id="userid" name="userid" size="20" disabled="disabled" value="[% userid | html %]" /> > [% END %] >- [% END %] >- [% ELSE %] >- [% IF ( NoUpdateLogin ) %] >- <input type="password" id="password2" name="password2" size="20" disabled="disabled" value="" /> > [% ELSE %] >- <input type="password" id="password2" name="password2" size="20" value="" /> >- [% END %] >- [% END %] >- [% END %] >- [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %] >- [% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %] >- </li> >- </ol> >- </fieldset> >- [% END # hide fieldset %] >- [% END %] >+ [% IF ( opduplicate ) %] >+ <input type="text" id="userid" name="userid" size="20" value="" /> >+ [% ELSE %] >+ <input type="text" id="userid" name="userid" size="20" value="[% userid | html %]" /> >+ [% END %] >+ [% END # /IF NoUpdateLogin %] > >- <!--this zones are not necessary in modif mode --> >- [% UNLESS ( opadd || opduplicate ) %] >- <fieldset class="rows" id="memberentry_account_flags"> >- <legend id="account_flags_lgd">Patron account flags</legend> >- <ol class="radio"> >- [% FOREACH flagloo IN flagloop %] >- <li> >- <label class="radio" for="yes[% flagloo.name | html %]"> >- [% IF ( flagloo.key == 'gonenoaddress' ) %]Gone no address:[% END %] >- [% IF ( flagloo.key == 'lost' ) %]Lost card:[% END %] >- </label> >- [% IF CAN_user_circulate_manage_restrictions %] >- <label for="yes[% flagloo.name | html %]"> >- [% IF ( flagloo.yes ) %] >- <input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" checked="checked" /> >+ [%# Dummy input to avoid Firefox from using userid/password saved for authentication %] >+ <input type="text" disabled="disabled" style="display:none" /> >+ >+ [% IF ( mandatoryuserid ) %]<span class="required">Required</span>[% END %] >+ </li> >+ [% END # /UNLESS nouserid %] >+ >+ [% UNLESS nopassword %] >+ <li> >+ [% IF ( mandatorypassword ) %] >+ <label for="password" class="required"> > [% ELSE %] >- <input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" /> >+ <label for="password"> > [% END %] >- Yes >- </label> >- <label for="no[% flagloo.name | html %]"> >- [% IF ( flagloo.no ) %] >- <input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" checked="checked"/> >+ Password: >+ </label> >+ [% IF ( opadd ) %] >+ [% IF ( NoUpdateLogin ) %] >+ [% IF ( opduplicate ) %] >+ <input type="password" id="password" name="password" size="20" disabled="disabled" /> >+ [% ELSE %] >+ <input type="password" id="password" name="password" size="20" disabled="disabled" value="[% password | html %]" /> >+ [% END %] >+ [% ELSE %] >+ [% IF ( opduplicate ) %] >+ <input type="password" id="password" name="password" size="20" /> >+ [% ELSE %] >+ <input type="password" id="password" name="password" size="20" value="[% password | html %]" /> >+ [% END %] >+ [% END %] > [% ELSE %] >- <input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" /> >- [% END %] >- No >- </label> >- [% ELSE %] >- [% IF flagloo.yes %]Yes[% ELSE %]No[% END %] >- [% END %] >- </li> >- [% END %] >- </ol> >- </fieldset> >- >- <fieldset class="rows" id="memberentry_restrictions"> >- <legend id="restrictions_lgd">Patron restrictions</legend> >- [% IF ( debarments ) %] >- <table> >- <thead> >- <tr> >- <th>Type</th> >- <th>Comment</th> >- <th>Expiration</th> >- <th>Created</th> >- [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] >- <th>Remove?</th> >- [% END %] >- </tr> >- </thead> >- <tbody> >- [% FOREACH d IN debarments %] >- <tr> >- <td>[% d.type | html %]</td> >- <td> >- [% IF d.comment.search('OVERDUES_PROCESS') %] >- Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') | $raw %] >+ [% IF ( password ) %] >+ [% IF ( NoUpdateLogin ) %] >+ <input type="password" id="password" name="password" size="20" disabled="disabled" value="****" /> >+ [% ELSE %] >+ [% IF ( opduplicate ) %] >+ <input type="password" id="password" name="password" size="20" /> >+ [% ELSE %] >+ <input type="password" id="password" name="password" size="20" value="****" /> >+ [% END %] >+ [% END %] > [% ELSE %] >- [% d.comment | $raw %] >+ [% IF ( NoUpdateLogin ) %] >+ <input type="password" id="password" name="password" size="20" disabled="disabled" value="" /> >+ [% ELSE %] >+ <input type="password" id="password" name="password" size="20" value="" /> >+ [% END %] > [% END %] >- </td> >- <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td> >- <td>[% d.created | $KohaDates %]</td> >- [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] >- <td> >- <input type="checkbox" id="debarment_[% d.borrower_debarment_id | html %]" name="remove_debarment" value="[% d.borrower_debarment_id | html %]" /> >- </td> > [% END %] >- </tr> >- [% END %] >- </tbody> >- </table> >- [% ELSE %] >- <p>Patron is currently unrestricted.</p> >- [% END %] >- >- [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] >- <p><a href="#" id="add_manual_restriction">Add manual restriction</a></p> >- <fieldset id="manual_restriction_form"> >- <legend id="manual_restriction_lgd">Add manual restriction</legend> >- <input type="hidden" id="add_debarment" name="add_debarment" value="0" /> >- <ol> >- <li><label for="debarred_comment">Comment: </label><input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" /></li> >- <li><label for="debarred_expiration">Expiration: </label><input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" type="text" /> >- <a href='javascript:void(0)' onclick="$('#debarred_expiration').val('');">Clear date</a></li> >- >- </ol> >- <p> >- <a class="cancel" id="cancel_manual_restriction" href="#">Cancel</a> >- </p> >- </fieldset> >- [% END %] >- </fieldset> >- [% END %] >- [% END %] >+ [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %] >+ [% IF ( ERROR_password_too_short ) %]<span class="required">Password is too short</span>[% END %] >+ [% IF ( ERROR_password_too_weak ) %]<span class="required">Password is too weak</span>[% END %] >+ [% IF ( ERROR_password_has_whitespaces ) %]<span class="required">Password has leading or trailing whitespaces</span>[% END %] >+ <div class="hint">Minimum password length: [% minPasswordLength | html %]</div> >+ </li> > >- [% IF ( step_7 ) %] >- [% IF Koha.Preference('HouseboundModule') %] >- <fieldset class="rows" id="memberentry_housebound_roles"> >- <legend id="housebound_roles">Housebound roles</legend> >- <ol class="radio"> >- <li> >- <label class="radio" for="housebound_chooser">Chooser: </label> >- [% IF ( housebound_role.housebound_chooser == 1 ) %] >- <label for="yes_housebound_chooser">Yes </label> >- <input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" checked="checked" /> >- <label for="no_housebound_chooser">No </label> >- <input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" /> >- [% ELSE %] >- <label for="yes_housebound_chooser">Yes </label> >- <input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" /> >- <label for="no_housebound_chooser">No </label> >- <input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" checked="checked" /> >- [% END %] >- </li> >- <li> >- <label class="radio" for="housebound_deliverer">Deliverer:</label> >- [% IF ( housebound_role.housebound_deliverer == 1 ) %] >- <label for="yes_housebound_deliverer">Yes </label> >- <input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" checked="checked" /> >- <label for="no_housebound_deliverer">No </label> >- <input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" /> >- [% ELSE %] >- <label for="yes_housebound_deliverer">Yes </label> >- <input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" /> >- <label for="no_housebound_deliverer">No </label> >- <input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" checked="checked" /> >- [% END %] >- </li> >- </ol> >- </fieldset> >- [% END # hide fieldset %] >- [% END # IF step_7 %] >- >- [% IF ( step_4 ) %] >- [% IF Koha.Preference('ExtendedPatronAttributes') %] >- [% UNLESS ( no_patron_attribute_types ) %] >- <fieldset class="rows" id="memberentry_patron_attributes"> >- <legend id="patron_attributes_lgd">Additional attributes and identifiers</legend> >- <input type="hidden" name="setting_extended_patron_attributes" value="1" /> >- [% FOREACH pa_loo IN patron_attributes %] >- <ol class="attributes_table"> >- [% IF pa_loo.class %] >- <fieldset id="aai_[% pa_loo.class | html %]"> >- <legend id="[% pa_loo.class | html %]_lgd">[% pa_loo.lib | html %]</legend> >- [% END %] >- [% FOREACH patron_attribute IN pa_loo.items %] >- <li data-category_code="[% patron_attribute.category_code | html %]"> >- <label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label> >- [% IF ( patron_attribute.use_dropdown ) %] >- <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]"> >- <option value=""></option> >- [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %] >- [% IF auth_val_loo.authorised_value == patron_attribute.value %] >- <option value="[% auth_val_loo.authorised_value | html %]" selected="selected"> >- [% auth_val_loo.lib | html %] >- </option> >- [% ELSE %] >- <option value="[% auth_val_loo.authorised_value | html %]" > >- [% auth_val_loo.lib | html %] >- </option> >- [% END %] >- [% END %] >- </select> >+ <li> >+ [% IF ( mandatorypassword ) %] >+ <label for="password2" class="required"> >+ [% ELSE %] >+ <label for="password2"> >+ [% END %] >+ Confirm password: >+ </label> >+ [% IF ( opadd ) %] >+ [% IF ( NoUpdateLogin ) %] >+ [% IF ( opduplicate ) %] >+ <input type="password" id="password2" name="password2" size="20" disabled="disabled" /> >+ [% ELSE %] >+ <input type="password" id="password2" name="password2" size="20" disabled="disabled" value="[% password | html %]" /> >+ [% END %] > [% ELSE %] >- <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea> >+ [% IF ( opduplicate ) %] >+ <input type="password" id="password2" name="password2" size="20" /> >+ [% ELSE %] >+ <input type="password" id="password2" name="password2" size="20" value="[% password | html %]" /> >+ [% END %] > [% END %] >- <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" /> >- <a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a> >- [% IF ( patron_attribute.repeatable ) %] >- <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a> >+ [% ELSE %] >+ [% IF ( password ) %] >+ [% IF ( NoUpdateLogin ) %] >+ <input type="password" id="password2" name="password2" size="20" disabled="disabled" value="****" /> >+ [% ELSE %] >+ [% IF ( opduplicate ) %] >+ <input type="password" id="password2" name="password2" size="20" /> >+ [% ELSE %] >+ <input type="password" id="password2" name="password2" size="20" value="****" /> >+ [% END %] >+ [% END %] >+ [% ELSE %] >+ [% IF ( NoUpdateLogin ) %] >+ <input type="password" id="password2" name="password2" size="20" disabled="disabled" value="" /> >+ [% ELSE %] >+ <input type="password" id="password2" name="password2" size="20" value="" /> >+ [% END %] > [% END %] >+ [% END %] >+ [% IF ( mandatorypassword ) %]<span class="required">Required</span>[% END %] >+ [% IF ( ERROR_password_mismatch ) %]<span class="required">Passwords do not match</span>[% END %] > </li> >- [% END %] >- [% IF pa_loo.class %] >- </fieldset> >- [% END %] >+ [% END # /UNLESS nopassword %] > </ol> >- [% END %] >- </fieldset> >- [% END %] >- [% END %] >- [% END %] >- >- [% IF ( step_5 ) %] >- [% IF ( EnhancedMessagingPreferences ) %] >- <fieldset class="rows" id="memberentry_messaging_prefs"> >- <legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend> >- <div id="messaging_prefs_loading" class="form-message" style="display:none"> >- <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading new messaging defaults >- </div> >- <input type="hidden" name="setting_messaging_prefs" value="1" /> >- [% INCLUDE 'messaging-preference-form.inc' %] >- [% IF ( SMSSendDriver ) %] >- <p> >- <label for="SMSnumber">SMS number:</label> >- <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber | html %]" /> >- <span class="hint">SMS number should be in the format 1234567890 or +11234567890</span> >- </p> >- [% UNLESS nosms_provider_id %] >- <p> >- <label for="sms_provider_id">SMS provider:</label> >- <select id="sms_provider_id" name="sms_provider_id"> >- <option value="">Unknown</option> >- [% FOREACH s IN sms_providers %] >- [% IF s.id == sms_provider_id %] >- <option value="[% s.id | html %]" selected="selected">[% s.name | html %]</option> >+ </fieldset> <!-- /#memberentry_userid --> >+ [% END # /UNLESS nouserid && nopassword %] >+ >+ <!--this zones are not necessary in modif mode --> >+ [% UNLESS ( opadd || opduplicate ) %] >+ <fieldset class="rows" id="memberentry_account_flags"> >+ <legend id="account_flags_lgd">Patron account flags</legend> >+ <ol class="radio"> >+ [% FOREACH flagloo IN flagloop %] >+ <li> >+ <label class="radio" for="yes[% flagloo.name | html %]"> >+ [% IF ( flagloo.key == 'gonenoaddress' ) %]Gone no address:[% END %] >+ [% IF ( flagloo.key == 'lost' ) %]Lost card:[% END %] >+ </label> >+ [% IF CAN_user_circulate_manage_restrictions %] >+ <label for="yes[% flagloo.name | html %]"> >+ [% IF ( flagloo.yes ) %] >+ <input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" checked="checked" /> >+ [% ELSE %] >+ <input type="radio" id="yes[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="1" /> >+ [% END %] >+ Yes >+ </label> >+ <label for="no[% flagloo.name | html %]"> >+ [% IF ( flagloo.no ) %] >+ <input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" checked="checked"/> >+ [% ELSE %] >+ <input type="radio" id="no[% flagloo.name | html %]" name="[% flagloo.name | html %]" value="0" /> >+ [% END %] >+ No >+ </label> > [% ELSE %] >- <option value="[% s.id | html %]">[% s.name | html %]</option> >+ [% IF flagloo.yes %]Yes[% ELSE %]No[% END %] >+ [% END # /IF CAN_user_circulate_manage_restrictions %] >+ </li> >+ [% END # /FOREACH flagloo %] >+ </ol> <!-- /.radio --> >+ </fieldset> <!-- /#memberentry_account_flags --> >+ >+ <fieldset class="rows" id="memberentry_restrictions"> >+ <legend id="restrictions_lgd">Patron restrictions</legend> >+ [% IF ( debarments ) %] >+ <table> >+ <thead> >+ <tr> >+ <th>Type</th> >+ <th>Comment</th> >+ <th>Expiration</th> >+ <th>Created</th> >+ [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] >+ <th>Remove?</th> >+ [% END %] >+ </tr> >+ </thead> >+ <tbody> >+ [% FOREACH d IN debarments %] >+ <tr> >+ <td>[% d.type | html %]</td> >+ <td> >+ [% IF d.comment.search('OVERDUES_PROCESS') %] >+ Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') | $raw %] >+ [% ELSE %] >+ [% d.comment | $raw %] >+ [% END %] >+ </td> >+ <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td> >+ <td>[% d.created | $KohaDates %]</td> >+ [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] >+ <td> >+ <input type="checkbox" id="debarment_[% d.borrower_debarment_id | html %]" name="remove_debarment" value="[% d.borrower_debarment_id | html %]" /> >+ </td> >+ [% END %] >+ </tr> > [% END %] >+ </tbody> >+ </table> >+ [% ELSE %] >+ <p>Patron is currently unrestricted.</p> >+ [% END # /IF debarments %] >+ >+ [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] >+ <p><a href="#" id="add_manual_restriction">Add manual restriction</a></p> >+ <fieldset id="manual_restriction_form"> >+ <legend id="manual_restriction_lgd">Add manual restriction</legend> >+ <input type="hidden" id="add_debarment" name="add_debarment" value="0" /> >+ <ol> >+ <li><label for="debarred_comment">Comment: </label><input type="text" id="debarred_comment" name="debarred_comment" onchange="$('#add_debarment').val(1);" /></li> >+ <li><label for="debarred_expiration">Expiration: </label><input name="debarred_expiration" id="debarred_expiration" size="10" value="" class="datepicker" onchange="$('#add_debarment').val(1);" type="text" /> >+ <a href='javascript:void(0)' onclick="$('#debarred_expiration').val('');">Clear date</a></li> >+ >+ </ol> >+ <p> >+ <a class="cancel" id="cancel_manual_restriction" href="#">Cancel</a> >+ </p> >+ </fieldset> <!-- /#manual_restriction_form --> >+ [% END # /IF CAN_user_borrowers_edit_borrowers %] >+ </fieldset> <!-- /#memberentry_restrictions --> >+ [% END # /UNLESS ( opadd || opduplicate ) %] >+ [% END # /IF step_3 %] >+ >+ [% IF ( step_7 ) %] >+ [% IF Koha.Preference('HouseboundModule') %] >+ <fieldset class="rows" id="memberentry_housebound_roles"> >+ <legend id="housebound_roles">Housebound roles</legend> >+ <ol class="radio"> >+ <li> >+ <label class="radio" for="housebound_chooser">Chooser: </label> >+ [% IF ( housebound_role.housebound_chooser == 1 ) %] >+ <label for="yes_housebound_chooser">Yes </label> >+ <input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" checked="checked" /> >+ <label for="no_housebound_chooser">No </label> >+ <input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" /> >+ [% ELSE %] >+ <label for="yes_housebound_chooser">Yes </label> >+ <input type="radio" id="yes_housebound_chooser" name="housebound_chooser" value="1" /> >+ <label for="no_housebound_chooser">No </label> >+ <input type="radio" id="no_housebound_chooser" name="housebound_chooser" value="0" checked="checked" /> > [% END %] >- </select> >- </p> >- [% END %] >- [% END %] >- </fieldset> >+ </li> >+ <li> >+ <label class="radio" for="housebound_deliverer">Deliverer:</label> >+ [% IF ( housebound_role.housebound_deliverer == 1 ) %] >+ <label for="yes_housebound_deliverer">Yes </label> >+ <input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" checked="checked" /> >+ <label for="no_housebound_deliverer">No </label> >+ <input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" /> >+ [% ELSE %] >+ <label for="yes_housebound_deliverer">Yes </label> >+ <input type="radio" id="yes_housebound_deliverer" name="housebound_deliverer" value="1" /> >+ <label for="no_housebound_deliverer">No </label> >+ <input type="radio" id="no_housebound_deliverer" name="housebound_deliverer" value="0" checked="checked" /> >+ [% END %] >+ </li> >+ </ol> >+ </fieldset> <!-- /#memberentry_housebound_roles --> >+ [% END # /IF Koha.Preference('HouseboundModule') %] >+ [% END # /IF step_7 %] >+ >+ [% IF ( step_4 ) %] >+ [% IF Koha.Preference('ExtendedPatronAttributes') %] >+ [% UNLESS ( no_patron_attribute_types ) %] >+ <fieldset class="rows" id="memberentry_patron_attributes"> >+ <legend id="patron_attributes_lgd">Additional attributes and identifiers</legend> >+ <input type="hidden" name="setting_extended_patron_attributes" value="1" /> >+ [% FOREACH pa_loo IN patron_attributes %] >+ <ol class="attributes_table"> >+ [% IF pa_loo.class %] >+ <fieldset id="aai_[% pa_loo.class | html %]"> >+ <legend id="[% pa_loo.class | html %]_lgd">[% pa_loo.lib | html %]</legend> >+ [% END %] >+ [% FOREACH patron_attribute IN pa_loo.items %] >+ <li data-category_code="[% patron_attribute.category_code | html %]"> >+ <label for="[% patron_attribute.form_id | html %]">[% patron_attribute.description | html %]: </label> >+ [% IF ( patron_attribute.use_dropdown ) %] >+ <select id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]"> >+ <option value=""></option> >+ [% FOREACH auth_val_loo IN patron_attribute.auth_val_loop %] >+ [% IF auth_val_loo.authorised_value == patron_attribute.value %] >+ <option value="[% auth_val_loo.authorised_value | html %]" selected="selected"> >+ [% auth_val_loo.lib | html %] >+ </option> >+ [% ELSE %] >+ <option value="[% auth_val_loo.authorised_value | html %]" > >+ [% auth_val_loo.lib | html %] >+ </option> >+ [% END %] >+ [% END %] >+ </select> >+ [% ELSE %] >+ <textarea rows="2" cols="30" id="[% patron_attribute.form_id | html %]" name="[% patron_attribute.form_id | html %]">[% patron_attribute.value | html %]</textarea> >+ [% END %] >+ <input type="hidden" id="[% patron_attribute.form_id | html %]_code" name="[% patron_attribute.form_id | html %]_code" value="[% patron_attribute.code | html %]" /> >+ <a href="#" onclick="clear_entry(this); return false;"><i class="fa fa-fw fa-trash"></i> Clear</a> >+ [% IF ( patron_attribute.repeatable ) %] >+ <a href="#" onclick="clone_entry(this); return false;"><i class="fa fa-fw fa-plus"></i> New</a> >+ [% END %] >+ </li> >+ [% END # /FOREACH patron_attribute %] >+ [% IF pa_loo.class %] >+ </fieldset> >+ [% END %] >+ </ol> <!-- /.attributes_table --> >+ [% END # /FOREACH pa_loo %] >+ </fieldset> <!-- /#memberentry_patron_attributes --> >+ [% END # /UNLESS no_patron_attribute_types %] >+ [% END # /IF Koha.Preference('ExtendedPatronAttributes') %] >+ [% END # /IF step_4 %] >+ >+ [% IF ( step_5 ) %] >+ [% IF ( EnhancedMessagingPreferences ) %] >+ <fieldset class="rows" id="memberentry_messaging_prefs"> >+ <legend id="patron_messaging_prefs_lgd">Patron messaging preferences</legend> >+ <div id="messaging_prefs_loading" class="form-message" style="display:none"> >+ <img src="[% interface | html %]/[% theme | html %]/img/spinner-small.gif" alt="" /> Loading new messaging defaults >+ </div> >+ <input type="hidden" name="setting_messaging_prefs" value="1" /> >+ [% INCLUDE 'messaging-preference-form.inc' %] >+ [% IF ( SMSSendDriver ) %] >+ <p> >+ <label for="SMSnumber">SMS number:</label> >+ <input type="text" id="SMSnumber" name="SMSnumber" value="[% SMSnumber | html %]" /> >+ <span class="hint">SMS number should be in the format 1234567890 or +11234567890</span> >+ </p> >+ [% UNLESS nosms_provider_id %] >+ <p> >+ <label for="sms_provider_id">SMS provider:</label> >+ <select id="sms_provider_id" name="sms_provider_id"> >+ <option value="">Unknown</option> >+ [% FOREACH s IN sms_providers %] >+ [% IF s.id == sms_provider_id %] >+ <option value="[% s.id | html %]" selected="selected">[% s.name | html %]</option> >+ [% ELSE %] >+ <option value="[% s.id | html %]">[% s.name | html %]</option> >+ [% END %] >+ [% END %] >+ </select> >+ </p> >+ [% END # /IF nosms_provider_id %] >+ [% END # /IF SMSSendDriver %] >+ </fieldset> <!-- /#memberentry_messaging_prefs --> >+ [% END # /IF EnhancedMessagingPreferences %] >+ [% END # /IF step_5 %] >+ </form> <!-- /#entryform --> >+ >+ [% IF quickadd && opadd && !check_member %] >+ <form id="quick_add_form" class="toggler"> >+ <fieldset class="rows quick_add"><legend>Quick add</legend> >+ <ol id="quick_add_list"> >+ </ol> >+ </fieldset> >+ </form> > [% END %] >- [% END %] >- </form> >- >- [% IF quickadd && opadd && !check_member %] >- <form id="quick_add_form" class="toggler"> >- <fieldset class="rows quick_add"><legend>Quick add</legend> >- <ol id="quick_add_list"> >- </ol> >- </fieldset> >- </form> >- [% END %] > >+ [% END # /UNLESS no_add %] >+ </main> >+ </div> <!-- /.col-sm-10.col-sm-push-2 --> >+ >+ [% UNLESS ( opadd ) %] >+ <div class="col-sm-2 col-sm-pull-10"> >+ <aside> >+ [% INCLUDE 'circ-menu.inc' %] >+ </aside> >+ </div> <!-- /.col-sm-2.col-sm-pull-10 --> > [% END %] >- </main> >- </div> <!-- /.col-sm-10.col-sm-push-2 --> >- >- [% UNLESS ( opadd ) %] >- <div class="col-sm-2 col-sm-pull-10"> >- <aside> >- [% INCLUDE 'circ-menu.inc' %] >- </aside> >- </div> <!-- /.col-sm-2.col-sm-pull-10 --> >- [% END %] >- </div> <!-- /.row --> >+ </div> <!-- /.row --> > > [% MACRO jsinclude BLOCK %] > [% Asset.js("lib/hc-sticky.js") | $raw %] >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23533
:
92581
|
92582
|
92660
|
92661
|
92913
|
96170
|
96171
|
96172
|
98189
|
98190
|
98359
|
98360
|
98409