"Fossies" - the Fresh Open Source Software Archive

Member "koha-19.11.15/koha-tmpl/intranet-tmpl/prog/en/modules/members/members-update.tt" (23 Feb 2021, 12050 Bytes) of package /linux/misc/koha-19.11.15.tar.gz:


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 [% USE raw %]
    2 [% USE Asset %]
    3 [% USE AuthorisedValues %]
    4 [% USE Branches %]
    5 [% USE Categories %]
    6 [% USE KohaDates %]
    7 [% SET footerjs = 1 %]
    8 [% INCLUDE 'doc-head-open.inc' %]
    9 <title>Koha &rsaquo; Patrons &rsaquo; Update patron records</title>
   10 [% INCLUDE 'doc-head-close.inc' %]
   11 </head>
   12 
   13 <body id="pat_update" class="pat">
   14 [% INCLUDE 'header.inc' %]
   15 [% INCLUDE 'patron-search.inc' %]
   16 
   17 [% BLOCK display_names %]
   18 [% SWITCH field %]
   19 [% CASE 'branchcode'          %]<span>Home library (branchcode)</span>
   20 [% CASE 'surname'             %]<span>Surname</span>
   21 [% CASE 'firstname'           %]<span>First name</span>
   22 [% CASE 'title'               %]<span>Title</span>
   23 [% CASE 'othernames'          %]<span>Other names</span>
   24 [% CASE 'initials'            %]<span>Initials</span>
   25 [% CASE 'streetnumber'        %]<span>Street number</span>
   26 [% CASE 'streettype'          %]<span>Street type</span>
   27 [% CASE 'address'             %]<span>Address</span>
   28 [% CASE 'address2'            %]<span>Address 2</span>
   29 [% CASE 'city'                %]<span>City</span>
   30 [% CASE 'state'               %]<span>State</span>
   31 [% CASE 'zipcode'             %]<span>ZIP/Postal code</span>
   32 [% CASE 'country'             %]<span>Country</span>
   33 [% CASE 'email'               %]<span>Email</span>
   34 [% CASE 'phone'               %]<span>Primary phone</span>
   35 [% CASE 'mobile'              %]<span>Other phone</span>
   36 [% CASE 'fax'                 %]<span>Fax</span>
   37 [% CASE 'emailpro'            %]<span>Secondary email</span>
   38 [% CASE 'phonepro'            %]<span>Secondary phone</span>
   39 [% CASE 'B_streetnumber'      %]<span>Alternate address: Street number</span>
   40 [% CASE 'B_streettype'        %]<span>Alternate address: Street type</span>
   41 [% CASE 'B_address'           %]<span>Alternate address: Address</span>
   42 [% CASE 'B_address2'          %]<span>Alternate address: Address 2</span>
   43 [% CASE 'B_city'              %]<span>Alternate address: City</span>
   44 [% CASE 'B_state'             %]<span>Alternate address: State</span>
   45 [% CASE 'B_zipcode'           %]<span>Alternate address: ZIP/Postal code</span>
   46 [% CASE 'B_email'             %]<span>Alternate address: Email</span>
   47 [% CASE 'B_phone'             %]<span>Alternate address: Phone</span>
   48 [% CASE 'contactnote'         %]<span>Alternate address: Contact note</span>
   49 [% CASE 'dateofbirth'         %]<span>Date of birth</span>
   50 [% CASE 'contactname'         %]<span>Contact: Last name</span>
   51 [% CASE 'contactfirstname'    %]<span>Contact: First name</span>
   52 [% CASE 'contacttitle'        %]<span>Contact: Title</span>
   53 [% CASE 'relationship'        %]<span>Contact: Relationship</span>
   54 [% CASE 'sex'                 %]<span>Gender</span>
   55 [% CASE 'altcontactfirstname' %]<span>Alternate contact: First name</span>
   56 [% CASE 'altcontactsurname'   %]<span>Alternate contact: Surname</span>
   57 [% CASE 'altcontactaddress1'  %]<span>Alternate contact: Address</span>
   58 [% CASE 'altcontactaddress2'  %]<span>Alternate contact: Address 2</span>
   59 [% CASE 'altcontactaddress3'  %]<span>Alternate contact: City</span>
   60 [% CASE 'altcontactstate'     %]<span>Alternate contact: State</span>
   61 [% CASE 'altcontactzipcode'   %]<span>Alternate contact: ZIP/Postal code</span>
   62 [% CASE 'altcontactcountry'   %]<span>Alternate contact: Country</span>
   63 [% CASE 'altcontactphone'     %]<span>Alternate contact: Phone</span>
   64 [% CASE 'smsalertnumber'      %]<span>SMS alert number</span>
   65 [% CASE 'extended_attributes' %]<span>Additional attributes and identifiers</span>
   66 [% CASE %][% field | html %]
   67 [% END %]
   68 [% END %]
   69 
   70 [% BLOCK display_extended_attributes %]
   71     [% IF attrs and attrs.size > 1 %]
   72       <ul>
   73         [% FOREACH attr IN attrs %]
   74             <li>[% PROCESS display_attribute attr=attr type=type %]</li>
   75         [% END %]
   76       <ul>
   77     [% ELSIF attrs %]
   78         [% PROCESS display_attribute attr=attrs.0 type=type %]
   79     [% END %]
   80 [% END %]
   81 
   82 [% BLOCK display_attribute %]
   83     [% IF type.authorised_value_category %]
   84         [% AuthorisedValues.GetByCode(type.authorised_value_category,attr.attribute) | html %]
   85     [% ELSE %]
   86         [% attr.attribute | html %]
   87     [% END %]
   88 [% END %]
   89 
   90 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/members/members-home.pl">Patrons</a> &rsaquo; Update patron records</div>
   91 
   92 <div class="main container-fluid">
   93     <div class="row">
   94         <div class="col-md-8 col-md-offset-2">
   95 
   96             [% IF PendingModifications %]
   97             <h2>Update patron records</h2>
   98                 <form method="post" action="members-update-do.pl">
   99                     <div id="pending_updates">
  100                             [% FOREACH pm IN PendingModifications %]
  101                                 [% SET borrowernumber = pm.borrowernumber %]
  102                                 <h3><a href="#panel_modify_[% pm.borrowernumber | uri %]">[% borrowers.$borrowernumber.surname | html %][% IF ( borrowers.$borrowernumber.firstname ) %], [% borrowers.$borrowernumber.firstname | html %][% END %] - [% Categories.GetName( borrowers.$borrowernumber.categorycode ) | html %] ([% Branches.GetName( borrowers.$borrowernumber.branchcode ) | html %]) ([% borrowers.$borrowernumber.cardnumber | html %]) - Requested on [% pm.timestamp | $KohaDates with_hours = 1 %]</a></h3>
  103                                 <div id="panel_modify_[% pm.borrowernumber | html %]">
  104                                     <div style="background-color:#E6F0F2;padding:.5em;margin:.3em 0;">
  105                                         <input type="radio" id="approve_modify_[% pm.borrowernumber | html %]" name="modify_[% pm.borrowernumber | html %]" value="approve" />
  106                                         <label for="approve_modify_[% pm.borrowernumber | html %]">Approve</label>
  107 
  108                                         <input type="radio" id="deny_modify_[% pm.borrowernumber | html %]" name="modify_[% pm.borrowernumber | html %]" value="deny" />
  109                                         <label for="deny_modify_[% pm.borrowernumber | html %]">Deny</label>
  110 
  111                                         <input type="radio" id="ignore_modify_[% pm.borrowernumber | html %]" name="modify_[% pm.borrowernumber | html %]" value="ignore" checked="checked"/>
  112                                         <label for="ignore_modify_[% pm.borrowernumber | html %]">Ignore</label>
  113                                         | <a target="_blank" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% pm.borrowernumber | html %]" >Patron details</a>
  114                                     </div>
  115                                   [% IF !pm.extended_attributes and pm.size > 3 or pm.extended_attributes and pm.size > 4 %]
  116                                   [%# timestamp+verification_token+borrowernumber=3 %]
  117                                     <div class="members-update-table">
  118                                         <table>
  119                                             <tr>
  120                                                 <th>Field</th>
  121                                                 <th>Old value</th>
  122                                                 <th>New value</th>
  123                                             </tr>
  124 
  125 
  126                                             [% FOREACH key IN pm.keys %]
  127                                                 [% IF ( key != "timestamp" and key != "extended_attributes" ) %]
  128                                                     [% IF ( ( pm.$key OR borrowers.$borrowernumber.$key ) && ( pm.$key != borrowers.$borrowernumber.$key ) ) %]
  129                                                         <tr>
  130                                                             <td>[% PROCESS display_names field = key %]</td>
  131                                                             [% IF ( key == "dateofbirth" ) %]
  132                                                                 <td>[% borrowers.$borrowernumber.$key | $KohaDates %]</td>
  133                                                                 <td>[% pm.$key | $KohaDates %]</td>
  134                                                             [% ELSIF key == 'branchcode' %]
  135                                                                 <td>[% Branches.GetName( borrowers.$borrowernumber.$key ) | html %]</td>
  136                                                                 <td>[% Branches.GetName( pm.$key ) | html %]</td>
  137                                                             [% ELSE %]
  138                                                                 <td>[% borrowers.$borrowernumber.$key | html %]</td>
  139                                                                 <td>[% pm.$key | html %]</td>
  140                                                             [% END %]
  141                                                         </tr>
  142                                                     [% END %]
  143                                                 [% END %]
  144                                             [% END %]
  145                                         </table>
  146                                     </div>
  147                                   [%  END %]
  148                                   [% IF borrowers.$borrowernumber.modified_attributes %]
  149                                     <div class="members-update-table">
  150                                         <h4>[% PROCESS display_names field='extended_attributes' %]</h4>
  151                                         <table>
  152                                             <tr>
  153                                                 <th>Field</th>
  154                                                 <th>Old value</th>
  155                                                 <th>New value</th>
  156                                             </tr>
  157                                           [% FOREACH attribute_group IN borrowers.$borrowernumber.modified_attributes %]
  158                                             <tr>
  159                                                 <td>[% attribute_group.type.description | html %]</td>
  160                                                 <td>[% PROCESS display_extended_attributes attrs=attribute_group.before type=attribute_group.type %]</td>
  161                                                 <td>[% PROCESS display_extended_attributes attrs=attribute_group.after type=attribute_group.type %]</td>
  162                                             </tr>
  163                                           [% END %]
  164                                         </table>
  165                                     </div>
  166                                   [%  END %]
  167                                   [% IF borrowers.$borrowernumber.gonenoaddress > 0 %]
  168                                     <div class="dialog message" style="margin-top:.8em">
  169                                         <h4>Patron's address in doubt</h4>
  170                                         <p>The <strong>Gone no address</strong> flag is set for this patron. If this modification request resolves the issue, please unset the flag.</p>
  171                                         <input type="checkbox" id="unset_gna_[% pm.borrowernumber | html %]" name="unset_gna_[% pm.borrowernumber | html %]" value="unset_gna_[% pm.borrowernumber | html %]"/>
  172                                         <label for="unset_gna_[% pm.borrowernumber | html %]">Unset Gone no address for this patron</label>
  173                                     </div>
  174                                   [% END %]
  175                                 </div>
  176                             [% END %]
  177                         </div>
  178                     <fieldset class="action"><input type="submit" value="Submit" /></fieldset>
  179 
  180                 </form>
  181             [% ELSE %]
  182             <div class="dialog message">
  183                 <p>There are no pending patron modifications.</p>
  184             </div>
  185             [% END %]
  186 
  187         </div>
  188     </div>
  189 
  190 [% MACRO jsinclude BLOCK %]
  191     [% INCLUDE 'str/members-menu.inc' %]
  192     [% Asset.js("js/members-menu.js") | $raw %]
  193     <script type="text/javascript">
  194         $(function() {
  195             $( "#pending_updates" ).accordion();
  196         });
  197     </script>
  198 [% END %]
  199 
  200 [% INCLUDE 'intranet-bottom.inc' %]