View | Details | Raw Unified | Return to bug 18462
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt (-231 / +237 lines)
Lines 1-284 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
2
<title>Koha &rsaquo; Web installer &rsaquo;
3
<title>Koha &rsaquo; Web installer &rsaquo;
3
    [% IF ( proposeimport ) %]
4
     [% IF ( proposeimport ) %]
4
        Set up database
5
         Set up database
5
    [% END %]
6
     [% END %]
6
    [% IF ( importdatastructure ) %]
7
     [% IF ( importdatastructure ) %]
7
        [% IF ( error ) %]
8
         [% IF ( error ) %]
8
            Error creating database tables
9
           Error creating database tables
9
        [% ELSE %]
10
         [% ELSE %]
10
            Database tables created
11
           Database tables created
11
        [% END %]
12
         [% END %]
12
    [% END %]
13
     [% END %]
13
    [% IF ( default ) %]
14
     [% IF ( default ) %]
14
        [% IF ( upgrading ) %]
15
        [% IF ( upgrading ) %]
15
            Update database
16
            Update database
16
        [% ELSE %]
17
        [% ELSE %]
17
            Install basic configuration settings
18
            Install basic configuration settings
18
        [% END %]
19
        [% END %]
19
    [% END %]
20
     [% END %]
20
    [% IF ( choosemarc ) %]
21
     [% IF ( choosemarc ) %]
21
        Select your MARC flavor
22
        Select your MARC flavor
22
    [% END %]
23
     [% END %]
23
    [% IF ( selectframeworks ) %]
24
     [% IF ( selectframeworks ) %]
24
        Selecting default settings
25
        Selecting default settings
25
    [% END %]
26
     [% END %]
26
</title>
27
</title>
27
[% IF ( finish ) %]<meta http-equiv="refresh" content="5; url=/cgi-bin/koha/installer/onboarding.pl">[% END %]
28
[% IF ( finish ) %]<meta http-equiv="refresh" content="10; url=/cgi-bin/koha/installer/onboarding.pl">[% END %]
28
[% INCLUDE 'installer-doc-head-close.inc' %]
29
[% INCLUDE 'installer-doc-head-close.inc' %]
29
30
<div class="container-fluid">
30
<div class="container-fluid">
31
    <div class="row">
31
    <div class="row">
32
        <div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
32
        <div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
33
34
            <h1 id="logo"><a href="#">Koha</a></h1>
33
            <h1 id="logo"><a href="#">Koha</a></h1>
34
[% IF ( selectframeworks ) %]
35
    <script type="text/javascript">
36
    //<![CDATA[
35
37
36
            [% IF ( finish ) %]
38
    var surl = unescape(window.location.pathname);
37
                <h2>Web installer &rsaquo; Installation complete</h2>
38
                <h3>Congratulations, installation complete</h3>
39
                <p>
40
                    If this page does not redirect in 5 seconds, <a href="/cgi-bin/koha/installer/onboarding.pl">Start onboarding process</a>.
41
                </p>
42
            [% END %]
43
39
40
    function doLoad()
41
{
42
        // the timeout value should be the same as in the "refresh" meta-tag
43
        setTimeout( "refresh()", 2*1000 );
44
}
44
45
45
            [% IF ( choosemarc ) %]
46
function refresh(value)
46
                <h2>Choose your setup</h2>
47
{
47
                <p>Basic setup selects recommended settings by default.</p>
48
        //  The argument to the location.reload function determines
48
                <form name="frameworkselection" method="post" action="install.pl">
49
        //  if the browser should retrieve the document from the
49
                    <input type="hidden" name="step" value="3" />
50
        //  web-server.  In our example all we need to do is cause
50
                    <input type="hidden" name="op" value="selectframeworks"/>
51
        //  the JavaScript block in the document body to be
52
        //  re-evaluated.  If we needed to pull the document from
53
        //  the web-server again (such as where the document contents
54
        //  change dynamically) we would pass the argument as 'true'.
55
        //
56
        surl=surl+'?step=3&op=selectframeworks&fwklanguage='+value;
51
57
52
                    <p>
58
            window.location.replace( surl );
53
                        <label><input type="radio" name="setup" value="Basic" checked="checked" /> Basic</label>
59
}
54
                    </p>
55
                    <p>
56
                        <label><input type="radio" name="setup" value="Advanced"/> Advanced</label>
57
                    </p>
58
60
59
                    <h2>Select your MARC flavor</h2>
61
function selectAllFrameworks()
60
                    <p>MARC stands for Machine Readable Cataloging, containing information about a bibliographic record. MARC21 is used globally, whereas UNIMARC tends to be used in Europe. </p>
62
{
63
        //  A handy short link that selects all available checkboxes
64
        //  on the page.
65
        //
66
        var checkboxes = document.getElementsByTagName("input");
67
        for (var i = 0; i < checkboxes.length; i++)
68
        {
69
           if (checkboxes[i].type == 'checkbox')
70
           {
71
               checkboxes[i].checked = true;
72
           }
73
        }
61
74
62
                    [% FOREACH flavourloo IN flavourloop %]
75
         //  Prevent event propergation.
63
                        [% IF ( flavourloo.label == "Unimarc") %]
76
        return false;
64
                             <p>
77
}
65
                                 <label><input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %]</label>
66
                             </p>
67
                        [% ELSE %]
68
                             <p>
69
                                 <label><input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked="checked" /> [% flavourloo.label %]</label>
70
                             </p>
71
                        [% END %]
72
                    [% END %]
73
                    <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /> </p>
74
                </form>
75
            [% END # / IF choosemarc %]
76
78
77
            [% IF ( selectframeworks ) %]
79
function Hide(link)
78
                <h2>Web installer &rsaquo; [% setup %] setup &rsaquo; Selecting default settings</h2>
80
{
81
        //  Toggle the display of a given element on the page.
82
        //
83
        subfield = document.getElementById('bloc'+link);
84
        var initstyle = subfield.style.display;
85
        if (initstyle == 'block') subfield.style.display = 'none' ;
86
        if (initstyle == 'none') subfield.style.display = 'block' ;
87
}
79
88
80
                [% IF setup == "Advanced" %]
89
//]]>
81
                    <p id="selectall"><a href="#">Select all sample data</a></p>
90
</script>
82
                [% END %]
91
[% END %]
83
92
84
[% IF ( choosemarc ) %]
93
85
   <h2 align="center">Select your MARC flavor</h2>
94
[% IF ( finish ) %]
86
       <form name="frameworkselection" method="post" action="install.pl">
95
    <h2>Web installer &rsaquo; Installation complete</h2>
87
           <input type="hidden" name="step" value="3" />
96
    <p>If this page does not redirect in 10 seconds, click <a href="/cgi-bin/koha/installer/onboarding.pl">Start onboarding process</a>.</p>
88
           <input type="hidden" name="op" value="selectframeworks" />
89
           <p>
90
           [% FOREACH flavourloo IN flavourloop %]
91
           <div>
92
              [% IF ( flavourloo.checked ) %]
93
                  <input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked /> [% flavourloo.label %] <br/>
94
              [% ELSE %]
95
                  <input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %] <br/>
96
              [% END %]
97
           </div>
98
           [% END %]
99
           </p>
100
           <p> Click 'Next' to continue <input value="Next &gt;&gt;" type="submit" /></p>
101
           </form>
