Bug 25409: Add missing "Required" text and "required" classes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / onboarding / onboardingstep5.tt
blobe70870f500e4479d351cf08fab658c470de16030
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Web installer &rsaquo;
3     [% IF all_done %]
4         Complete
5     [% ELSE %]
6         Create circulation rule
7     [% END %]
8 </title>
9 [% INCLUDE 'installer-doc-head-close.inc' %]
10 </head>
12 <body id="installer" class="installer">
13     <div class="container-fluid">
14         <div class="row">
15             <div id="onboarding-step5" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
16                 <h1 id="logo"><a href="#">Koha</a></h1>
18                 [% IF all_done %]
20                     <h2>Web installer &rsaquo; Complete</h2>
21                     [% INCLUDE 'onboarding_messages.inc' %]
22                     <h3>Congratulations you have finished and are ready to use Koha</h3>
23                     <a class="btn btn-success" href="/cgi-bin/koha/mainpage.pl">Start using Koha</a>
25                 [% ELSE %]
27                     <h2>Web installer &rsaquo; Create a new circulation rule </h2>
29                     [% INCLUDE 'onboarding_messages.inc' %]
31                     <form name="createcirculationrule" method="post" action="onboarding.pl">
32                         <fieldset class="rows">
33                             <input type="hidden" name="step" value="5"/>
34                             <input type="hidden" name="op" value="add_validate_circ_rule" />
35                             <ol>
36                                 <li>
37                                     <label for="branchname" class="required"> Library branch</label>
38                                     <select name="branch" id="branchname" required="required">
39                                         <option value=""> Choose</option>
40                                         <option value="*" selected="selected">All</option>
41                                         [% FOREACH library IN libraries %]
42                                             <option value="[% library.branchcode | html %]"> [% library.branchname | html %]</option>
43                                         [% END %]
44                                     </select>
45                                     <span class="required">Required</span>
46                                 </li>
47                                 <li>
48                                     <label for="categorycode" class="required">Patron category: </label>
49                                     <select name="categorycode" id="categorycode" required="required">
50                                         <option value=""> Choose</option>
51                                         <option value="*" selected="selected">All</option>
52                                         [% FOREACH category IN categories %]
53                                             <option value = "[% category.categorycode | html %]"> [% category.description | html %]</option>
54                                         [%END%]
55                                     </select>
56                                     <span class="required">Required</span>
57                                 </li>
59                                 <li>
60                                     <label for="itemtype" class="required">Item type: </label>
61                                     <select id="itemtype" name="itemtype" required="required">
62                                         <option value=""> Choose </option>
63                                         <option value="*" selected="selected">All</option>
64                                         [% FOREACH item IN itemtypes %]
65                                             <option value = "[% item.itemtype | html %]"> [% item.itemtype | html %]
66                                         [%END%]
67                                     </select>
68                                     <span class="required"> Required</span>
69                                 </li>
70                                 <li>
71                                     <label for="maxissueqty" class="required">Current checkouts allowed: </label>
72                                     <input type="number" min="0" name="maxissueqty" id="maxissueqty" size="10" value="50" class="required" required="required" />
73                                     <span class="required">Required</span>
74                                 </li>
76                                 <li>
77                                     <label for="issuelength" class="required">Loan period: </label>
78                                     <input type="number" min="0" name="issuelength" id="issuelength" size="10" value="14" class="required" required="required" />
79                                     <span class="required">Required</span>
80                                 </li>
81                                 <li>
82                                     <label for="lengthunit" class="required">Units: </label>
83                                     <select name="lengthunit" id="lengthunit" required="required">
84                                         <option value=""> Choose </option>
85                                         [% SET units = 'days' %]
86                                         [% IF category %]
87                                             [% SET default_privacy = category.default_privacy %]
88                                         [% END %]
90                                         [% SWITCH units %]
91                                         [% CASE 'days' %]
92                                             <option value="days" selected="selected">Days</option>
93                                             <option value="hours">Hours</option>
94                                         [% CASE 'hours' %]
95                                             <option value="days">Days</option>
96                                             <option value="hours" selected="selected">Hours</option>
97                                         [% END %]
98                                     </select>
99                                     <span class="required">Required</span>
100                                 </li>
101                                 <li>
102                                     <label for="renewalsallowed" class="required">Renewals allowed: </label>
103                                     <input type="number" min="0" name="renewalsallowed" id="renewalsallowed" size="10" max="10" value="10" class="required" required="required" />
104                                     <span class="required">Required</span>
105                                 </li>
107                                 <li>
108                                     <label for="renewalperiod" class="required">Renewals period: </label>
109                                     <input type="number" min="0" name="renewalperiod" id="renewalperiod" size="10" value="14" class="required" required="required" />
110                                     <span class="required">Required</span>
111                                 </li>
113                                 <li>
114                                     <label for="reservesallowed">Holds allowed (total): </label>
115                                     <input type="number" name="reservesallowed" id="reservesallowed" size="10" value="10" min="0">
116                                 </li>
118                                 <li>
119                                     <label for="holds_per_day">Holds allowed (daily): </label>
120                                     <input type="number" name="holds_per_day" id="holds_per_day" size="10" value="10" min="0">
121                                 </li>
123                                 <li>
124                                     <label for="holds_per_record">Holds per record (count): </label>
125                                     <input type="number" name="holds_per_record" id="holds_per_record" size="10" value="1" min="0">
126                                 </li>
128                                 <li>
129                                     <label for="onshelfholds">On shelf holds allowed: </label>
130                                     <select name="onshelfholds" id="onshelfholds" required="required">
131                                         <option value="">Choose</option>
132                                         <option value="1" selected="selected">Yes</option>
133                                         <option value="0">If any unavailable</option>
134                                         <option value="2">If all unavailable</option>
135                                     </select>
136                                 </li>
137                             </ol>
138                             <p>
139                                 To create circulation rule, go to:
140                                 <span class="breadcrumbs">Administration &rsaquo; Circulation and fine rules </span>
141                             </p>
143                         </fieldset>
145                         <input type="submit" class="btn btn-primary" value="Submit" />
146                     </form>
147                 [% END %]
148             </div> <!-- / #onboarding-step5 -->
149         </div> <!-- / .row -->
150     </div><!-- / .container-fluid -->
152 [% MACRO jsinclude BLOCK %]
153     [% INCLUDE 'validator-strings.inc' %]
154     [% INCLUDE 'installer-strings.inc' %]
155     <script src="[% interface | html %]/[% theme | html %]/js/onboarding.js"></script>
156 [% END %]
158 [% INCLUDE 'installer-intranet-bottom.inc' %]