Bug 35261: Update links for self registration avoiding "here"
[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 => logged_in_user.branchcode || default_branch ) %]
5 [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
6 [% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, 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     [% WRAPPER breadcrumbs %]
17         [% WRAPPER breadcrumb_item bc_active= 1 %]
18             <span>Registration complete</span>
19         [% END %]
20     [% END #/ WRAPPER breadcrumbs %]
21
22     <div class="container-fluid">
23         <div class="row">
24             [% IF ( OpacNav ||  OpacNavBottom ) %]
25                 <div class="col-12 col-lg-2 order-3 order-lg-1">
26                     <div id="navigation">
27                         [% INCLUDE 'navigation.inc' %]
28                     </div>
29                 </div>
30             [% END %]
31
32             [% IF ( OpacNav || OpacNavBottom  ) %]
33                 [% #  Three-column layout with right and left sidebars %]
34                 <div class="col-12 col-lg-7 order-md-1 maincontent">
35             [% ELSIF ( OpacNavRight ) %]
36                 [% #  Two-column layout with right sidebar %]
37                 <div class="col-12 col-lg-9 order-md-1 maincontent">
38             [% END %]
39
40                     <div id="registration-complete" class="maincontent">
41                         <h1>Registration complete!</h1>
42
43                         <p>You have successfully registered your new account.</p>
44                         [% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %]
45                             <p>To log in, use the following credentials:</p>
46
47                             <p id="patron-userid-p" class="registration-line">
48                                 <span id="patron-userid-label" class="registration-label">Username:</span>
49                                 <span id="patron-userid" class="registration-value">[% borrower.userid | html %]</span>
50                             </p>
51                             <p id="patron-password-p" class="registration-line">
52                                 <span id="patron-password-label" class="registration-label">Password:</span>
53                                 <span id="patron-password" class="registration-value">[% password_cleartext | html %]</span>
54                             </p>
55
56                             [% IF borrower.cardnumber %]
57                                 <p id="patron-cardnumber-p" class="registration-line">
58                                     <span id="patron-cardnumber-label" class="registration-label">Card number:</span>
59                                     <span id="patron-cardnumber" class="registration-value">[% borrower.cardnumber | html %]</span>
60                                 </p>
61                             [% END %]
62
63                             <p id="patron-instructions">
64                             [% IF borrower.category.effective_change_password %]
65                                 <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>
66                             [% ELSE %]
67                                 <span>For your convenience, the login box on this page has been pre-filled with this data. Please log in.</span>
68                             [% END %]
69                             </p>
70                         [% END %]
71
72                         <div id="PatronSelfRegistrationAdditionalInstructions">[% PatronSelfRegistrationAdditionalInstructions | $raw %]</div>
73                     </div> <!-- /#registration-complete -->
74                 </div> <!-- / .col-7/9 -->
75
76                 <div class="col-12 col-lg-3 order-md-2">
77                     [% UNLESS ( loggedinusername ) %]
78                         [% UNLESS ( casAuthentication ) %]
79                             <div id="login">
80                                 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth" autocomplete="off">
81                                     <input type="hidden" name="koha_login_context" value="opac" />
82                                     <fieldset class="brief">
83                                         <legend>Log in to your account:</legend>
84                                         <label for="userid">Login:</label>
85                                         [% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %]
86                                             <input class="form-control" type="text" id="userid" size="10" name="userid" value="[% borrower.userid | html %]" autocomplete="off" />
87                                         [% ELSE %]
88                                             <input class="form-control" type="text" id="userid" size="10" name="userid" value="" autocomplete="off" />
89                                         [% END %]
90                                         <label for="password">Password:</label>
91                                         [% IF Koha.Preference('PatronSelfRegistrationPrefillForm') %]
92                                             <input class="form-control" type="password" id="password" size="10" name="password" value="[% password_cleartext | html %]" autocomplete="off" />
93                                         [% ELSE %]
94                                             <input class="form-control" type="password" id="password" size="10" name="password" value="" autocomplete="off" />
95                                         [% END %]
96                                     <fieldset class="action">
97                                         <input type="submit" value="Log in" class="btn btn-primary" />
98                                     </fieldset>
99                                     [% IF PatronSelfRegistration && PatronSelfRegistrationDefaultCategory %]
100                                         <div id="patronregistration">
101                                             <p><a href="/cgi-bin/koha/opac-memberentry.pl">Create an account</a></p>
102                                         </div>
103                                     [% 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 %]