Bug 9032: (follow-up) add support for bootstrap theme
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-shareshelf.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog › Share a list
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% BLOCK cssinclude %][% END %]
5 </head>
6
7 <body id="opac-shareshelf" class="scrollto">
8 [% INCLUDE 'masthead.inc' %]
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         [% IF ( loggedinusername ) %]
13             <li><a href="/cgi-bin/koha/opac-user.pl">[% FOREACH USER_INF IN USER_INFO %][% USER_INF.title %] [% USER_INF.firstname %] [% USER_INF.surname %][% END %]</a> <span class="divider">&rsaquo;</span></li>
14         [% END %]
15         <li>Share a list</li>
16     </ul> <!-- / .breadcrumb -->
17
18     <div class="container-fluid">
19         <div class="row-fluid">
20             [% IF ( OpacNav ) %]
21                 <div class="span2">
22                     <div id="navigation">
23                         [% INCLUDE 'navigation.inc' IsPatronPage=1 %]
24                     </div>
25                 </div>
26             [% END %]
27
28 [%# This section contains the essential code for error messages and three operations: invite, confirm_invite and accept. %]
29     <h2>Share a list with another patron</h2>
30     <div class="span10">
31         <div id="shareshelf" class="maincontent">
32
33     [% IF errcode %]
34         [% IF errcode==1 && op %]<div class="alert">The operation [% op %] is not supported.</div>[% END %]
35         [% IF errcode==1 && !op %]<div class="alert">No operation parameter has been passed.</div>[% END %]
36         [% IF errcode==2 %]<div class="alert">Invalid shelf number.</div>[% END %]
37         [% IF errcode==3 %]<div class="alert">The feature of sharing lists is not in use in this library.</div>[% END %]
38         [% IF errcode==4 %]<div class="alert">You can only share a list if you are the owner.</div>[% END %]
39         [% IF errcode==5 %]<div class="alert">You cannot share a public list.</div>[% END %]
40         [% IF errcode==6 %]<div class="alert">Sorry, but you did not enter any valid email address.</div>[% END %]
41         [% IF errcode==7 %]<div class="alert">Sorry, but we could not accept this key. The invitation may have expired. Contact the patron who sent you the invitation.</div>[% END %]
42         [% IF errcode==8 %]<div class="alert">As owner of a list you cannot accept an invitation for sharing it.</div>[% END %]
43
44     [% ELSIF op=='invite' %]
45         <div id="invite">
46         <form method="post" onsubmit="return $('#invite_address').val().trim()!='';">
47         <fieldset class="rows">
48             <ol>
49             <input type="hidden" name="op" value="conf_invite"/>
50             <input type="hidden" name="shelfnumber" value="[% shelfnumber %]"/>
51             <li><label for="name">List name:</label> [% shelfname %]</li>
52             <li>
53                 <label for="invite_address">Email address:</label>
54                 <input id="invite_address" name="invite_address"/>
55             </li>
56             </ol>
57         </fieldset>
58         <fieldset class="action">
59             <input type="submit" value="Send" class="btn" />
60         </fieldset>
61         </form>
62         </div>
63
64     [% ELSIF op=='conf_invite' %]
65         <div id="conf_invite">
66         [% IF approvedaddress %]
67         <p>An invitation to share list <i>[% shelfname %]</i> has been sent to [% approvedaddress %].</p>
68         [% END %]
69         [% IF failaddress %]
70             <p>Something went wrong while processing the following addresses. Please check them. These are: [% failaddress %]</p>
71         [% END %]
72         [% IF approvedaddress %]
73         <p>You will receive an email notification if someone accepts your share within two weeks.</p>
74         [% END %]
75         <p><a href="/cgi-bin/koha/opac-shelves.pl?display=privateshelves">Return to your lists</a></p>
76         </div>
77
78     [% ELSIF op=='accept' %]
79         [%# Nothing to do: we already display an error or we redirect. %]
80     [% END %]
81
82         </div> <!-- / .span10 -->
83     </div> <!-- / .maincontent -->
84 [%# End of essential part %]
85
86         </div> <!-- / .row-fluid -->
87     </div> <!-- / .container-fluid -->
88 </div> <!-- / .main -->
89 [% INCLUDE 'opac-bottom.inc' %]
90 [% BLOCK jsinclude %][% END %]