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