Bug 14364: Allow automatically canceled expired waiting holds to fill the next hold
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / onboarding / onboardingstep2.tt
1 [% USE Koha %]
2 [% USE KohaDates %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Add a patron category &rsaquo; Web installer &rsaquo; Koha</title>
5 [%# The following if statement checks if the categories variable handed to this template %]
6 [%# by onboarding.pl has data in it. If the categories variable does have data %]
7 [%# in it this means that the user has previously imported sample patron category %]
8 [%# data and so we do not need to show them the create patron category screen 1, %]
9 [%#instead we can display a screen with ubtton redirecting the user to step 3 %]
10 [% IF (categories && categories.count > 1 ) %]
11     <meta http-equiv="refresh" content="0; url=/cgi-bin/koha/installer/onboarding.pl?step=3">
12 [% END %]
13 [% INCLUDE 'installer-doc-head-close.inc' %]
14 </head>
15
16 <body id="installer" class="installer">
17     <div class="container-fluid">
18         <div class="row">
19             <div id="onboarding-step2" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
20                 <div id="logo"><a href="#">Koha</a></div>
21
22                 <h1>Web installer &rsaquo; Create a patron category</h1>
23
24                 [% INCLUDE 'onboarding_messages.inc' %]
25
26                 <div id="steps">
27                     <ol>
28                         <li class="complete"><i class="fa fa-check-square-o" aria-hidden="true"></i> Installation</li>
29                         <li class="current open"><i class="fa fa-square-o" aria-hidden="true"></i> Onboarding
30                             <ol>
31                                 <li class="complete"><i class="fa fa-check-square-o" aria-hidden="true"></i> Create a library</li>
32                                 <li class="current open"><i class="fa fa-square-o" aria-hidden="true"></i> Create a patron category</li>
33                                 <li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Create Koha administrator patron</li>
34                                 <li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Create a new item type</li>
35                                 <li class="open"><i class="fa fa-square-o" aria-hidden="true"></i> Create a new circulation rule</li>
36                             </ol>
37                         </li>
38                     </ol>
39                 </div>
40
41                 <p> The patron category you create will be used by the <span class="bg-info">administrator account</span>.</p>
42
43                 <form id="category_form" method="post" action="onboarding.pl">
44                     <fieldset class="rows">
45                         <input type="hidden" name="step" value="2" />
46                         <input type="hidden" name="op" value="add_validate_category" />
47                         <ol>
48                             <li>
49                                 <label for="categorycode" class="required">Category code: </label>
50                                 <input type="text" pattern="[0-9A-Za-z]{1,10}" id="categorycode" name="categorycode" value="[% category.categorycode | html %]" size="10" maxlength="10" class="required" required="required" />
51                                 <span class="required">Required</span>
52                             </li>
53
54                             <li>
55                                 <label for="description" class="required">Description: </label>
56                                 <input type="text" id="description" name="description" size="40" maxlength="80" class="required" required="required" value="[% category.description | html %]" />
57                                 <span class="required">Required</span>
58                             </li>
59
60                             <li>
61                                 <label for="overduenoticerequired">Overdue notice required: </label>
62                                 <select name="overduenoticerequired" id="overduenoticerequired">
63                                     [% IF category.overduenoticerequired %]
64                                         <option value="0">No</option>
65                                         <option value="1" selected="selected">Yes</option>
66                                     [% ELSE %]
67                                         <option value="0" selected="selected">No</option>
68                                         <option value="1">Yes</option>
69                                     [% END %]
70                                 </select>
71                             </li>
72
73                             <li>
74                                 <span class="label">Category type: </span>
75                                 <input type="hidden" name="category_type" value="S" />
76                                 Staff
77                             </li>
78
79                             <li>
80                                 <label for="default_privacy">Default privacy: </label>
81                                 <select id="default_privacy" name="default_privacy" required="required">
82                                     [% SET default_privacy = 'default' %]
83
84                                     [% IF category %]
85                                         [% SET default_privacy = category.default_privacy %]
86                                     [% END %]
87
88                                     [% SWITCH default_privacy %]
89                                         [% CASE 'forever' %]
90                                             <option value="default">Default</option>
91                                             <option value="never">Never</option>
92                                             <option value="forever" selected="selected">Forever</option>
93                                         [% CASE 'never' %]
94                                             <option value="default">Default</option>
95                                             <option value="never" selected="selected">Never</option>
96                                             <option value="forever">Forever</option>
97                                         [% CASE %]
98                                             <option value="default" selected="selected">Default</option>
99                                             <option value="never">Never</option>
100                                             <option value="forever">Forever</option>
101                                     [% END %]
102                                 </select>
103                                 <div class="hint">
104                                     Controls how long a patrons checkout history is kept for new patrons of this category. "Never" anonymizes checkouts on return, and "Forever" keeps a patron's checkout history indefinitely. When set to "Default", the amount of history kept is controlled by the cronjob <code>batch_anonymise.pl</code> which should be set up by your system administrator.
105                                 </div>
106                             </li>
107                             <li>
108                                 <span class="label">Enrolment period: </span>
109                                 <fieldset class="rows">
110                                     <ol>
111                                         <li>
112                                             <span class="label"></span><strong>Choose one</strong>
113                                         </li>
114                                         <li>
115                                             <label for="enrolmentperiod">In months: </label>
116                                             [% IF category.enrolmentperiod %]
117                                                 <input type="text" inputmode="numeric" pattern="[0-9]*" class="enrolmentperiod" name="enrolmentperiod" id="enrolmentperiod" size="3" value="[% category.enrolmentperiod | html %]" />
118                                             [% ELSE %]
119                                                 <input type="text" inputmode="numeric" pattern="[0-9]*" class="enrolmentperiod" name="enrolmentperiod" id="enrolmentperiod" size="3" value="" />
120                                             [% END %]
121                                         </li>
122                                         <li>
123                                             <label for="enrolmentperioddate">Until date: </label>
124                                             <input type="text" class="enrolmentperioddate" name="enrolmentperioddate" id="enrolmentperioddate" value="[% category.enrolmentperioddate | $KohaDates %]" />
125                                              <div class="hint">[% INCLUDE 'date-format.inc' dateformat = Koha.Preference('dateformat') %]</div>
126                                         </li>
127                                     </ol>
128                                 </fieldset>
129                             </li>
130                         </ol>
131
132                         <p>
133                             To add another patron category and for more settings go to:
134                             <span class="breadcrumbs"> Administration <strong>&rsaquo;</strong> Patron categories</span>
135                         </p>
136
137                         <input type="submit" class="btn btn-primary" value="Submit" />
138                     </fieldset>
139                 </form>
140             </div> <!-- / #onboarding-step2 -->
141         </div> <!-- / .row -->
142     </div><!-- / .container-fluid -->
143
144 [% MACRO jsinclude BLOCK %]
145     [% INCLUDE 'validator-strings.inc' %]
146     [% INCLUDE 'installer-strings.inc' %]
147     <script src="[% interface | html %]/[% theme | html %]/js/onboarding.js"></script>
148 [% END %]
149
150 [% INCLUDE 'installer-intranet-bottom.inc' %]