4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Web installer › Create Koha administrator patron</title>
6 [% INCLUDE 'installer-doc-head-close.inc' %]
9 <body id="installer" class="installer">
10 <div class="container-fluid">
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 › Create Koha administrator patron</h2>
16 [% INCLUDE 'onboarding_messages.inc' %]
19 Now we will create a patron with superlibrarian permissions. Log in with this to access Koha as a staff member with all permissions.
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>
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>
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>
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">
45 <input type="text" id="cardnumber" name="cardnumber" value="[% cardnumber | html %]" class="required" required="required">
47 <span class="required">Required</span>
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>
58 <span class="required"> Required</span>
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>
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.
72 <h3>Administrator account permissions</h3>
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>
81 <h3>Administrator login</h3>
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>
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>
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>
100 To create another patron, go to:
101 <span class="breadcrumbs">Patrons › New patron</span>
104 To edit patron permissions, go to:
105 <span class="breadcrumbs">More › Set permissions</span>
109 <input type="submit" class="btn btn-primary" value="Submit" />
111 </div> <!-- / #onboarding-step3 -->
112 </div> <!-- / .row -->
113 </div><!-- / .container-fluid -->
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' %]
123 [% INCLUDE 'installer-intranet-bottom.inc' %]