102
[% END %]
97
[% END %]
103
98
99
100
[% IF ( choosemarc ) %]
101
  <h2 align="center">Select your MARC flavor</h2>
102
  <form name="frameworkselection" method="post" action="install.pl">
103
     <input type="hidden" name="step" value="3" />
104
     <input type="hidden" name="op" value="selectframeworks" />
105
     <p>
106
     [% FOREACH flavourloo IN flavourloop %]
107
     <div>
108
          [% IF ( flavourloo.checked ) %]
109
             <input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked /> [% flavourloo.label %] <br/>
110
          [% ELSE %]
111
             <input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %] <br/>
112
          [% END %]
113
     </div>
114
     [% END %]
115
     </p>
116
     <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
117
</form>
118
[% END %]
104
[% IF ( selectframeworks ) %]
119
[% IF ( selectframeworks ) %]
105
<h2 align="center">Selecting Default Settings</h2>
120
    <h2>Web installer &rsaquo; [% setup %] setup &rsaquo; Selecting default settings</h2>
106
    <script type="text/javascript">
121
    <script type="text/javascript">
107
       var linklabel = _("Select all sample data");
122
       var linklabel = _("Select all sample data");
108
       document.write('<p><a href="#" onclick="return selectAllFrameworks();">'+linklabel+'</a></p>');
123
       document.write('<p><a href="#" onclick="return selectAllFrameworks();">'+linklabel+'</a></p>');
109
    </script>
124
    </script>
110
    <form name="frameworkselection" method="post" action="install.pl">
125
    <form name="frameworkselection" method="post" action="install.pl">
111
    <input type="hidden" name="step" value="3" />
126
        <input type="hidden" name="step" value="3" />
112
    <input type="hidden" name="op" value="addframeworks" />
127
        <input type="hidden" name="op" value="addframeworks" />
113
128
        [% IF ( frameworksloop ) %]
114
    [% IF ( frameworksloop ) %]
129
           <h2>MARC frameworks: [% marcflavour %]</h2>
115
    <h2>MARC frameworks: [% marcflavour %]</h2>
130
           [% IF ( en_marc_frameworks ) %]
116
    [% IF ( en_marc_frameworks ) %]
131
               <h4><span class="error">No MARC frameworks are available for your language.
117
         <h4><span class="error">No MARC frameworks are available for your language.
132
               Defaulting to the frameworks supplied for English (en)<span></h4>
118
                Defaulting to the frameworks supplied for English (en)<span></h4>
133
           [% END %]
119
    [% END %]
134
           [% FOREACH frameworksloo IN frameworksloop %]
120
    [% FOREACH frameworksloo IN frameworksloop %]
135
           <div>
121
    <div>
136
               <h3>[% frameworksloo.label %]</h3>
122
    <h3>[% frameworksloo.label %]</h3>
137
               [% FOREACH framework IN frameworksloo.frameworks %]
123
    [% FOREACH framework IN frameworksloo.frameworks %]
138
                  <table style="border:1px;vertical-align:top;">
124
       <table style="border:1px;vertical-align:top;">
139
                  <tr>
125
       <tr>
140
                  <td style="vertical-align:top;">
126
       <td style="vertical-align:top;">
141
                      [% IF ( framework.checked ) %]
127
          [% IF ( framework.checked ) %]
142
                          <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" />
128
               <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" />
143
                      [% ELSE %]
129
          [% ELSE %]
144
                          <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
130
               <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
145
                      [% END %]
146
                   </td>
147
                   <td>
148
                      <label for="[% framework.fwkname %]">
149
                      [% framework.fwkdescription %]
150
                      <em>([% framework.fwkname %])</em>
151
                      </label>
152
                   </td>
153
                   </table>
154
               [% END %]
155
          </div>
131
          [% END %]
156
          [% END %]
132
       </td>
157
          <h2>Other data</h2>
133
       <td>
158
      [% END %]
134
          <label for="[% framework.fwkname %]">
159
      [% IF ( en_sample_data ) %]
135
               [% framework.fwkdescription %]
160
           <h4><span class="error">No sample data and settings are available for your language.
136
               <em>([% framework.fwkname %])</em>
161
           Defaulting to the samples supplied for English (en)<span></h4>
137
           </label>
162
      [% END %]
138
       </td>
163
      [% FOREACH levelloo IN levelloop %]
139
       </table>
164
            <div>
140
     [% END %]
165
                 <h3>[% levelloo.label %]</h3>
141
     </div>
166
                      [% FOREACH framework IN levelloo.frameworks %]
142
     [% END %]
167
                         <table style="border:1px;vertical-align:top;">
143
     <h2>Other data</h2>
168
                         <tr>
144
     [% END %]
169
                         <td style="vertical-align:top;">
145
     [% IF ( en_sample_data ) %]
170
                           [% IF ( framework.checked ) %]
146
         <h4><span class="error">No sample data and settings are available for your language.
171
                             <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" />
147
                 Defaulting to the samples supplied for English (en)<span></h4>
172
                           [% ELSE %]
148
     [% END %]
173
                             <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
149
     [% FOREACH levelloo IN levelloop %]
174
                           [% END %]
150
     <div>
175
                         </td>
151
     <h3>[% levelloo.label %]</h3>
176
                         <td>
152
     [% FOREACH framework IN levelloo.frameworks %]
177
                            <label for="[% framework.fwkname %]">
153
        <table style="border:1px;vertical-align:top;">
178
                            [% framework.fwkdescription %]
154
        <tr>
179
                            <em>([% framework.fwkname %])</em>
155
        <td style="vertical-align:top;">
180
                            </label>
156
            [% IF ( framework.checked ) %]
181
                         </td>
157
                <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" />
182
                         </table>
158
            [% ELSE %]
183
                      [% END %]
159
                <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
184
           </div>
160
            [% END %]
185
      [% END %]
161
        </td>
186
      <p>When you've made your selections, please click 'Import' below to begin the process. It may take a while to complete,
162
        <td>
187
      please be patient.</p>
163
                <label for="[% framework.fwkname %]">
188
      <p><input type="submit" value="Import" class="btn btn-primary" /></p>
164
                    [% framework.fwkdescription %]
189
      </p>
165
                    <em>([% framework.fwkname %])</em>
166
                </label>
167
        </td>
168
        </table>
169
     [% END %]
170
     </div>
171
     [% END %]
172
     <p>When you've made your selections, please click 'Import' below to begin the process. It may take a while to complete,
173
     please be patient.</p>
174
     <p><input type="submit" value="Import &gt;&gt;" />
175
     </p>
176
     </form>
190
     </form>
177
[% END %]
191
[% END %]
178
192
179
180
[% IF ( addframeworks ) %]
193
[% IF ( addframeworks ) %]
194
    <h2>Web installer &rsaquo; Default data loaded</h2>
181
    [% FOREACH lis IN list %]
195
    [% FOREACH lis IN list %]
182
    <h3>[% lis.level %] data added</h3>
196
        <h3>[% lis.level %] data added</h3>
183
    <ul>
197
            <ul>
184
    [% FOREACH fwklis IN lis.fwklist %]
198
                [% FOREACH fwklis IN lis.fwklist %]
185
        <li>[% fwklis.fwkname %][% IF ( fwklis.error ) %]<br /><span class="error">[% fwklis.error %]</span>[% END %] </li>
