View | Details | Raw Unified | Return to bug 20779
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-173 / +220 lines)
Lines 13-18 Link Here
13
</title>
13
</title>
14
[% INCLUDE 'doc-head-close.inc' %]
14
[% INCLUDE 'doc-head-close.inc' %]
15
[% Asset.css("css/datatables.css") %]
15
[% Asset.css("css/datatables.css") %]
16
<style>
17
    input[type="file"] { display: inline-block; }
18
    .patroninfo-section { padding: .5em; margin: .5em; }
19
    .patroninfo-section .action { background-color: rgba(237, 244, 246, .4); text-align: right; }
20
</style>
16
</head>
21
</head>
17
22
18
<body id="pat_moremember" class="pat">
23
<body id="pat_moremember" class="pat">
Lines 136-142 Link Here
136
                        </h3>
141
                        </h3>
137
                        <div class="yui-u first">
142
                        <div class="yui-u first">
138
143
139
                            <div id="patron-information" style="padding : .5em;">
144
                            <div id="patron-information" class="patroninfo-section">
140
                                [% IF ( patron.othernames ) %]&ldquo;[% patron.othernames | html %]&rdquo;[% END %]
145
                                [% IF ( patron.othernames ) %]&ldquo;[% patron.othernames | html %]&rdquo;[% END %]
141
146
142
                                <div class="address">
147
                                <div class="address">
