Bug 22451: Use Asset everywhere
[koha-equinox.git] / koha-tmpl / intranet-tmpl / prog / en / modules / onboarding / onboardingstep3.tt
1 [% USE Koha %]
2 [% USE raw %]
3 [% USE Asset %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha &rsaquo; Web installer &rsaquo; Create Koha administrator patron</title>
6 [% INCLUDE 'installer-doc-head-close.inc' %]
7 </head>
8
9 <body id="installer" class="installer">
10     <div class="container-fluid">
11         <div class="row">
12             <div id="onboarding-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
13                 <h1 id="logo"><a href="#">Koha</a></h1>
14                 <h2>Web installer &rsaquo; Create Koha administrator patron</h2>
15
16                 [% INCLUDE 'onboarding_messages.inc' %]
17
18                 <p>
19                 Now we will create a patron with superlibrarian permissions. Log in with this to access Koha as a staff member with all permissions.
20                 </p>
21                 <form name="createpatron" id="createpatron" method="post" action="onboarding.pl">
22                     <fieldset class="rows">
23                         <input type="hidden" name="step" value="3" />
24                         <input type="hidden" name="op" value="add_validate_patron" />
25                         <h3>Administrator identity</h3>
26                         <ol>
27                             <li>
28                                 <label for="surname" class="required">Surname: </label>
29                                 <input type="text" id="surname" name="surname" value="[% surname | html %]" class="required" required="required" />
30                                 <span class="required">Required</span>
31                             </li>
32                             <li>
33                                 <label for="firstname" class="required">First name: </label>
34                                 <input  type="text" name="firstname" id="firstname" size="20" value="[% firstname | html %]" class="required" required="required">
35                                 <span class="required">Required</span>
36                             </li>
37                         </ol>
38
39                         <ol>
40                             <li>
41                                 <label for="cardnumber" class="required">Card number: </label>
42                                 [% IF patrons && patrons > 1 %]
43                                     <input type="text" id="cardnumber" class="noEnterSubmit valid" name="cardnumber" value="[% newcardnumber | html %]" class="required" required="required">
44                                 [% ELSE %]
45                                     <input type="text" id="cardnumber" name="cardnumber" value="[% cardnumber | html %]" class="required" required="required">
46                                 [% END %]
47                                 <span class="required">Required</span>
48                             </li>
49                             <li>
50
51                                 <!--require a foreach loop to get all the values for the library that the user has either imported (in web installer) or created in the first step of this onboarding tool-->
52                                 <label for="libraries" class="required"> Library: </label>
53                                 <select name="libraries" size="1" id="libraries">
54                                     [% FOREACH library IN libraries %]
55                                         <option value="[% library.branchcode | html %]"> [% library.branchname | html %] </option>
56                                     [% END %]
57                                 </select>
58                                 <span class="required"> Required</span>
59                             </li>
60                             <li>
61                                 <label for="categorycode_entry" class="required"> Patron category</label>
62                                 <select id="categorycode_entry" name="categorycode_entry">
63                                     [% FOREACH category IN categories %]
64                                         <option value = "[% category.categorycode | html %]">[% category.description | html %]</option>
65                                     [% END %]
66                                 </select>
67                                 <span class="required">Required</span><br><br>
68                                 <b>Note:</b> If you installed sample patron categories please select the "Staff" option in the patron categories dropdown box.
69                             </li>
70                         </ol>
71
72                             <h3>Administrator account permissions</h3>
73                         <ol>
74                             <li>
75                                 <input type="hidden" name="newflags" value="1" />
76                                 <input type="hidden" class="flag parent" id="flag-0" name="flag" value="superlibrarian" />
77                                 <code> superlibrarian</code>
78                             </li>
79                         </ol>
80
81                             <h3>Administrator login</h3>
82                         <ol>
83                             <li>
84                                 <label for="userid" class="required">Username: </label>
85                                 <input type="text" name="userid" id ="userid" size="20" value="[% userid | html %]" class="required" required="required" />
86                                 <span class="required">Required</span>
87                             </li>
88                             <li>
89                                 <label for="password" class="required">Password: </label>
90                                 <input type="password" name="password" id="password" size="20" value="[% member.password | html %]" class="required" required="required">
91                                 <span class="required">Required</span>
92                             </li>
93                             <li>
94                                 <label for="password2" class="required">Confirm password: </label>
95                                 <input type="password" id="password2" name="password2" size="20" value="" class="required" required="required">
96                                 <span class="required">Required</span>
97                             </li>
98                         </ol>
99                         <p>
100                             To create another patron, go to:
101                             <span class="breadcrumbs">Patrons &rsaquo; New patron</span>
102                         </p>
103                         <p>
104                             To edit patron permissions, go to:
105                             <span class="breadcrumbs">More &rsaquo; Set permissions</span>
106                         </p>
107                     </fieldset>
108
109                     <input type="submit" class="btn btn-primary" value="Submit" />
110                 </form>
111             </div> <!-- / #onboarding-step3 -->
112         </div> <!-- / .row -->
113     </div><!-- / .container-fluid -->
114
115 [% MACRO jsinclude BLOCK %]
116     [% INCLUDE 'validator-strings.inc' %]
117     [% INCLUDE 'installer-strings.inc' %]
118     [% Asset.js("js/onboarding.js") | $raw %]
119     [% PROCESS 'password_check.inc' %]
120     [% PROCESS 'add_password_check' new_password => 'password' %]
121 [% END %]
122
123 [% INCLUDE 'installer-intranet-bottom.inc' %]
124