Bug 24224: Convert OpacNavBottom system preference to additional content
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-registration-confirmation.tt
1 [% USE raw %]
2 [% USE Koha %]
3 [% USE AdditionalContents %]
4 [% SET OpacNavRight = AdditionalContents.get( location => "OpacNavRight", lang => news_lang, library => branchcode ) %]
5 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
6 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode, blocktitle => 0 ) %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% BLOCK cssinclude %][% END %]
11 </head>
12 [% INCLUDE 'bodytag.inc' bodyid='opac-registration-confirmation' %]
13 [% INCLUDE 'masthead.inc' %]
14
15 <div class="main">
16     <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumbs">
17         <ol class="breadcrumb">
18             <li class="breadcrumb-item">
19                 <a href="/cgi-bin/koha/opac-main.pl">Home</a>
20             </li>
21             <li class="breadcrumb-item active">
22                 <a href="#" aria-current="page">Registration complete</a>
23             </li>
24         </ol>
25     </nav> <!-- /#breadcrumbs -->
26
27     <div class="container-fluid">
28         <div class="row">
29             [% IF ( OpacNav ||  OpacNavBottom ) %]
30                 <div class="col-12 col-lg-2 order-3 order-lg-1">
31                     <div id="navigation">
32                         [% INCLUDE 'navigation.inc' %]
33                     </div>
34                 </div>
35             [% END %]
36
37             [% IF ( OpacNav || OpacNavBottom  ) %]
38                 [% #  Three-column layout with right and left sidebars %]
39                 <div class="col-12 col-lg-7 order-md-1 maincontent">
40             [% ELSIF ( OpacNavRight ) %]
41                 [% #  Two-column layout with right sidebar %]
42                 <div class="col-12 col-lg-9 order-md-1 maincontent">
43             [% END %]
44
45                     <div id="registration-complete" class="maincontent">
46                         <h1>Registration complete!</h1>
47
48                         <p>You have successfully registered your new account.</p>
49                         [% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %]
50                             <p>To log in, use the following credentials:</p>
51
52                             <p id="patron-userid-p" class="registration-line">
53                                 <span id="patron-userid-label" class="registration-label">Username:</span>
54                                 <span id="patron-userid" class="registration-value">[% borrower.userid | html %]</span>
55                             </p>
56                             <p id="patron-password-p" class="registration-line">
57                                 <span id="patron-password-label" class="registration-label">Password:</span>
58                                 <span id="patron-password" class="registration-value">[% password_cleartext | html %]</span>
59                             </p>
60
61                             [% IF borrower.cardnumber %]
62                                 <p id="patron-cardnumber-p" class="registration-line">
63                                     <span id="patron-cardnumber-label" class="registration-label">Card number:</span>
64                                     <span id="patron-cardnumber" class="registration-value">[% borrower.cardnumber | html %]</span>
65                                 </p>
66                             [% END %]
67
68                             <p id="patron-instructions">
69                             [% IF borrower.category.effective_change_password %]
70                                 <span>For your convenience, the login box on this page has been pre-filled with this data. Please log in and change your password.</span>
71                             [% ELSE %]
72                                 <span>For your convenience, the login box on this page has been pre-filled with this data. Please log in.</span>
73                             [% END %]
74                             </p>
75                         [% END %]
76
77                         <div id="PatronSelfRegistrationAdditionalInstructions">[% PatronSelfRegistrationAdditionalInstructions | $raw %]</div>
78                     </div> <!-- /#registration-complete -->
79                 </div> <!-- / .col-7/9 -->
80
81                 <div class="col-12 col-lg-3 order-md-2">
82                     [% UNLESS ( loggedinusername ) %]
83                         [% UNLESS ( casAuthentication ) %]
84                             <div id="login">
85                                 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth" autocomplete="off">
86                                     <input type="hidden" name="koha_login_context" value="opac" />
87                                     <fieldset class="brief">
88                                         <legend>Log in to your account:</legend>
89                                         <label for="userid">Login:</label>
90                                         [% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %]
91                                             <input class="form-control" type="text" id="userid" size="10" name="userid" value="[% borrower.userid | html %]" />
92                                         [% ELSE %]
93                                             <input class="form-control" type="text" id="userid" size="10" name="userid" value="" />
94                                         [% END %]
95                                         <label for="password">Password:</label>
96                                         [% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %]
97                                             <input class="form-control" type="password" id="password" size="10" name="password" value="[% password_cleartext | html %]" />
98                                         [% ELSE %]
99                                             <input class="form-control" type="password" id="password" size="10" name="password" value="" />
100                                         [% END %]
101                                     <fieldset class="action">
102                                         <input type="submit" value="Log in" class="btn btn-primary" />
103                                     </fieldset>
104                                     [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]<div id="patronregistration"><p>Don't have an account? <a href="/cgi-bin/koha/opac-memberentry.pl">Register here.</a></p></div>[% END %]
105                                     </fieldset>
106                                 </form> <!-- /#auth -->
107                             </div> <!-- /#login -->
108                         [% END # /casAuthentication %]
109                     [% END # / loggedinusername %]
110                     [% IF ( OpacNavRight ) %]
111                         [% PROCESS koha_news_block news => OpacNavRight %]
112                     [% END # /OpacNavRight %]
113                 </div> <!-- / .col-lg-3 -->
114
115         </div> <!-- /.row -->
116     </div> <!-- /.container-fluid -->
117 </div> <!-- /.main -->
118
119 [% INCLUDE 'opac-bottom.inc' %]
120 [% BLOCK jsinclude %][% END %]