Lines 232-345 Link Here
232
                                </div> [% # /div.rows %]
237
                                </div> [% # /div.rows %]
233
                                <div class="action">
238
                                <div class="action">
234
                                    [% IF ( guarantor.borrowernumber ) %]
239
                                    [% IF ( guarantor.borrowernumber ) %]
235
                                        <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=1&amp;guarantorid=[% guarantor.borrowernumber %]">Edit</a>
240
                                        <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=1&amp;guarantorid=[% guarantor.borrowernumber %]"><i class="fa fa-pencil"></i> Edit</a>
236
                                    [% ELSE %]
241
                                    [% ELSE %]
237
                                        <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=1">Edit</a>
242
                                        <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=1"><i class="fa fa-pencil"></i> Edit</a>
238
                                    [% END %]
243
                                    [% END %]
239
                                </div>
244
                                </div>
240
241
                            </div> [% # /div#patron-information %]
245
                            </div> [% # /div#patron-information %]
242
246
243
                            [% IF ( patronimages ) %]
247
                            [% IF ( patronimages ) %]
244
                                [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
248
                                [% IF ( CAN_user_tools_batch_upload_patron_images ) %]
245
                                    <div id="manage-patron-image">
249
                                    <div id="manage-patron-image" class="patroninfo-section">
246
                                        <form method="post" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
250
                                        [% IF ( patron.image ) %]
247
                                            <fieldset class="brief">
251
                                            <h3 class="inline">Manage patron image</h3>
248
                                                [% IF ( patron.image ) %]
252
                                            <a class="btn btn-default btn-xs" id="show-picture-upload" href="#"><i class="fa fa-pencil"></i> Edit</a>
249
                                                    <legend>Manage patron image</legend>
253
                                        [% ELSE %]
250
                                                    <div class="hint">To update the image for [% patron.title | html %] [% patron.surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.
254
                                            <h3 class="inline">Upload patron image</h3>
251
                                                [% ELSE %]
255
                                            <a class="btn btn-default btn-xs" id="show-picture-upload" href="#"><i class="fa fa-plus"></i> Add</a>
252
                                                    <legend>Upload patron image</legend>
256
                                        [% END %]
253
                                                    <div class="hint">[% patron.title %] [% patron.firstname | html %] [% patron.surname | html %] does not currently have an image available. To import an image for [% patron.title %] [% patron.surname | html %], enter the name of an image file to upload.
257
                                        <form method="post" id="picture-upload" style="display:none;" action="/cgi-bin/koha/tools/picture-upload.pl" enctype="multipart/form-data">
254
                                                [% END %]
258
                                            [% IF ( patron.image ) %]
255
                                                <br />Only PNG, GIF, JPEG, XPM formats are supported.
259
                                                <div class="hint">To update the image for [% patron.title | html %] [% patron.surname | html %], select a new image file and click 'Upload.' <br />Click the 'Delete' button to remove the current image.</div>
256
                                                </div>
260
                                            [% ELSE %]
261
                                                <div class="hint">[% patron.title %] [% patron.firstname | html %] [% patron.surname | html %] does not currently have an image available. To import an image for [% patron.title %] [% patron.surname | html %], enter the name of an image file to upload.</div>
262
                                            [% END %]
263
                                            <p>Only PNG, GIF, JPEG, XPM formats are supported.</p>
264
                                            <label for="uploadfile">Select the file to upload: </label>
265
                                            <input type="file" id="uploadfile" name="uploadfile" required="required" />
266
                                            <div class="action">
267
                                                <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
257
                                                <input type="hidden" id="image" name="filetype" value="image" />
268
                                                <input type="hidden" id="image" name="filetype" value="image" />
258
                                                <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" />
269
                                                <input type="hidden" id="cardnumber" name="cardnumber" value="[% patron.cardnumber | html %]" />
259
                                                <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
270
                                                <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber %]" />
260
                                                <ol>
271
                                                <button type="submit" class="btn btn-default btn-xs"><i class="fa fa-upload"></i> Upload</button>
261
                                                    <li>
272
                                                <input name="op" type="hidden" value="Upload" />
262
                                                       <label for="uploadfile">Select the file to upload: </label>
273
                                                [% IF ( patron.image ) %]
263
                                                       <input type="file" id="uploadfile" name="uploadfile" />
274
                                                    <a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&amp;borrowernumber=[% patron.borrowernumber %]&amp;csrf_token=[% csrf_token %]" class="btn btn-default btn-xs delete"><i class="fa fa-trash"></i> Delete</a>
264
                                                    </li>
275
                                                [% END %]
265
                                                </ol>
276
                                                <a href="#" id="cancel-picture-upload" class="cancel">Cancel</a>
266
                                                <fieldset class="action">
277
                                            </div>
267
                                                    <input type="hidden" name="csrf_token" value="[% csrf_token %]" />
268
                                                    <input type="submit" value="Upload" class="submit" />
269
                                                    <input name="op" type="hidden" value="Upload" />
270
                                                    [% IF ( patron.image ) %]
271
                                                        <a id="delpicture" href="/cgi-bin/koha/tools/picture-upload.pl?op=Delete&amp;borrowernumber=[% patron.borrowernumber %]&amp;csrf_token=[% csrf_token %]" class="delete">Delete</a>
272
                                                    [% END %]
273
                                                </fieldset>
274
                                            </fieldset>
275
                                        </form>
278
                                        </form>
276
                                    </div> [% # /div#manage-patron-image %]
279
                                    </div> [% # /div#manage-patron-image %]
277
                                [% END %]
280
                                [% END %]
278
                            [% END %]
281
                            [% END %]
279
282
280
                            [% IF Koha.Preference('HouseboundModule') %]
283
                            [% IF Koha.Preference('HouseboundModule') %]
281
                                <div id="houseboundroles">
284
                                <div id="houseboundroles" class="patroninfo-section">
282
                                    <h3>Housebound roles</h3>
285
                                    [% IF ( housebound_role.housebound_chooser == 1 OR housebound_role.housebound_deliverer == 1 ) %]
283
                                    <div class="rows">
286
                                        <h3>Housebound roles</h3>
284
                                        <ol>
287
                                        <div class="rows">
285
                                            <li>
288
                                            <ol>
286
                                                <span class="label">Chooser:</span>
289
                                                <li>
287
                                                [% IF ( housebound_role.housebound_chooser == 1 ) %]
290
                                                    <span class="label">Chooser:</span>
288
                                                    Yes
291
                                                    [% IF ( housebound_role.housebound_chooser == 1 ) %]
289
                                                [% ELSE %]
292
                                                        Yes
290
                                                    No
293
                                                    [% ELSE %]
291
                                                [% END %]
294
                                                        No
292
                                            </li>
295
                                                    [% END %]
293
                                            <li>
296
                                                </li>
294
                                                <span class="label">Deliverer:</span>
297
                                                <li>
295
                                                [% IF ( housebound_role.housebound_deliverer == 1 ) %]
298
                                                    <span class="label">Deliverer:</span>
296
                                                    Yes
299
                                                    [% IF ( housebound_role.housebound_deliverer == 1 ) %]
297
                                                [% ELSE %]
300
                                                        Yes
298
                                                    No
301
                                                    [% ELSE %]
299
                                                [% END %]
302
                                                        No
300
                                            </li>
303
                                                    [% END %]
301
                                        </ol>
304
                                                </li>
305
                                            </ol>
306
                                        </div>
307
                                    <div class="action">
308
                                        <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=4"><i class="fa fa-pencil"></i> Edit</a>
302
                                    </div>
309
                                    </div>
303
                                </div>
310
                                    [% ELSE %]
304
                                <div class="action">
311
                                        <h3 class="inline">Housebound roles</h3>
305
                                    <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=4">Edit</a>
312
                                        <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=4"><i class="fa fa-plus"></i> Add</a>
306
                                </div>
313
                                    [% END %]
314
                                </div> [% #/ div#houseboundroles %]
307
                            [% END %]
315
                            [% END %]
308
316
309
                            [% IF ( ExtendedPatronAttributes ) %]
317
                            [% IF ( ExtendedPatronAttributes ) %]
310
                                [% UNLESS ( no_patron_attribute_types ) %]
318
                                [% UNLESS ( no_patron_attribute_types ) %]
311
                                    <div id="patron-extended-attributes" style="padding-top: 1em;">
319
                                    <div id="patron-extended-attributes" class="patroninfo-section">
312
                                        <h3>Additional attributes and identifiers</h3>
320
                                        [% IF ( attributes_loop ) %]
313
                                        [% FOREACH attribute IN attributes_loop %]
321
                                            <h3>Additional attributes and identifiers</h3>
314
                                            [% IF attribute.class %]
322
                                            [% FOREACH attribute IN attributes_loop %]
315
                                                <div id="aai_[% attribute.class %]" class="rows">
323
                                                [% IF attribute.class %]
316
                                            [% ELSE %]
324
                                                    <div id="aai_[% attribute.class %]" class="rows">
317
                                                <div id="aai" class="rows">
325
                                                [% ELSE %]
326
                                                    <div id="aai" class="rows">
327
                                                [% END %]
328
                                                    <h4>[% attribute.lib %]</h4>
329
                                                    <ol>
330
                                                        [% FOREACH item IN attribute.items %]
331
                                                            <li>
332
                                                                <span class="label">[% item.description %]: </span>
333
                                                                [% IF ( item.value_description ) %]
334
                                                                    [% item.value_description %]
335
                                                                [% ELSE %]
336
                                                                    [% item.value| html_line_break %]
337
                                                                [% END %]
338
                                                            </li>
339
                                                        [% END %]
340
                                                    </ol>
341
                                                </div>
318
                                            [% END %]
342
                                            [% END %]
319
                                                <h4>[% attribute.lib %]</h4>
343
                                            <div class="action">
320
                                                <ol>
344
                                                <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=4"><i class="fa fa-pencil"></i> Edit</a>
321
                                                    [% FOREACH item IN attribute.items %]
322
                                                        <li>
323
                                                            <span class="label">[% item.description %]: </span>
324
                                                            [% IF ( item.value_description ) %]
325
                                                                [% item.value_description %]
326
                                                            [% ELSE %]
327
                                                                [% item.value| html_line_break %]
328
                                                            [% END %]
329
                                                        </li>
330
                                                    [% END %]
331
                                                </ol>
332
                                            </div>
345
                                            </div>
346
                                        [% ELSE %]
347
                                            <h3 class="inline">Additional attributes and identifiers</h3>
348
                                            <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=4"><i class="fa fa-plus"></i> Add</a>
333
                                        [% END %]
349
                                        [% END %]
334
                                    </div>
350
                                    </div> [% # /div#patron-extended-attributes %]
335
                                    <div class="action">
336
                                        <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=4">Edit</a>
337
                                    </div>
338
                                [% END %]
351
                                [% END %]
339
                            [% END %]
352
                            [% END %]
340
353
341
                            [% IF ( EnhancedMessagingPreferences ) %]
354
                            [% IF ( EnhancedMessagingPreferences ) %]
342
                                <div id="patron-messaging-prefs" style="padding-top: 1em;">
355
                                <div id="patron-messaging-prefs" class="patroninfo-section">
343
                                    <h3>Patron messaging preferences</h3>
356
                                    <h3>Patron messaging preferences</h3>
344
                                    [% INCLUDE 'messaging-preference-form.inc' %]
357
                                    [% INCLUDE 'messaging-preference-form.inc' %]
345
                                    [% IF ( SMSSendDriver ) %]
358
                                    [% IF ( SMSSendDriver ) %]
Lines 352-367 Link Here
352
                                            </ol>
365
                                            </ol>
353
                                        </div>
366
                                        </div>
354
                                    [% END %]
367
                                    [% END %]
355
                                </div>
368
                                    <div class="action">
356
                                <div class="action">
369
                                        <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=5"><i class="fa fa-pencil"></i> Edit</a>
357
                                    <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=5">Edit</a>
370
                                    </div>
358
                                </div>
371
                                </div> [% # /div#patron-messaging-prefs %]
359
                            [% END %]
372
                            [% END %]
360
373
361
                        </div> [% # /div.yui-u.first %]
374
                        </div> [% # /div.yui-u.first %]
362
375
363
                        <div class="yui-u">
376
                        <div class="yui-u">
364
                            <div id="patron-library-details">
377
                            <div id="patron-library-details" class="patroninfo-section">
365
                                <h3>Library use</h3>
378
                                <h3>Library use</h3>
366
                                <div class="rows">
379
                                <div class="rows">
367
                                    <ol>
380
                                    <ol>
Lines 499-599 Link Here
499
                                        [% END %]
512
                                        [% END %]
500
                                    </ol>
513
                                    </ol>
501
                                </div> [% # /div.rows %]
514
                                </div> [% # /div.rows %]
515
                                <div class="action">
516
                                    <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=3"><i class="fa fa-pencil"></i> Edit</a>
517
                                </div>
502
                            </div> [% # /div#patron-library-details %]
518
                            </div> [% # /div#patron-library-details %]
503
                            <div class="action">
504
                                <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=3">Edit</a>
505
                            </div>
506
519
507
                            <div id="patron-alternate-address" style="padding-top: 1em;">
520
                            <div id="patron-alternate-address" class="patroninfo-section">
508
                                <h3>Alternate address</h3>
521
                                [% IF ( patron.B_phone || patron.B_email || patron.contactnote || patron.B_address || patron.B_address2 || patron.B_city || patron.B_zipcode || patron.B_country ) %]
522
                                    <h3>Alternate address</h3>
509
523
510
                                [% IF Koha.Preference( 'AddressFormat' ) %]
524
                                    [% IF Koha.Preference( 'AddressFormat' ) %]
511
                                    [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
525
                                        [% INCLUDE "member-display-alt-address-style-${ Koha.Preference( 'AddressFormat' ) }.inc" %]
526
                                    [% ELSE %]
527
                                        [% INCLUDE 'member-display-alt-address-style-us.inc' %]
528
                                    [% END %]
529
530
                                    <div class="rows">
531
                                        <ol>
532
                                            [% IF ( patron.B_phone ) %]
533
                                                <li>
534
                                                    <span class="label">Phone: </span>
535
                                                    <a href="tel:[% patron.B_phone %]">[% patron.B_phone |html  %]</a>
536
                                                </li>
537
                                            [% END %]
538
539
                                            [% IF ( patron.B_email ) %]
540
                                                <li class="email">
541
                                                    <span class="label">Email: </span>
542
                                                    <a title="[% patron.B_email %]" href="mailto:[% patron.B_email | url %]">[% B_email |html %]</a>
543
                                                </li>
544
                                            [% END %]
545
546
                                            [% IF ( patron.contactnote ) %]
547
                                                <li>
548
                                                    <span class="label">Contact note: </span>
549
                                                    [% patron.contactnote |html %]
550
                                                </li>
551
                                            [% END %]
552
                                        </ol>
553
                                    </div>
554
                                    <div class="action">
555
                                        <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=6"><i class="fa fa-pencil"></i> Edit</a>
556
                                    </div>
512
                                [% ELSE %]
557
                                [% ELSE %]
513
                                    [% INCLUDE 'member-display-alt-address-style-us.inc' %]
558
                                    <h3 class="inline">Alternate address</h3>
559
                                    <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=6"><i class="fa fa-plus"></i> Add</a>
514
                                [% END %]
560
                                [% END %]
515
516
                                <div class="rows">
517
                                    <ol>
518
                                        [% IF ( patron.B_phone ) %]
519
                                            <li>
520
                                                <span class="label">Phone: </span>
521
                                                <a href="tel:[% patron.B_phone %]">[% patron.B_phone |html  %]</a>
522
                                            </li>
523
                                        [% END %]
524
                                        [% IF ( patron.B_email ) %]
525
                                            <li class="email">
526
                                                <span class="label">Email: </span>
527
                                                <a title="[% patron.B_email %]" href="mailto:[% patron.B_email | url %]">[% B_email |html %]</a>
528
                                            </li>
529
                                        [% END %]
530
                                        [% IF ( patron.contactnote ) %]
531
                                            <li>
532
                                                <span class="label">Contact note: </span>
533
                                                [% patron.contactnote |html %]
534
                                            </li>
535
                                        [% END %]
536
                                    </ol>
537
                                </div>
538
                            </div> [% # /div#patron-alternate-address %]
561
                            </div> [% # /div#patron-alternate-address %]
539
                            <div class="action">
540
                                <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=6">Edit</a>
541
                            </div>
542
562
543
                            <div id="patron-alternative-contact" style="padding-top: 1em;">
563
                            <div id="patron-alternative-contact" class="patroninfo-section">
544
                                <h3>Alternative contact</h3>
564
                                [% IF ( patron.altcontactsurname || patron.altcontactfirstname || patron.altcontactaddress1 || patron.altcontactaddress2 || patron.altcontactaddress3 || patron.altcontactstate || patron.altcontactzipcode || patron.altcontactcountry || patron.altcontactphone ) %]
545
                                <div class="rows">
565
                                    <h3>Alternative contact</h3>
546
                                    <ol>
566
                                    <div class="rows">
547
                                        <li>
567
                                        <ol>
548
                                            <span class="label">Surname: </span>
568
                                            [% IF ( patron.altcontactsurname ) %]
549
                                            [% patron.altcontactsurname | html %]
569
                                                <li>
550
                                        </li>
570
                                                    <span class="label">Surname: </span>
551
                                        <li>
571
                                                    [% patron.altcontactsurname | html %]
552
                                            <span class="label">First name: </span>
572
                                                </li>
553
                                            [% patron.altcontactfirstname | html %]
573
                                            [% END %]
554
                                        </li>
574
                                            [% IF ( patron.altcontactfirstname ) %]
555
                                        <li>
575
                                                <li>
556
                                            <span class="label">Address: </span>
576
                                                    <span class="label">First name: </span>
557
                                            [% patron.altcontactaddress1 | html %]
577
                                                    [% patron.altcontactfirstname | html %]
558
                                        </li>
578
                                                </li>
559
                                        <li>
579
                                            [% END %]
560
                                            <span class="label">Address 2: </span>
580
                                            [% IF ( patron.altcontactaddress1 ) %]
561
                                            [% patron.altcontactaddress2 | html %]
581
                                                <li>
562
                                        </li>
582
                                                    <span class="label">Address: </span>
563
                                        <li>
583
                                                    [% patron.altcontactaddress1 | html %]
564
                                            <span class="label">City: </span>
584
                                                </li>
565
                                            [% patron.altcontactaddress3 | html %]
585
                                            [% END %]
566
                                        </li>
586
                                            [% IF ( patron.altcontactaddress2 ) %]
567
587
                                                <li>
568
                                        [% IF ( patron.altcontactstate ) %]
588
                                                    <span class="label">Address 2: </span>
569
                                            <li>
589
                                                    [% patron.altcontactaddress2 | html %]
570
                                                <span class="label">State: </span>
590
                                                </li>
571
                                                [% patron.altcontactstate | html %]
591
                                            [% END %]
572
                                            </li>
592
                                            [% IF ( patron.altcontactaddress3 ) %]
573
                                        [% END %]
593
                                                <li>
594
                                                    <span class="label">City: </span>
595
                                                    [% patron.altcontactaddress3 | html %]
596
                                                </li>
597
                                            [% END %]
574
598
575
                                        <li>
599
                                            [% IF ( patron.altcontactstate ) %]
576
                                            <span class="label">ZIP/Postal code: </span>
600
                                                <li>
577
                                            [% patron.altcontactzipcode | html %]
601
                                                    <span class="label">State: </span>
578
                                        </li>
602
                                                    [% patron.altcontactstate | html %]
579
                                        [% IF ( patron.altcontactcountry ) %]
603
                                                </li>
580
                                            <li>
604
                                            [% END %]
581
                                                <span class="label">Country: </span>
605
                                            [% IF ( patron.altcontactzipcode ) %]
582
                                                [% patron.altcontactcountry | html %]
606
                                                <li>
583
                                            </li>
607
                                                    <span class="label">ZIP/Postal code: </span>
584
                                        [% END %]
608
                                                    [% patron.altcontactzipcode | html %]
585
                                        [% IF ( patron.altcontactphone ) %]
609
                                                </li>
586
                                            <li>
610
                                            [% END %]
587
                                                <span class="label">Phone: </span>
611
                                            [% IF ( patron.altcontactcountry ) %]
588
                                                <a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a>
612
                                                <li>
589
                                            </li>
613
                                                    <span class="label">Country: </span>
590
                                        [% END %]
614
                                                    [% patron.altcontactcountry | html %]
591
                                    </ol>
615
                                                </li>
592
                                </div> [% # /div.rows %]
616
                                            [% END %]
617
                                            [% IF ( patron.altcontactphone ) %]
618
                                                <li>
619
                                                    <span class="label">Phone: </span>
620
                                                    <a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a>
621
                                                </li>
622
                                            [% END %]
623
                                        </ol>
624
                                    </div> [% # /div.rows %]
625
                                    <div class="action">
626
                                        <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=2"><i class="fa fa-pencil"></i> Edit</a>
627
                                    </div>
628
                                [% ELSE %]
629
                                    <h3 class="inline">Alternative contact</h3>
630
                                    <a class="btn btn-default btn-xs" href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=2"><i class="fa fa-plus"></i> Add</a>
631
                                [% END %]
593
                            </div> [% # /div#patron-alternative-contact %]
632
                            </div> [% # /div#patron-alternative-contact %]
594
                            <div class="action">
595
                                <a href="memberentry.pl?op=modify&amp;borrowernumber=[% patron.borrowernumber %]&amp;step=2">Edit</a>
596
                            </div>
597
                        </div> [% # /div.yui-u %]
633
                        </div> [% # /div.yui-u %]
598
                    </div> [% # /div.yui-g %]
634
                    </div> [% # /div.yui-g %]
599
635
Lines 835-840 Link Here
835
            $("#view_restrictions").on("click",function(){
871
            $("#view_restrictions").on("click",function(){
836
                $('#debarments-tab-link').click();
872
                $('#debarments-tab-link').click();
837
            });
873
            });
874
875
            $("#show-picture-upload").on("click", function(e){
876
                e.preventDefault();
877
                $(this).toggle();
878
                $("#picture-upload").toggle();
879
            });
880
881
            $("#cancel-picture-upload").on("click", function(e){
882
                e.preventDefault();
883
                $("#picture-upload, #show-picture-upload").toggle();
884
            });
885
838
         });
886
         });
839
        function uncheck_sibling(me){
887
        function uncheck_sibling(me){
840
            nodename=me.getAttribute("name");
888
            nodename=me.getAttribute("name");
841
- 

Return to bug 20779