Bug 20168: Update of the OPAC bootstrap template to bootstrap v4
[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     <nav aria-label="breadcrumb">
12         <ul class="breadcrumb">
13             <li class="breadcrumb-item">
14                 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
15             </li>
16             <li class="breadcrumb-item">
17                 <a href="/cgi-bin/koha/opac-user.pl">[% INCLUDE 'patron-title.inc' patron = logged_in_user %]</a>
18             </li>
19             <li class="breadcrumb-item" aria-current="page">
20                 <a href="#">Your privacy management</a>
21             </li>
22         </ul>
23     </nav>
24
25     <div class="container-fluid">
26         <div class="row">
27             <div class="col col-lg-2 order-2 order-lg-1">
28                 <div id="navigation">
29                     [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
30                 </div>
31             </div>
32             <div class="col-md-12 col-lg-10 order-1">
33
34                 <div id="userprivacy" class="maincontent">
35                     <h2>Your privacy management</h2>
36
37                     [% IF deleted %]
38                         <div class="alert alert-success">Your reading history has been deleted.</div>
39                     [% ELSIF history_not_deleted %]
40                         <div class="alert alert-warning">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>
41                     [% ELSIF nothing_to_delete %]
42                         <div class="alert alert-warning">No reading history to delete</div>
43                     [% END %]
44
45                     [% IF ( privacy_updated ) %]
46                         <div class="alert alert-success">Your privacy rules have been updated.</div>
47                     [% END %]
48
49                     [% IF ( Ask_data ) %]
50                         <p>We take great care in protecting your privacy. On this screen, you can define how long we keep your reading history.</p>
51                         <p>Your options are: <p>
52                         <ul id="opac-privacy-options-list">
53                             <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>
54                             <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>
55                             <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>
56                         </ul>
57                         <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>
58                         <p id="note2">Please also note that the library staff can't update these values for you: it's your privacy!</p>
59                         <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-update-form">
60                             <input type="hidden" name="op" value="update_privacy" />
61                             <fieldset>
62                                 <label for="privacy">Please choose your privacy rule:</label>
63                                 <div class="form-group row">
64                                     <div class="col-6">
65                                         <select class="form-control" name="privacy" id="privacy">
66                                             [% IF ( privacy0 ) %]
67                                                 <option value="0" selected="selected" class="privacy0">Forever</option>
68                                             [% ELSE %]
69                                                 <option value="0" class="privacy0">Forever</option>
70                                             [% END %]
71                                             [% IF ( privacy1 ) %]
72                                                 <option value="1" selected="selected" class="privacy1">Default</option>
73                                             [% ELSE %]
74                                                 <option value="1" class="privacy1">Default</option>
75                                             [% END %]
76                                             [% IF ( privacy2 ) %]
77                                                 <option value="2" selected="selected" class="privacy2">Never</option>
78                                             [% ELSE %]
79                                                 <option value="2" class="privacy2">Never</option>
80                                             [% END %]
81                                         </select>
82                                     </div> <!-- /.col-6 -->
83                                 </div> <!-- /.form-group.row -->
84
85                                 [% IF has_guarantor_flag && (Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') || Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') ) %]
86                                     [% IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
87                                         <div class="form-group row">
88                                             <div class="col-6">
89                                                 <label for="privacy_guarantor_checkouts">Allow your guarantor to view your current checkouts?</label>
90                                                 <select class="form-control" name="privacy_guarantor_checkouts">
91                                                     [% IF borrower.privacy_guarantor_checkouts %]
92                                                         <option value="0">No</option>
93                                                         <option value="1" selected>Yes</option>
94                                                     [% ELSE %]
95                                                         <option value="0" selected>No</option>
96                                                         <option value="1">Yes</option>
97                                                     [% END %]
98                                                 </select>
99                                             </div> <!-- /.col-6 -->
100                                         </div> <!-- /.form-group.row -->
101                                     [% END # /IF Koha.Preference('AllowPatronToSetCheckoutsVisibilityForGuarantor') %]
102
103                                     [% IF Koha.Preference('AllowPatronToSetFinesVisibilityForGuarantor') %]
104                                         <div class="form-group row">
105                                             <div class="col-6">
106                                                 <label for="privacy_guarantor_fines">Allow your guarantor to view your current fines?</label>
107                                                 <select class="form-control" name="privacy_guarantor_fines">
108                                                     [% IF borrower.privacy_guarantor_fines %]
109                                                         <option value="0">No</option>
110                                                         <option value="1" selected>Yes</option>
111                                                     [% ELSE %]
112                                                         <option value="0" selected>No</option>
113                                                         <option value="1">Yes</option>
114                                                     [% END %]
115                                                 </select>
116                                             </div> <!-- /.col-6 -->
117                                         </div> <!-- /.form-group.row -->
118                                     [% END %]
119
120                                     <span class="hint">
121                                         Guaranteed by
122                                         [% FOREACH gr IN borrower.guarantor_relationships %]
123                                             [% SET g = gr.guarantor %]
124                                             [% g.firstname | html %] [% g.surname | html %]
125                                             [%- IF ! loop.last %], [% END %]
126                                         [% END %]
127                                     </span>
128                                 [% END # /IF has_guarantor_flag.. %]
129                                 <fieldset class="action">
130                                     <button type="Submit" class="btn btn-primary">Save</button>
131                                 </fieldset>
132                             </fieldset>
133                         </form> <!-- /#opac-privacy-update-form -->
134
135                         <hr />
136
137                         <h2>Immediate deletion</h2>
138
139                         <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-form">
140                             <input type="hidden" name="op" value="delete_record" />
141                             <p>Whatever your privacy rule you choose, you can delete all your reading history immediately by clicking here. <strong>BE CAREFUL</strong>. Once you've confirmed the deletion, no one can retrieve the list!</p>
142                             <fieldset class="action">
143                                 <input type="submit" value="Immediate deletion" class="btn btn-danger" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" />
144                             </fieldset>
145                         </form>
146
147                         [% IF Koha.Preference('StoreLastBorrower') %]
148                             <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>
149                         [% END %]
150                     [% END # / IF Ask_data %]
151                 </div> <!-- / .userprivacy -->
152             </div> <!-- / .col-lg-10 -->
153         </div> <!-- / .row -->
154     </div> <!-- / .container-fluid -->
155 </div> <!-- / .main -->
156
157 [% INCLUDE 'opac-bottom.inc' %]
158 [% BLOCK jsinclude %][% END %]