Bug 10743: Add styles to 'my privacy' page in OPAC

This patch does a couple things.  Most importantly it adds
a new div around the privacy rules summary so that it can
be easily changed. It also moves the start of the form to
right above the form's select box so that it's not in the
new privacy rules div.

To test:

* Apply patch
* Enable the use of privacy via the sys prefs
* Log in to the OPAC
* Visit the 'my privacy' tab
* Make sure it looks okay
* Submit the form and make sure it works
* Repeat in the other theme

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Edit: Replaced a few tabs with spaces to keep the QA script happy.
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works nicely, privacy options can still be edited.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Nicole C. Engard 2013-08-15 22:08:41 -04:00 committed by Galen Charlton
parent 90e90a436a
commit 841fe4559f

View file

@ -20,13 +20,11 @@
[% IF ( privacy_updated ) %] [% IF ( privacy_updated ) %]
<div class="dialog message">Your privacy rules have been updated.</div> <div class="dialog message">Your privacy rules have been updated.</div>
[% END %] [% END %]
<div id="userprivacyrules" class="container">
<h2>Privacy rule</h2> <h2>Privacy rule</h2>
[% IF ( Ask_data ) %] [% IF ( Ask_data ) %]
<p>We take great care in protecting your privacy. On this screen, you can define how long we keep your reading history.</p> <p>We take great care in protecting your privacy. On this screen, you can define how long we keep your reading history.</p>
<p>Your options are: <p> <p>Your options are: <p>
<form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-update-form">
<input type="hidden" name="op" value="update_privacy" />
<ul id="opac-privacy-options-list"> <ul id="opac-privacy-options-list">
<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> <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>
<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> <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>
@ -34,6 +32,9 @@
</ul> </ul>
<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> <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>
<p id="note2">Please also note that the library staff can't update these values for you: it's your privacy!</p> <p id="note2">Please also note that the library staff can't update these values for you: it's your privacy!</p>
</div>
<form action="/cgi-bin/koha/opac-privacy.pl" method="post" id="opac-privacy-update-form">
<input type="hidden" name="op" value="update_privacy" />
<label for:"privacy">Please choose your privacy rule:</label> <label for:"privacy">Please choose your privacy rule:</label>
<select name="privacy"> <select name="privacy">
[% IF ( privacy0 ) %] [% IF ( privacy0 ) %]