199
                  <li>[% fwklis.fwkname %][% IF ( fwklis.error ) %]<br /><span class="error">[% fwklis.error %]</span>[% END %] </li>
186
    [% END %]
200
                [% END %]
187
    </ul>
201
            </ul>
188
    [% END %]
202
     [% END %]
189
    <h3>All done!</h3>
203
     <h3>All done!</h3>
190
    <p>Installation complete.<br />
204
     <p>Installation complete.<br />
191
        <p>
205
     <p>
192
            You can help the Koha community by sharing your statistics with us.
206
        You can help the Koha community by sharing your statistics with us.
193
            <br>If you wish to share some of your data, please enable the functionality in the "Share your usage statistics" section of the admin module.
207
        <br>If you wish to share some of your data, please enable the functionality in the "Share your usage statistics" section of the admin module.
194
        </p>
208
     </p>
195
        <p>Click on 'Set up Koha with the onboarding tool' to complete and load the Koha onboarding tool.
209
     <p>Click on 'Set up Koha with the onboarding tool' to complete and load the Koha onboarding tool.
196
        <form name="finish">
210
     <form name="finish">
197
        <input type="hidden" name="step" value="3" />
211
          <input type="hidden" name="step" value="3" />
198
        <input type="hidden" name="op" value="finish" />
212
          <input type="hidden" name="op" value="finish" />
199
        <input type="submit" value="Set up Koha with the onboarding tool"/>
213
          <p> <input value="Set up Koha with the onboarding tool" class="btn btn-primary" type="submit" /> </p>
200
        </form>
214
     </form>
201
        </p>
215
     </p>
202
    </p>
216
  </p>
203
[% END %]
217
[% END %]
204
218
205
            [% IF ( proposeimport ) %]
219
[% IF ( importdatastructure ) %]
206
                <h2>Web installer &rsaquo; Set up database</h2>
220
    [% IF ( error ) %]
207
                <p>Now we're ready to create the database tables and fill them with some default data.</p>
221
        <p>The following error occurred while importing the database structure:</p>
208
                <form action="install.pl" method="post">
222
        <p class="error">[% error %] </p>
209
                    <input type="hidden" name="step" value="3" />
223
        <p>Please contact your system administrator</p>
210
                    <input type="hidden" name="op" value="importdatastructure" />
224
    [% ELSE %]
211
                    <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
225
        <h2>Web installer &rsaquo; Success</h2>
212
                </form>
226
        <ul>
213
            [% END %]
227
           <li>Database tables created</li>
214
228
        </ul>
215
            [% IF ( default ) %]
229
        <form action="install.pl">
216
                [% IF ( upgrading ) %]
230
              <input type="hidden" name="step" value="3" />
217
                    <h2>Web installer &rsaquo; Update database</h2>
231
              <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
218
                    <p>We are upgrading from Koha [% dbversion %] to [% kohaversion %]</p>
232
        </form>
219
                    <p><a href="install.pl?step=3&amp;op=updatestructure" class="btn btn-primary">Update your database</a></p>
233
    [% END %]
220
                [% ELSE %]
234
[% END %]
221
                    <h2>Web installer &rsaquo; Install basic configuration settings</h2>
222
                    <p>We are ready to do some basic configuration.</p>
223
                    <p> <a href="install.pl?step=3&amp;op=choosemarc" class="btn btn-primary">Continue to the next step</a> </p>
224
                [% END %]
225
            [% END %]
226
235
227
            [% IF ( updatestructure ) %]
236
[% IF ( proposeimport ) %]
228
                <h2>Updating database structure</h2>
237
    <h2>Web installer &rsaquo; Set up database</h2>
229
                [% IF ( has_update_succeeds ) %]
238
    <p>Now we're ready to create the database tables and fill them with some default data.</p>
230
                    <p>Update report :</p>
239
        <form action="install.pl">
231
                    <ul>
240
            <input type="hidden" name="step" value="3" />
232
                        [% FOREACH update_repor IN update_report %]
241
            <input type="hidden" name="op" value="importdatastructure" />
233
                            <li>[% update_repor.line |html %]</li>
242
            <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
234
                        [% END %]
243
        </form>
235
                    </ul>
244
[% END %]
236
                [% END %]
237
245
238
[% IF ( default ) %]
246
[% IF ( default ) %]
239
    [% IF ( upgrading ) %]
247
     [% IF ( upgrading ) %]
240
        <p>
248
        <h2>Web installer &rsaquo; Update database</h2>
241
            We are upgrading from Koha [% dbversion %] to [% kohaversion %], you must update your database.
249
        <p> We are upgrading from Koha [% dbversion %] to [% kohaversion %], you must update your database.
242
        <br>
250
        <br>
243
        <a href="install.pl?step=3&amp;op=updatestructure" class="button">Update your database</a>
251
        <a href="install.pl?step=3&amp;op=updatestructure" class="button">Update your database</a>
244
        </p>
252
        </p>
245
    [% ELSE %]
253
     [% ELSE %]
254
        <h2>Web installer &rsaquo; Install basic configuration settings</h2>
246
        <p>We are ready to do some basic configuration. Please install some basic configuration settings to continue the installation:
255
        <p>We are ready to do some basic configuration. Please install some basic configuration settings to continue the installation:
247
        <br>
256
        <br>
248
        <br>
257
        <br>
249
            <a href="install.pl?step=3&amp;op=choosemarc" class="button">Install basic configuration settings</a>
258
        <p> <a href="install.pl?step=3&amp;op=choosemarc" class="btn btn-primary">Install basic configuration settings</a> </p>
250
259
     [% END %]
251
                [% UNLESS ( has_update_errors ) %]
260
[% END %]
252
                    <p>Everything went okay. Update done.</p>
253
                [% END %]
254
                <p><a href="install.pl?step=3&amp;op=finished" class="btn btn-primary">Continue to log in to Koha</a></p>
