Bug 22330: Transfer limits should be respected for placing holds in staff interface...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / onboarding / onboardingstep5.tt
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>
11
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>
17
18                 [% IF all_done %]
19
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>
24
25                 [% ELSE %]
26
27                     <h2>Web installer &rsaquo; Create a new circulation rule </h2>
28
29                     [% INCLUDE 'onboarding_messages.inc' %]
30
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>
58
59                                 <li>
60                                     <label for="itemtype"> 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>
75
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">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 %]
89
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                                 </li>
100                                 <li>
101                                     <label for="renewalsallowed" class="required">Renewals allowed: </label>
102                                     <input type="number" min="0" name="renewalsallowed" id="renewalsallowed" size="10" max="10" value="10" class="required" required="required" />
103                                     <span class="required">Required</span>
104                                 </li>
105
106                                 <li>
107                                     <label for="renewalperiod" class="required">Renewals period: </label>
108                                     <input type="number" min="0" name="renewalperiod" id="renewalperiod" size="10" value="14" class="required" required="required" />
109                                     <span class="required">Required</span>
110                                 </li>
111
112                                 <li>
113                                     <label for="onshelfholds">On shelf holds allowed: </label>
114                                     <select name="onshelfholds" id="onshelfholds" required="required">
115                                         <option value="">Choose</option>
116                                         <option value="1" selected="selected">Yes</option>
117                                         <option value="0">If any unavailable</option>
118                                         <option value="2">If all unavailable</option>
119                                     </select>
120                                 </li>
121                             </ol>
122                             <p>
123                                 To create circulation rule, go to:
124                                 <span class="breadcrumbs">Administration &rsaquo; Circulation and fine rules </span>
125                             </p>
126
127                         </fieldset>
128
129                         <input type="submit" class="btn btn-primary" value="Submit" />
130                     </form>
131                 [% END %]
132             </div> <!-- / #onboarding-step5 -->
133         </div> <!-- / .row -->
134     </div><!-- / .container-fluid -->
135
136 [% MACRO jsinclude BLOCK %]
137     [% INCLUDE 'validator-strings.inc' %]
138     [% INCLUDE 'installer-strings.inc' %]
139     <script src="[% interface | html %]/[% theme | html %]/js/onboarding.js"></script>
140 [% END %]
141
142 [% INCLUDE 'installer-intranet-bottom.inc' %]