Bug 10309 - New OPAC theme based on Bootstrap
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-privacy.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Your privacy management
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% BLOCK cssinclude %][% END %]
5 </head>
6 <body id="opac-privacy">
7 [% INCLUDE 'masthead.inc' %]
8
9 <div class="main">
10     <ul class="breadcrumb">
11         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
12         <li><a href="/cgi-bin/koha/opac-user.pl">[% firstname %] [% surname %]</a> <span class="divider">&rsaquo;</span></li>
13         <li><a href="#">Your privacy management</a></li>
14     </ul>
15
16     <div class="container-fluid">
17         <div class="row-fluid">
18             <div class="span2">
19                 <div id="navigation">
20                     [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
21                 </div>
22             </div>
23             <div class="span10">
24                 <div id="userprivacy">
25                     <h3>Your privacy management</h3>
26
27                     [% IF ( deleted ) %]
28                         <div class="alert alert-success">Your reading history has been deleted.</div>
29                     [% ELSIF ( err_history_not_deleted ) %]
30                         <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>
31                     [% END %]
32
33                     [% IF ( privacy_updated ) %]
34                         <div class="alert alert-success">Your privacy rules have been updated.</div>
35                     [% END %]
36
37                     [% IF ( Ask_data ) %]
38                         <p>We take great care in protecting your privacy. On this screen, you can define how long we keep your reading history.</p>
39                         <p>Your options are: <p>
40                             <ul id="opac-privacy-options-list">
41                                 <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>
42                                 <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>
43                                 <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>
44                             </ul>
45                             <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>
46                             <p id="note2">Please also note that the library staff can't update these values for you: it's your privacy!</p>
47                             <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-update-form">
48                                 <input type="hidden" name="op" value="update_privacy" />
49                                     <fieldset>
50                                     <label for="privacy">Please choose your privacy rule:</label>
51                                     <div class="input-append">
52                                         <select name="privacy" id="privacy">
53                                             [% IF ( privacy0 ) %]
54                                                 <option value="0" selected="selected" class="privacy0">Forever</option>
55                                             [% ELSE %]
56                                                 <option value="0" class="privacy0">Forever</option>
57                                             [% END %]
58                                             [% IF ( privacy1 ) %]
59                                                 <option value="1" selected="selected" class="privacy1">Default</option>
60                                             [% ELSE %]
61                                                 <option value="1" class="privacy1">Default</option>
62                                             [% END %]
63                                             [% IF ( privacy2 ) %]
64                                                 <option value="2" selected="selected" class="privacy2">Never</option>
65                                             [% ELSE %]
66                                                 <option value="2" class="privacy2">Never</option>
67                                             [% END %]
68                                         </select>
69                                         <button type="Submit" class="btn">Submit</button>
70                                     </div>
71                                 </fieldset>
72                             </form>
73                         <h2>Immediate deletion</h2>
74                         <form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-delete-form">
75                             <input type="hidden" name="op" value="delete_record" />
76                             <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>
77                             <input type="submit" value="Immediate deletion" class="btn btn-danger" onclick="return confirmDelete(MSG_CONFIRM_AGAIN);" />
78                         </form>
79                     [% END # / IF Ask_data %]
80                 </div> <!-- / .userprivacy -->
81             </div> <!-- / .span10 -->
82         </div> <!-- / .row-fluid -->
83     </div> <!-- / .container-fluid -->
84 </div> <!-- / .main -->
85
86 [% INCLUDE 'opac-bottom.inc' %]
87 [% BLOCK jsinclude %][% END %]