255
           [% END # / IF updatestructure %]
256
    </div>
257
</div>
258
261
259
[% IF ( updatestructure ) %]
262
[% IF ( updatestructure ) %]
260
  <div><h2 align="center">Updating database structure</h2>
263
  <div><h2 align="center">Updating database structure</h2>
261
  [% IF ( has_update_succeeds ) %]
264
    [% IF ( has_update_succeeds ) %]
262
  <p>Update report :</p>
265
      <p>Update report :</p>
263
    <ul>
266
      <ul>
264
      [% FOREACH update_repor IN update_report %]
267
        [% FOREACH update_repor IN update_report %]
265
          <li>[% update_repor.line |html %]</li>
268
             <li>[% update_repor.line |html %]</li>
266
      [% END %]
269
        [% END %]
267
    </ul>
270
      </ul>
268
  [% END %]
271
    [% END %]
269
  [% IF ( has_update_errors ) %]
272
    [% IF ( has_update_errors ) %]
270
  <p>Update errors :</p>
273
        <p>Update errors :</p>
271
    <ul>
274
        <ul>
272
      [% FOREACH update_error IN update_errors %]
275
            [% FOREACH update_error IN update_errors %]
273
          <li class="update_error">[% update_error.line |html %]</li>
276
                <li class="update_error">[% update_error.line |html %]</li>
274
      [% END %]
277
            [% END %]
275
    </ul>
278
        </ul>
276
  [% END %]
279
    [% END %]
277
 [% UNLESS ( has_update_errors ) %]
280
    [% UNLESS ( has_update_errors ) %]
278
    <p>Everything went OK, update done.</p>
281
        <p>Everything went OK, update done.</p>
279
  [% END %]
282
    [% END %]
280
<a href="install.pl?step=3&amp;op=finished" class="button">Continue to log in to Koha</a>
283
    <a href="install.pl?step=3&amp;op=finished" class="button">Continue to log in to Koha</a>
281
  </div>
284
   </div>
282
[% END %]
285
[% END %]
283
286
</div>
284
[% INCLUDE 'intranet-bottom.inc' %]
287
</div>
288
</div>
289
</body>
290
</html>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep1.tt (-34 / +35 lines)
Lines 2-38 Link Here
2
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
2
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
3
[% INCLUDE 'installer-doc-head-close.inc' %]
3
[% INCLUDE 'installer-doc-head-close.inc' %]
4
[% INCLUDE 'datatables.inc' %]
4
[% INCLUDE 'datatables.inc' %]
5
5
<body id="installer" class="installer">
6
<head><title>Welcome &rsaquo; to  &rsaquo; Koha</title></head>
6
     <div class="container-fluid">
7
7
            <div class="row">
8
<div>
8
                <div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
9
    <h1 id="logo"><img alt="Koha" src="[% interface %]/[% theme %]/img/koha.org-logo.gif"/> Welcome to Koha</h1>
9
                    <h1 id="logo"><a href="#">Koha</a></h1>
10
</div>
10
                    [% INCLUDE 'onboarding_messages.inc' %]
11
11
                    <form name="LibraryCreation" method="post" action="onboarding.pl">
12
[% INCLUDE 'onboarding_messages.inc' %]
12
                        <fieldset class="rows" >
13
13
                             <h2>Web installer &rsaquo; Create a library</h2>
14
<form name="LibraryCreation" method="post" action="onboarding.pl">
14
                             <input type="hidden" name="step" value="1"/>
15
    <fieldset class="rows" >
15
                             <input type="hidden" name="op" value="add_validate_library"/>
16
         <h2>Create a library</h2>
16
                            <ol>
17
         <input type="hidden" name="step" value="1"/>
17
                                <li>
18
         <input type="hidden" name="op" value="add_validate_library"/>
18
                                    <label for="branchcode" class="required">Library code: </label>
19
         <ol>
19
                                    <input type="text"  pattern="[0-9A-Za-z]{1,10}" title="Please enter up to 10 letters and/or numbers" name="branchcode" id="branchcode" size="10" maxlength="10" value="" class="required" required="required" />
20
             <li>
20
                                    <span class="required">Required</span>
21
                <label for="branchcode" class="required">Library code: </label>
21
                                </li>
22
                <input type="text"  pattern="[0-9A-Za-z]{1,10}" title="Please enter up to 10 letters and/or numbers" name="branchcode" id="branchcode" size="10" maxlength="10" value="" class="required" required="required" />
22
                                <li>
23
                <span class="required">Required</span>
23
                                    <label for="branchname" class="required">Name: </label>
24
            </li>
24
                                    <input type="text" name="branchname" id="branchname" title="Please enter the name of your institution" size="42" value="" class="required" required="required" style="width:200px;">
25
            <li>
25
                                    <span class="required">Required</span>
26
                <label for="branchname" class="required">Name: </label>
26
                                </li>
27
                <input type="text" name="branchname" id="branchname" title="Please enter the name of your institution" size="42" value="" class="required" required="required" style="width:200px;">
27
                            </ol>
28
                <span class="required">Required</span>
28
                            <p>
29
            </li>
29
                            To add another library and for more settings, <br>
30
         </ol>
30
                            go to:<br>
31
         <p>
31
                            More -> Administration -> Libraries and groups<br>
32
            To add another library and for more settings, <br>
32
                            </p>
33
            go to:<br>
33
                            <input type="submit" class="btn btn-primary" value="Submit" />
34
            More -> Administration -> Libraries and groups<br>
34
                            </fieldset>
35
         </p>
35
                    </form>
36
         <input type="submit" class="action" value="Submit"/>
36
                </div>
37
    </fieldset>
37
            </div>
38
</form>
38
        </div>
39
</body>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt (-85 / +89 lines)
Lines 18-114 Link Here
18
<script type="text/javascript" src="[% interface %]/[% theme %]/js/onboarding.js"></script>
18
<script type="text/javascript" src="[% interface %]/[% theme %]/js/onboarding.js"></script>
19
</head>
19
</head>
20
20
21
<div>
21
<body id="installer" class="installer">
22
    <h1 id="logo"><img alt="Koha" src="[% interface %]/[% theme %]/img/koha.org-logo.gif"/> Welcome to Koha</h1>
22
    <div class="container-fluid">
23
</div>
23
         <div class="row">
24
24
             <div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
25
[% INCLUDE 'onboarding_messages.inc' %]
25
                <h1 id="logo"><a href="#">Koha</a></h1>
26
<h1 align="left"> Create a new patron category</h1>
26
                [% INCLUDE 'onboarding_messages.inc' %]
27
<p> The patron category you create in this form is going to be the one which the new administrator patron account will have.</p>
27
                <h2>Web installer &rsaquo; Create a patron category</h2>
28
   <form id="category_form" method="post" action="onboarding.pl">
28
                <p> The patron category you create in this form is going to be the one which the new administrator patron account will have.</p>
29
   <fieldset class="rows">
29
                <form id="category_form" method="post" action="onboarding.pl">
30
        <input type="hidden" name="step" value="2"/>
30
                    <fieldset class="rows">
31
        <input type="hidden" name="op" value="add_validate_category" />
31
                        <input type="hidden" name="step" value="2"/>
32
            <ol>
32
                        <input type="hidden" name="op" value="add_validate_category" />
33
                <li>
33
                        <ol>
34
                    <label for="categorycode" class="required">Category code: </label>
34
                            <li>
35
                    <input type="text" pattern="[0-9A-Za-z]{1,10}" title="Please enter up to 10 letters and/or numbers" id="categorycode" name="categorycode" value="[% category.categorycode |html %]" size="10" maxlength="10" class="required" required="required" />
35
                                <label for="categorycode" class="required">Category code: </label>
36
                    <span class="required">Required</span>
36
                                <input type="text" pattern="[0-9A-Za-z]{1,10}" title="Please enter up to 10 letters and/or numbers" id="categorycode" name="categorycode" value="[% category.categorycode |html %]" size="10" maxlength="10" class="required" required="required" />
37
                </li>
37
                                <span class="required">Required</span>
38
38
                            </li>
39
                <li>
40
                    <label for="description" class="required">Description: </label>
41
                    <input type="text" name="description" title="Please enter a description of the category" size="40" maxlength="80" class="required" required="required" value="[% category.description |html%]" />
42
                    <span class="required">Required</span>
43
                </li>
44
45
                <li>
46
                    <label for="overduenoticerequired">Overdue notice required: </label>
47
                    <select name="overduenoticerequired" value="overduenoticerequired">
48
                        [% IF category.overduenoticerequired %]
49
                            <option value="0">No</option>
50
                            <option value="1" selected="selected">Yes</option>
51
                        [% ELSE %]
52
                            <option value="0" selected="selected">No</option>
53
                            <option value="1">Yes</option>
54
                        [% END %]
55
                    </select>
56
                </li>
57
58
                <li>
59
                    <label for="category_type" class="required">Category type: </label>
60
                    Staff
61
                </li>
62
63
                <li>
64
                    <label for="default_privacy">Default privacy: </label>
65
                    <select value="default_privacy" name="default_privacy" required="required">
66
                        [% SET default_privacy = 'default' %]
67
39
68
                        [% IF category %]
40
                            <li>
69
                           [% SET default_privacy = category.default_privacy %]
41
                                <label for="description" class="required">Description: </label>
70
                        [% END %]
42
                                <input type="text" name="description" title="Please enter a description of the category" size="40" maxlength="80" class="required" required="required" value="[% category.description |html%]" />
43
                                <span class="required">Required</span>
44
                            </li>
71
45
72
                        [% SWITCH default_privacy %]
73
                        [% CASE 'forever' %]
74
                            <option value="default">Default</option>
75
                            <option value="never">Never</option>
76
                            <option value="forever" selected="selected">Forever</option>
77
                        [% CASE 'never' %]
78
                            <option value="default">Default</option>
79
                            <option value="never" selected="selected">Never</option>
80
                            <option value="forever">Forever</option>
81
                        [% CASE %]
82
                            <option value="default" selected="selected">Default</option>
83
                            <option value="never">Never</option>
84
                            <option value="forever">Forever</option>
85
                        [% END %]
86
                    </select>
87
                    <p>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 <i>batch_anonymise.pl</i> which should be set up by your system administrator.</p>
88
                </li>
89
        </ol>
90
        <span class="label">Enrolment period: </span>
91
        </br>
92
                <fieldset>
93
                <legend>Choose one</legend>
94
                        <ol>
95
                            <li>
46
                            <li>
96
                                <label for="enrolmentperiod" style="width:6em;">In months: </label>
47
                                <label for="overduenoticerequired">Overdue notice required: </label>
97
                                <input type="number" class="enrolmentperiod" name="enrolmentperiod" id="enrolmentperiod" min="0" size="3" maxlength="3" value="[% IF category.enrolmentperiod %][% category.enrolmentperiod %][% END %]" /> months
48
                                <select name="overduenoticerequired" value="overduenoticerequired">
49
                                    [% IF category.overduenoticerequired %]
50
                                        <option value="0">No</option>
51
                                        <option value="1" selected="selected">Yes</option>
52
                                    [% ELSE %]
53
                                        <option value="0" selected="selected">No</option>
54
                                        <option value="1">Yes</option>
55
                                    [% END %]
56
                                </select>
98
                            </li>
57
                            </li>
58
99
                            <li>
59
                            <li>
100
                                <label for="enrolmentperioddate" style="width:6em;">Until date: </label>
60
                                <label for="category_type" class="required">Category type: </label>
101
                                <input type="text" class="enrolmentperioddate datepicker" name="enrolmentperioddate" id="enrolmentperioddate" value="[% category.enrolmentperioddate | $KohaDates %]" />
61
                                Staff
102
                            </li>
62
                            </li>
103
                        </ol>
104
                 </fieldset>
105
             <p> Success: patron category created! </p>
106
             <p> To add another patron category and for more settings<br>
107
             go to:<br>
108
             More -> Administration -> Patron categories<br>
109
63
110
                <input type="submit" class="action" value="Submit" />
64
                            <li>
111
</fieldset>
65
                                <label for="default_privacy">Default privacy: </label>
112
</form>
66
                                <select value="default_privacy" name="default_privacy" required="required">
67
                                    [% SET default_privacy = 'default' %]
68
69
                                    [% IF category %]
70
                                        [% SET default_privacy = category.default_privacy %]
71
                                    [% END %]
113
72
73
                                    [% SWITCH default_privacy %]
74
                                        [% CASE 'forever' %]
75
                                            <option value="default">Default</option>
76
                                            <option value="never">Never</option>
77
                                            <option value="forever" selected="selected">Forever</option>
78
                                        [% CASE 'never' %]
79
                                            <option value="default">Default</option>
80
                                            <option value="never" selected="selected">Never</option>
81
                                            <option value="forever">Forever</option>
82
                                        [% CASE %]
83
                                            <option value="default" selected="selected">Default</option>
84
                                            <option value="never">Never</option>
85
                                            <option value="forever">Forever</option>
86
                                    [% END %]
87
                                </select>
88
                                <p>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 <i>batch_anonymise.pl</i> which should be set up by your system administrator.</p>
89
                            </li>
90
                        </ol>
91
                        <span class="label">Enrolment period: </span>
92
                        </br>
93
                        <fieldset>
94
                            <legend>Choose one</legend>
95
                            <ol>
96
                                <li>
97
                                    <label for="enrolmentperiod">In months: </label>
98
                                    <input type="number" class="enrolmentperiod" name="enrolmentperiod" id="enrolmentperiod" min="0" size="3" maxlength="3" value="[% IF category.enrolmentperiod %][% category.enrolmentperiod %][% END %]" /> months
99
                                </li>
100
                                <li>
101
                                     <label for="enrolmentperioddate">Until date: </label>
102
                                      <input type="text" class="enrolmentperioddate datepicker" name="enrolmentperioddate" id="enrolmentperioddate" value="[% category.enrolmentperioddate | $KohaDates %]" />
103
                                     <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
104
                                </li>
105
                            </ol>
106
                        </fieldset>
107
                        <p> Success: patron category created! </p>
108
                        <p> To add another patron category and for more settings<br>
109
                        go to:<br>
110
                        More -> Administration -> Patron categories<br>
111
                        <input type="submit" class="btn btn-primary" value="Submit" />
112
                    </fieldset>
113
                </form>
114
            </div>
115
        </div>
116
    </div>
117
</body>
114
[% INCLUDE 'intranet-bottom.inc' %]
118
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep3.tt (-91 / +94 lines)
Lines 4-102 Link Here
4
[% INCLUDE 'js_includes.inc' %]
4
[% INCLUDE 'js_includes.inc' %]
5
[% INCLUDE 'validator-strings.inc' %]
5
[% INCLUDE 'validator-strings.inc' %]
6
[% INCLUDE 'installer-strings.inc' %]
6
[% INCLUDE 'installer-strings.inc' %]
7
8
</head>
9
10
<body id="installer" class="installer">
11
[% INCLUDE 'onboarding_messages.inc' %]
7
[% INCLUDE 'onboarding_messages.inc' %]
8
<title>Koha &rsaquo; Web installer &rsaquo; Create Koha administrator patron</title>
12
9
13
<h1 align="left"> Create koha administrator patron</h1>
10
<body id="installer" class="installer">
14
<p>
11
    <div class="container-fluid">
15
Now we will create a patron with superlibrarian permissions. Login with this to access Koha as a staff member will all permissions.
12
        <div class="row">
16
</p>
13
            <div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
17
<form name="createpatron" id="createpatron" method="post" action="onboarding.pl">
14
                <h1 id="logo"><a href="#">Koha</a></h1>
18
    <fieldset class="rows">
15
                <h2>Web installer &rsaquo; Create Koha administrator patron</h2>
19
         <input type="hidden" name="step" value="3"/>
16
                <p>Now we will create a patron with superlibrarian permissions. Login with this to access Koha as a staff member will all permissions.
20
         <input type="hidden" name="op" value="add_validate_patron" />
17
                </p>
21
            <legend id="library_management_lgd">Library management</legend>
18
                <form name="createpatron" id="createpatron" method="post" action="onboarding.pl">
22
            <ol>
19
                    <fieldset class="rows">
23
            <h3>Patron identity</h3>
20
                        <input type="hidden" name="step" value="3"/>
24
                <li>
21
                        <input type="hidden" name="op" value="add_validate_patron" />
25
                    <label for="surname" class="required">Surname: </label>
22
                        <legend id="library_management_lgd">Library management</legend>
26
                    <input type="text" id="surname" name="surname" title="Please only enter letters in the surname field" value="[% surname |html %]" class="required" required="required" />
23
                        <ol>
27
                    <span class="required">Required</span>
24
                            <h3>Patron identity</h3>
28
                </li>
25
                            <li>
29
                <li>
26
                                <label for="surname" class="required">Surname: </label>
30
                    <label for="firstname" class="required">First name: </label>
27
                                <input type="text" id="surname" name="surname" title="Please only enter letters in the surname field" value="[% surname |html %]" class="required" required="required" />
31
                    <input  type="text" name="firstname" title="Please only enter letters in the first name field" id="firstname" size="20" value="[% firstname |html %]" class="required" required="required">
28
                                <span class="required">Required</span>
32
                    <span class="required">Required</span>
29
                            </li>
33
                </li>
30
                            <li>
34
            </ol>
31
                                <label for="firstname" class="required">First name: </label>
35
32
                                <input  type="text" name="firstname" title="Please only enter letters in the first name field" id="firstname" size="20" value="[% firstname |html %]" class="required" required="required">
36
            <ol>
33
                                <span class="required">Required</span>
37
                <li>
34
                            </li>
38
                    <label for="cardnumber" class="required">Card number: </label>
35
                        </ol>
39
                    [% IF patrons && patrons > 1 %]
40
                        <input type="text" id="cardnumber" title="Please enter a cardnumber" class="noEnterSubmit valid" name="cardnumber" value="[% newcardnumber | html %]" class="required" required="required">
41
                    [% ELSE %]
42
                        <input type="text" id="cardnumber" title="Please enter a cardnumber" name="cardnumber" value="[% cardnumber | html %]" class="required" required="required">
43
                    [% END %]
44
                    <span class="required">Required</span>
45
                </li>
46
                <li>
47
48
                <!--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-->
49
                    <label for="libraries" class="required"> Library: </label>
50
                    <select name="libraries" size="1" id="libraries">
51
36
52
                     [% FOREACH library IN libraries %]
37
                        <ol>
53
                          <option name="libraries" value="[% library.branchcode %]"> [% library.branchname %]
38
                            <li>
54
                     [% END %]
39
                                <label for="cardnumber" class="required">Card number: </label>
40
                                [% IF patrons && patrons > 1 %]
41
                                    <input type="text" id="cardnumber" title="Please enter a cardnumber" class="noEnterSubmit valid" name="cardnumber" value="[% newcardnumber | html %]" class="required" required="required">
42
                                [% ELSE %]
43
                                    <input type="text" id="cardnumber" title="Please enter a cardnumber" name="cardnumber" value="[% cardnumber | html %]" class="required" required="required">
44
                                [% END %]
45
                                <span class="required">Required</span>
46
                            </li>
47
                            <li>
55
48
56
                        </select>
49
                                <!--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-->
57
                    <span class="required"> Required</span>
50
                                <label for="libraries" class="required"> Library: </label>
58
                </li>
51
                                <select name="libraries" size="1" id="libraries">
59
                <li>
52
                                    [% FOREACH library IN libraries %]
60
                    <label for="categorycode_entry" class="required"> Patron category</label>
53
                                        <option name="libraries" value="[% library.branchcode %]"> [% library.branchname %]
61
                    <select id="categorycode_entry" name="categorycode_entry" onchange="update_category_code(this);">
54
                                    [% END %]
62
                    [% FOREACH category IN categories %]
55
                                </select>
63
                        <option name="categorycode_entry" value = "[% category.categorycode %]">[%category.description %]</option>
56
                                <span class="required"> Required</span>
64
                    [% END %]
57
                            </li>
65
                    </select>
58
                            <li>
66
                    <span class="required">Required</span><br><br>
59
                                <label for="categorycode_entry" class="required"> Patron category</label>
67
                    <b>Note:</b> If you installed sample patron categories please select the "Staff" option in the patron categories dropdown box.
60
                                <select id="categorycode_entry" name="categorycode_entry" onchange="update_category_code(this);">
68
                </li>
61
                                    [% FOREACH category IN categories %]
69
            </ol>
62
                                        <option name="categorycode_entry" value = "[% category.categorycode %]">[%category.description %]</option>
63
                                    [% END %]
64
                                </select>
65
                                <span class="required">Required</span><br><br>
66
                                <b>Note:</b> If you installed sample patron categories please select the "Staff" option in the patron categories dropdown box.
67
                            </li>
68
                        </ol>
70
69
71
            <ol>
70
                        <ol>
72
                    <h3> Koha administrator patron permissions</h3>
71
                            <h3> Koha administrator patron permissions</h3>
73
                    <li>
72
                            <li>
74
                        <label> superlibrarian</label>
73
                                <label> superlibrarian</label>
75
                    </li>
74
                            </li>
76
            </ol>
75
                        </ol>
77
            <ol>
76
                        <ol>
78
            <h3>OPAC/Staff Login</h3>
77
                            <h3>OPAC/Staff Login</h3>
79
                <li>
78
                            <li>
80
                    <label for="userid" class="required">Username: </label>
79
                                <label for="userid" class="required">Username: </label>
81
                    <input type="text" name="userid" id ="userid" size="20" title="Please only enter a username of letters and numbers" value="[% userid |html %]" class="required" required="required" />
80
                                <input type="text" name="userid" id ="userid" size="20" title="Please only enter a username of letters and numbers" value="[% userid |html %]" class="required" required="required" />
82
                    <span class="required">Required</span>
81
                                <span class="required">Required</span>
83
                </li>
82
                            </li>
84
                <li>
83
                            <li>
85
                    <label for="passwordlabel" class="required">Password: </label>
84
                                <label for="passwordlabel" class="required">Password: </label>
86
                    <input type="password" name="password" id="password" size="20" value="[% member.password |html %]" class="required" required="required">
85
                                <input type="password" name="password" id="password" size="20" value="[% member.password |html %]" class="required" required="required">
87
                    <span class="required">Required</span>
86
                                <span class="required">Required</span>
88
                </li>
87
                            </li>
89
                <li>
88
                            <li>
90
                    <label for="password2" class="required">Confirm password: </label>
89
                                <label for="password2" class="required">Confirm password: </label>
91
                    <input type="password" id="password2" name="password2" size="20" value="" class="required" required="required">
90
                                <input type="password" id="password2" name="password2" size="20" value="" class="required" required="required">
92
                    <span class="required">Required</span>
91
                                <span class="required">Required</span>
93
                </li>
92
                            </li>
94
            </ol>
93
                        </ol>
95
        <p>
94
                        <p>
96
            To create another patron, go to Patrons -> New Patron. <br>
95
                            To create another patron, go to Patrons -> New Patron. <br>
97
            More -> Set Permissions in a user page to gain superlibrarian permissions.
96
                            More -> Set Permissions in a user page to gain superlibrarian permissions.
98
        </p>
97
                        </p>
99
    </fieldset>
98
                    </fieldset>
100
    <br>
99
                    <br>
101
    <input type="submit" id="Submit" class="action" value="Submit"/>
100
                    <input type="submit" class="btn btn-primary" value="Submit" />
102
</form>
101
                </form>
102
            </div>
103
        </div>
104
    </div>
105
</body>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep4.tt (-30 / +38 lines)
Lines 6-39 Link Here
6
<script type="text/javascript" src="[% interface %]/[% theme %]/js/onboarding.js"></script>
6
<script type="text/javascript" src="[% interface %]/[% theme %]/js/onboarding.js"></script>
7
</head>
7
</head>
8
8
9
[% INCLUDE 'onboarding_messages.inc' %]
9
<body id="installer" class="installer">
10
    [% INCLUDE 'onboarding_messages.inc' %]
11
    <div class="container-fluid">
12
        <div class="row">
13
            <div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
14
                <h1 id="logo"><a href="#">Koha</a></h1>
15
                <h2>Web installer &rsaquo; Create a new item type </h2>
16
                <!--Create a item type screen 1-->
17
                <h1 align="center"> Create a new Item type </h1>
18
                <p> Item types are used to group related items. Examples of item types are books, cds, and DVDs. <br><br> When adding to your institutions catalogue you will create an item of a particular item type. <br><br> Importantly item types are what you apply     circulation rules to. Circulation rules govern how your institution will lend its items, for example a circulation rule applied to the DVD item type may enforce a payment of $1.00 for borrowing any DVD.</p>
19
                <form name="createitemform" method="post" action="onboarding.pl">
20
                    <fieldset class="rows">
21
                        <input type="hidden" name="step" value="4"/>
22
                        <input type="hidden" name="op" value="add_validate_itemtype" />
23
                        <ol>
24
                            <li>
25
                                <label for="itemtype" class="required">Item type code: </label>
26
                                <input type="text" name="itemtype" pattern="[0-9A-Za-z]{1,10}" title="Please enter up to 10 letters and/or numbers" id="itemtype" size="10" maxlength="10"  class="required" required="required" value="[% itemtype.itemtype |html %]" />
27
                                <span class="required">Required</span>
28
                            </li>
10
29
11
<!--Create a item type screen 1-->
30
                            <li>
12
<h1 align="center"> Create a new Item type </h1>
31
                                <label for="description" class="required">Description: </label>
13
<p> Item types are used to group related items. Examples of item types are books, cds, and DVDs. <br><br> When adding to your institutions catalogue you will create an item of a particular item type. <br><br> Importantly item types are what you apply     circulation rules to. Circulation rules govern how your institution will lend its items, for example a circulation rule applied to the DVD item type may enforce a payment of $1.00 for borrowing any DVD.</p>
32
                                <input type="text" name="description" id="description" title="Please only enter letters and/or numbers into this item type description" size="42" value="[% itemtype.description |html %]" class="required" required="required">
14
<form name="createitemform" method="post" action="onboarding.pl">
33
                                <span class="required">Required</span>
15
    <fieldset class="rows">
34
                            </li>
16
        <input type="hidden" name="step" value="4"/>
35
                        </ol>
17
        <input type="hidden" name="op" value="add_validate_itemtype" />
36
                        <br>
18
        <ol>
37
                        <p> To create another item type later and for more settings <br>
19
            <li>
38
                        go to: <br>
20
                <label for="itemtype" class="required">Item type code: </label>
39
                        More -> Administration -> Item types <br>
21
                <input type="text" name="itemtype" pattern="[0-9A-Za-z]{1,10}" title="Please enter up to 10 letters and/or numbers" id="itemtype" size="10" maxlength="10"  class="required" required="required" value="[% itemtype.itemtype |html %]" />
40
                        </p>
22
                <span class="required">Required</span>
41
                        <input type="submit" class="btn btn-primary" value="Submit"/>
23
            </li>
42
                    </fieldset>
24
43
                </form>
25
            <li>
44
            </div>
26
                <label for="description" class="required">Description: </label>
45
        </div>
27
                <input type="text" name="description" id="description" title="Please only enter letters and/or numbers into this item type description" size="42" value="[% itemtype.description |html %]" class="required" required="required">
46
    </div>
28
                <span class="required">Required</span>
47
</body>
29
            </li>
30
        </ol>
31
    <br>
32
    <p> To create another item type later and for more settings <br>
33
            go to: <br>
34
            More -> Administration -> Item types <br>
35
    </p>
36
37
    <input type="submit" class="action" value="Submit"/>
38
</fieldset>
39
</form>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt (-101 / +110 lines)
Lines 7-116 Link Here
7
</head>
7
</head>
8
8
9
<body id="installer" class="installer">
9
<body id="installer" class="installer">
10
    <div class="container-fluid">
11
        <div class="row">
12
            <div id="installer-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; Complete</h2>
15
                [% INCLUDE 'onboarding_messages.inc' %]
10
16
11
[% INCLUDE 'onboarding_messages.inc' %]
17
                [% IF all_done %]
18
                    <h2>Web installer &rsaquo; Complete</h2>
19
                    <h3>Congratulations you have finished and ready to use Koha</h3>
20
                    <a class="btn btn-success" href="/cgi-bin/koha/mainpage.pl">Start using Koha</a>
21
                [% ELSE %]
22
                    <h2>Web installer &rsaquo; Create a new circulation rule </h2>
23
                    <form name="createcirculationrule" method="post" action="onboarding.pl">
24
                        <fieldset class="rows">
25
                            <input type="hidden" name="step" value="5"/>
26
                            <input type="hidden" name="op" value="add_validate_circ_rule" />
27
                            <ol>
28
                                <li>
29
                                    <label for="branch" class="required"> Library branch</label>
30
                                    <select name="branch" id="branchname" required="required">
31
                                        <option value""> Choose</option>
32
                                        <option value="*" selected="selected">All</option>
33
                                        [% FOREACH library IN libraries %]
34
                                            <option id="branch" value="[% library.branchcode %]"> [% library.branchname %]</option>
35
                                        [% END %]
36
                                    </select>
37
                                    <span class="required">Required</span>
38
                                </li>
39
                                <li>
40
                                    <label for="categorycode" class="required">Patron category: </label>
41
                                    <select name="categorycode" id="categorycodeselection" required="required" onchange = "update_categorycode(this);">
42
                                        <option value=""> Choose</option>
43
                                        <option value="*" selected="selected">All</option>
44
                                        [% FOREACH category IN categories %]
45
                                            <option id="categorycode" value = "[% category.categorycode %]"> [%category.description %]</option>
46
                                        [%END%]
47
                                    </select>
48
                                    <span class="required">Required</span>
49
                                </li>
12
50
13
[% IF all_done %]
51
                                <li>
14
<h1>Congratulations you have finished and ready to use Koha</h1>
52
                                    <label for="itemtype"> Item type: </label>
15
<a href="/cgi-bin/koha/mainpage.pl">Start using Koha</a>
53
                                    <select id="itemtype" name="itemtype" required="required">
16
[% ELSE %]
54
                                        <option value""> Choose </option>
17
    <h1 align="left"> Create a new circulation rule </h1>
55
                                        <option value="*" selected="selected">All</option>
18
    <form name="createcirculationrule" method="post" action="onboarding.pl">
56
                                        [% FOREACH item IN itemtypes %]
19
        <fieldset class="rows">
57
                                            <option name="itemtype" value = "[% item.itemtype %]"> [% item.itemtype %]
20
           <input type="hidden" name="step" value="5"/>
58
                                        [%END%]
21
           <input type="hidden" name="op" value="add_validate_circ_rule" />
59
                                    </select>
22
              <ol>
60
                                    <span class="required"> Required</span>
23
              <li>
61
                                </li>
24
                  <label for="branch" class="required"> Library branch</label>
62
                                <li>
25
                  <select name="branch" id="branchname" required="required">
63
                                    <label for="maxissueqty" class="required">Current checkouts allowed: </label>
26
                  <option value""> Choose</option>
64
                                    <input type="number" min="0" name="maxissueqty" title="Please only enter numbers" id="maxissueqty" size="10" value="50" class="required" required="required" />
27
                  <option value="*" selected="selected">All</option>
65
                                    <span class="required">Required</span>
28
                  [% FOREACH library IN libraries %]
66
                                </li>
29
                      <option id="branch" value="[% library.branchcode %]"> [% library.branchname %]</option>
30
                  [% END %]
31
                  </select>
32
                  <span class="required">Required</span>
33
              </li>
34
              <li>
35
                  <label for="categorycode" class="required">Patron category: </label>
36
                  <select name="categorycode" id="categorycodeselection" required="required" onchange = "update_categorycode(this);">
37
                      <option value=""> Choose</option>
38
                      <option value="*" selected="selected">All</option>
39
                      [% FOREACH category IN categories %]
40
                          <option id="categorycode" value = "[% category.categorycode %]"> [%category.description %]</option>
41
                      [%END%]
42
                  </select>
43
                  <span class="required">Required</span>
44
              </li>
45
67
46
              <li>
68
                                <li>
47
                  <label for="itemtype"> Item type: </label>
69
                                    <label for="issuelength" class="required">Loan period: </label>
48
                  <select id="itemtype" name="itemtype" required="required">
70
                                    <input type="number" min="0" name="issuelength" title="Please only enter numbers" id="issuelength" size="10" value="14" class="required" required="required" />
49
                  <option value""> Choose </option>
71
                                    <span class="required">Required</span>
50
                  <option value="*" selected="selected">All</option>
72
                                </li>
51
                      [% FOREACH item IN itemtypes %]
73
                                <li>
52
                          <option name="itemtype" value = "[% item.itemtype %]"> [% item.itemtype %]
74
                                    <label for="lengthunit">Units: </label>
53
                      [%END%]
75
                                    <select name="lengthunit" id="lengthunit" required="required">
54
                  </select>
76
                                    <option value=""> Choose </option>
55
                  <span class="required"> Required</span>
77
                                    [% SET units = 'days' %]
56
              </li>
78
                                        [% IF category %]
57
              <li>
79
                                            [% SET default_privacy = category.default_privacy %]
58
                  <label for="maxissueqty" class="required">Current checkouts allowed: </label>
80
                                        [% END %]
59
                  <input type="number" min="0" name="maxissueqty" title="Please only enter numbers" id="maxissueqty" size="10" value="50" class="required" required="required" />
60
                  <span class="required">Required</span>
61
              </li>
62
81
63
              <li>
82
                                        [% SWITCH units %]
64
                  <label for="issuelength" class="required">Loan period: </label>
83
                                        [% CASE 'days' %]
65
                  <input type="number" min="0" name="issuelength" title="Please only enter numbers" id="issuelength" size="10" value="14" class="required" required="required" />
84
                                            <option value="days" selected="selected">Days</option>
66
                  <span class="required">Required</span>
85
                                            <option value="hours">Hours</option>
67
             </li>
86
                                        [% CASE 'hours' %]
68
             <li>
87
                                            <option value="days">Days</option>
69
                  <label for="lengthunit">Units: </label>
88
                                            <option value="hours" selected="selected">Hours</option>
70
                  <select name="lengthunit" id="lengthunit" required="required">
89
                                        [% END %]
71
                  <option value=""> Choose </option>
90
                                    </select>
72
                  [% SET units = 'days' %]
91
                                </li>
73
                  [% IF category %]
92
                                <li>
74
                      [% SET default_privacy = category.default_privacy %]
93
                                    <label for="renewalsallowed" class="required">Renewals allowed: </label>
75
                  [% END %]
94
                                    <input type="number" min="0" name="renewalsallowed" title="Please only enter numbers" id="renewalsallowed" size="10" max="10" value="10" class="required" required="required" />
95
                                    <span class="required">Required</span>
96
                                </li>
76
97
77
                  [% SWITCH units %]
98
                                <li>
78
                       [% CASE 'days' %]
99
                                    <label for="renewalperiod" class="required">Renewals period: </label>
79
                             <option value="days" selected="selected">Days</option>
100
                                    <input type="number" min="0" name="renewalperiod" title="Please only enter numbers" id="renewalperiod" size="10" value="14" class="required" required="required" />
80
                             <option value="hours">Hours</option>
101
                                    <span class="required">Required</span>
81
                       [% CASE 'hours' %]
102
                                </li>
82
                             <option value="days">Days</option>
83
                             <option value="hours" selected="selected">Hours</option>
84
                  [% END %]
85
                  </select>
86
               </li>
87
               <li>
88
                  <label for="renewalsallowed" class="required">Renewals allowed: </label>
89
                  <input type="number" min="0" name="renewalsallowed" title="Please only enter numbers" id="renewalsallowed" size="10" max="10" value="10" class="required" required="required" />
90
                  <span class="required">Required</span>
91
               </li>
92
103
93
               <li>
104
                                <li>
94
                  <label for="renewalperiod" class="required">Renewals period: </label>
105
                                    <label for="onshelfholds">On shelf holds allowed: </label>
95
                  <input type="number" min="0" name="renewalperiod" title="Please only enter numbers" id="renewalperiod" size="10" value="14" class="required" required="required" />
106
                                    <select name="onshelfholds" id="onshelfholds" required="required">
96
                  <span class="required">Required</span>
107
                                        <option value="">Choose</option>
97
               </li>
108
                                        <option value="1" selected="selected">Yes</option>
109
                                        <option value="0">If any unavailable</option>
110
                                        <option value="2">If all unavailable</option>
111
                                    </select>
112
                                </li>
113
                            </ol>
114
                            <p> To create circulation rule, go to <br>
115
                            More -> Administration -> Circulation and Fine Rules
116
                            </p>
98
117
99
               <li>
118
                        </fieldset>
100
                  <label for="onshelfholds">On shelf holds allowed: </label>
119
                        <br>
101
                  <select name="onshelfholds" id="onshelfholds" required="required">
120
                        <input type="submit" class="btn btn-primary" value="Submit" />
102
                        <option value="">Choose</option>
121
                    </form>
103
                        <option value="1" selected="selected">Yes</option>
122
                [% END %]
104
                        <option value="0">If any unavailable</option>
123
            </div>
105
                        <option value="2">If all unavailable</option>
124
        </div>
106
                  </select>
125
    </div>
107
               </li>
126
</body>
108
            </ol>
109
            <p> To create circulation rule, go to <br>
110
            More -> Administration -> Circulation and Fine Rules
111
            </p>
112
113
        </fieldset><br>
114
        <input type="submit" class="action" value="Submit"/>
115
    </form>
116
[% END %]
117
- 

Return to bug 18462