Bug 14570: Make it possible to add multiple guarantors to a record
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-privacy.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog &rsaquo; Your privacy management</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% BLOCK cssinclude %][% END %]
6 </head>
7 [% INCLUDE 'bodytag.inc' bodyid='opac-privacy' %]
8 [% INCLUDE 'masthead.inc' %]
9
10 <div class="main">
11     <ul class="breadcrumb">
12         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
13         <li><a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a> <span class="divider">&rsaquo;</span></li>
14         <li><a href="#">Your privacy management</a></li>
15     </ul>
16
17     <div class="container-fluid">
18         <div class="row-fluid">
19             <div class="span2">
20                 <div id="navigation">
21                     [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
22                 </div>
23             </div>
24             <div class="span10">
25                 <div id="userprivacy">
26                     <h3>Your privacy management</h3>
27
28                     [% IF deleted %]
29                         <div class="alert alert-success">Your reading history has been deleted.</div>
30                     [% ELSIF history_not_deleted %]
31                         <div class="alert">The deletion of your reading history failed, because there is a problem with the configuration of this feature. Please help to fix the system by informing your library of this error</div>
32                     [% ELSIF nothing_to_delete %]
33                         <div class="alert">No reading history to delete</div>
34                     [% END %]
35
36                     [% IF ( privacy_updated ) %]
37                         <div class="alert alert-success">Your privacy rules have been updated.</div>
38                     [% END %]
39
40                     [% IF ( Ask_data ) %]
41                         <p>We take great care in protecting your privacy. On this screen, you can define how long we keep your reading history.</p>
42                         <p>Your options are: <p>
43                             <ul id="opac-privacy-options-list">
44                                 <li class="privacy0">Forever: keep my reading history without limit. This is the option for users who want to keep track of what they are reading.</li>
45                                 <li class="privacy1">Default: keep my reading history according to local laws. This is the default option : the library will keep your reading history for the duration permitted by local laws.</li>
46                                 <li class="privacy2">Never: Delete my reading history immediately. This will delete all record of the item that was checked-out upon check-in.</li>
47                             </ul>
48                             <p id="note1">Please note that information on any book still checked-out must be kept by the library no matter which privacy option you choose.</p>
49                             <p id="note2">Please also note that the library staff can't update these values for you: it's your privacy!</p>
50                             <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-update-form">
51                                 <input type="hidden" name="op" value="update_privacy" />
52                                     <fieldset>
53                                     <label for="privacy">Please choose your privacy rule:</label>
54                                     <div>
55                                         <select name="privacy" id="privacy">
56                                             [% IF ( privacy0 ) %]
57                                                 <option value="0" selected="selected" class="privacy0">Forever</option>
58                                             [% ELSE %]
59                                                 <option value="0" class="privacy0">Forever</option>
60                                             [% END %]
61                                             [% IF ( privacy1 ) %]
62                                                 <option value="1" selected="selected" class="privacy1">Default</option>
63                                             [% ELSE %]
64                                                 <option value="1" class="privacy1">Default</option>
65                                             [% END %]
66                                             [% IF ( privacy2 ) %]
67                                                 <option value="2" selected="selected" class="privacy2">Never</option>
68                                             [% ELSE %]
69                                                 <option value="2" class="privacy2">Never</option>
70                                             [% END %]
71                                         </select>
72                                     </div>
73
74                                     [% IF borrower.guarantor_relationships && Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
75                                         <div>
76                                             <label for="privacy_guarantor_checkouts">Allow your guarantor to view your current checkouts?</label>
77                                             <select name="privacy_guarantor_checkouts">
78                                                 [% IF borrower.privacy_guarantor_checkouts %]
79                                                     <option value="0">No</option>
80                                                     <option value="1" selected>Yes</option>
81                                                 [% ELSE %]
82                                                     <option value="0" selected>No</option>
83                                                     <option value="1">Yes</option>
84                                                 [% END %]
85                                             </select>
86                                             <span class="hint">
87                                                 Guaranteed by
88                                                 [% FOREACH gr IN borrower.guarantor_relationships %]
89                                                     [% SET g = gr.guarantor %]
90                                                     [% g.firstname | html %] [% g.surname | html %]
91                                                     [%- IF ! loop.last %], [% END %]
92                                                 [% END %]
93                                             </span>
94                                         </div>
95                                     [% END %]
96
97                                     <button type="Submit" class="btn">Save</button>
98                                 </fieldset>
99                             </form>
100                         <h2>Immediate deletion</h2>
101                         <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-form">
102                             <input type="hidden" name="op" value="delete_record" />
103                             <p>Whatever your privacy rule you choose, you can delete all your reading history immediately by clicking here. <b>BE CAREFUL</b>. Once you've confirmed the deletion, no one can retrieve the list!</p>
104                             <input type="submit" value="Immediate deletion" class="btn btn-danger" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" />
105                         </form>
106                         [% IF Koha.Preference('StoreLastBorrower') %]<p id="store-last-borrower-msg">Please note, the last person to return an item is tracked for the management of items returned damaged.</p>[% END %]
107                     [% END # / IF Ask_data %]
108                 </div> <!-- / .userprivacy -->
109             </div> <!-- / .span10 -->
110         </div> <!-- / .row-fluid -->
111     </div> <!-- / .container-fluid -->
112 </div> <!-- / .main -->
113
114 [% INCLUDE 'opac-bottom.inc' %]
115 [% BLOCK jsinclude %][% END %]