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

(-)a/koha-tmpl/intranet-tmpl/prog/css/installer.css (+4 lines)
Lines 227-229 span.required { Link Here
227
.ui-datepicker {
227
.ui-datepicker {
228
    box-shadow: 1px 1px 3px 0 #666;
228
    box-shadow: 1px 1px 3px 0 #666;
229
}
229
}
230
231
span.breadcrumbs {
232
    display: block;
233
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/onboarding_messages.inc (-17 / +28 lines)
Lines 1-20 Link Here
1
[% FOR m IN messages %]
1
[% FOR m IN messages %]
2
    <div class="dialog [% m.type %]">
2
    [% SWITCH m.code %]
3
        [% SWITCH m.code %]
3
        [% CASE 'success_on_insert_library' %]
4
        [% CASE 'success_on_insert_library' %]<span>Library created!</span>
4
            <div class="alert alert-success">Library created!</div>
5
        [% CASE 'error_on_insert_library' %]<span>Library already exists and cannot be modified!</span>
5
        [% CASE 'error_on_insert_library' %]
6
        [% CASE 'success_on_insert_category' %]<span>Patron category created!</span>
6
            <div class="alert alert-danger">Library already exists and cannot be modified!</div>
7
        [% CASE 'error_on_insert_category' %]<span>Patron category already exists and cannot be modified!</span>
7
        [% CASE 'success_on_insert_category' %]
8
        [% CASE 'success_on_insert_patron' %]<span>Administrator Patron created!</span>
8
            <div class="alert alert-success">Patron category created!</div>
9
        [% CASE 'error_on_insert_patron' %]<span>The patron has not been created! Cardnumber or Userid may already exist.</span>
9
        [% CASE 'error_on_insert_category' %]
10
        [% CASE 'ERROR_cardnumber_already_exists' %]<span>Cardnumber already in use.</span>
10
            <div class="alert alert-danger">Patron category already exists and cannot be modified!</div>
11
        [% CASE 'ERROR_cardnumber_length' %]<span>Cardnumber length is incorrect.</span>
11
        [% CASE 'success_on_insert_patron' %]
12
        [% CASE 'ERROR_password_mismatch' %]<span>Passwords do not match.</span>
12
            <div class="alert alert-success">Administrator account created!</div>
13
        [% CASE 'success_on_insert_itemtype' %]<span>New item type created!</span>
13
        [% CASE 'error_on_insert_patron' %]
14
        [% CASE 'error_on_insert_itemtype' %]<span>Item type already exists!</span>
14
            <div class="alert alert-danger">The patron has not been created! Cardnumber or Userid may already exist.</div>
15
        [% CASE 'success_on_insert_circ_rule' %]<span>Circulation rule created!</span>
15
        [% CASE 'ERROR_cardnumber_already_exists' %]
16
        [% CASE 'error_on_insert_circ_rule' %]<span>Circulation rule not created!</span>
16
            <div class="alert alert-danger">Card number already in use.</div>
17
        [% CASE 'ERROR_cardnumber_length' %]
18
            <div class="alert alert-danger">Card number length is incorrect.</div>
19
        [% CASE 'ERROR_password_mismatch' %]
20
            <div class="alert alert-danger">Passwords do not match.</div>
21
        [% CASE 'success_on_insert_itemtype' %]
22
            <div class="alert alert-success">New item type created!</div>
23
        [% CASE 'error_on_insert_itemtype' %]
24
            <div class="alert alert-danger">Item type already exists!</div>
25
        [% CASE 'success_on_insert_circ_rule' %]
26
            <div class="alert alert-success">Circulation rule created!</div>
27
        [% CASE 'error_on_insert_circ_rule' %]
28
            <div class="alert alert-danger">Circulation rule not created!</div>
17
        [% CASE %][% message %]
29
        [% CASE %][% message %]
18
        [% END %]
30
    [% END %]
19
    </div>
20
[% END %]
31
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/auth.tt (-50 / +51 lines)
Lines 7-63 Link Here
7
    [% IF ( invalid_username_or_password ) %]Invalid username or password[% END %]
7
    [% IF ( invalid_username_or_password ) %]Invalid username or password[% END %]
8
    [% IF ( loginprompt ) %]Log in to the Koha web installer[% END %]
8
    [% IF ( loginprompt ) %]Log in to the Koha web installer[% END %]
9
</title>
9
</title>
10
11
[% INCLUDE 'installer-doc-head-close.inc' %]
10
[% INCLUDE 'installer-doc-head-close.inc' %]
11
</head>
12
13
<body id="installer" class="installer">
14
    <div class="container-fluid">
15
        <div class="row">
16
            <div id="installer-login" class="installer-main col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3">
17
18
                <h1 id="logo"><a href="#">Koha</a></h1>
19
20
                [% IF ( nopermission ) %]
21
                    <div id="login_error"><strong>Error: </strong>Unauthorized user <a href="/cgi-bin/koha/mainpage.pl?logout.x=1">click to log out</a></div>
22
                [% END %]
23
24
                [% IF ( timed_out ) %]
25
                <div id="login_error"><strong>Error: </strong>Session timed out, please log in again</div>
26
                [% END %]
27
28
                [% IF ( different_ip ) %]
29
                <div id="login_error"><strong>Error: </strong>IP address has changed, please log in again </div>
30
                [% END %]
12
31
13
<div class="container-fluid">
32
                [% IF ( invalid_username_or_password ) %]
14
    <div class="row">
33
                <div id="login_error"><strong>Error: </strong>Invalid username or password</div>
15
        <div id="installer-login" class="installer-main col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3">
34
                [% END %]
16
35
17
            <h1 id="logo"><a href="#">Koha</a></h1>
36
                [% IF ( loginprompt ) %]
18
37
                    <h2>Welcome to the Koha [%- Koha.Version.release -%] web installer</h2>
19
            [% IF ( nopermission ) %]
38
20
                <div id="login_error"><strong>Error: </strong>Unauthorized user <a href="/cgi-bin/koha/mainpage.pl?logout.x=1">click to log out</a></div>
39
                    <p>Before we begin, please verify you have the correct credentials to continue. Please log in with the username and password given to you by your systems administrator and located in your <code>koha-conf.xml</code> configuration file.</p>
21
            [% END %]
40
22
41
                    <form action="[% url %]" method="post" id="mainform">
23
            [% IF ( timed_out ) %]
42
                        [% FOREACH INPUT IN INPUTS %]
24
            <div id="login_error"><strong>Error: </strong>Session timed out, please log in again</div>
43
                            <input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]" />
25
            [% END %]
44
                        [% END %]
26
45
27
            [% IF ( different_ip ) %]
46
                        <fieldset>
28
            <div id="login_error"><strong>Error: </strong>IP address has changed, please log in again </div>
47
                            <legend>Please enter your username and password</legend>
29
            [% END %]
48
30
49
                            <div class="form-group">
31
            [% IF ( invalid_username_or_password ) %]
50
                                <label>Username:</label>
32
            <div id="login_error"><strong>Error: </strong>Invalid username or password</div>
51
                                <input type="text" class="form-control" name="userid" id="userid" value="[% userid %]" size="20" tabindex="1" />
33
            [% END %]
52
                            </div>
34
53
                            <div class="form-group">
35
            [% IF ( loginprompt ) %]
54
                                <label>Password:</label>
36
                <h2>Welcome to the Koha [%- Koha.Version.release -%] web installer</h2>
55
                                <input type="password" class="form-control" name="password" id="password" value="" size="20" tabindex="2" />
37
56
                            </div>
38
                <p>Before we begin, please verify you have the correct credentials to continue. Please log in with the username and password given to you by your systems administrator and located in your <code>koha-conf.xml</code> configuration file.</p>
57
                            <input id="submit" type="submit" class="btn btn-primary" value="Log in" tabindex="3" />
39
58
                        </fieldset>
40
                <form action="[% url %]" method="post" role="form" id="mainform">
59
                    </form>
41
                    [% FOREACH INPUT IN INPUTS %]
60
                [% END %]
42
                        <input type="hidden" name="[% INPUT.name |html %]" value="[% INPUT.value |html %]" />
61
            </div>
43
                    [% END %]
44
45
                    <fieldset>
46
                        <legend>Please enter your username and password</legend>
47
48
                        <div class="form-group">
49
                            <label>Username:</label>
50
                            <input type="text" class="form-control" name="userid" id="userid" value="[% userid %]" size="20" tabindex="1" />
51
                        </div>
52
                        <div class="form-group">
53
                            <label>Password:</label>
54
                            <input type="password" class="form-control" name="password" id="password" value="" size="20" tabindex="2" />
55
                        </div>
56
                        <input id="submit" type="submit" class="btn btn-primary" value="Log in" tabindex="3" /></p>
57
                    </fieldset>
58
                </form>
59
            [% END %]
60
        </div>
62
        </div>
61
    </div>
63
62
</div>
63
[% INCLUDE 'intranet-bottom.inc' %]
64
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step1.tt (-4 / +4 lines)
Lines 27-33 Link Here
27
27
28
                <p>Please pick your language from the following list. If your language is not listed, please inform your system administrator.</p>
28
                <p>Please pick your language from the following list. If your language is not listed, please inform your system administrator.</p>
29
29
30
                <form name="language" role="form" method="post" action="install.pl">
30
                <form name="language" method="post" action="install.pl">
31
                    <div class="form-group">
31
                    <div class="form-group">
32
                        <label for="language">Select a language: </label>
32
                        <label for="language">Select a language: </label>
33
                        <select id="language" name="language">
33
                        <select id="language" name="language">
Lines 76-82 Link Here
76
                        </ul>
76
                        </ul>
77
                    [% END %]
77
                    [% END %]
78
78
79
                    <form name="checkmodules" role="form" action="install.pl">
79
                    <form name="checkmodules" action="install.pl">
80
                        <input type="hidden" name="step" value="1" />
80
                        <input type="hidden" name="step" value="1" />
81
                        <p> <input value="Recheck dependencies" class="btn btn-primary" type="submit" /></p>
81
                        <p> <input value="Recheck dependencies" class="btn btn-primary" type="submit" /></p>
82
                    </form>
82
                    </form>
Lines 92-98 Link Here
92
                    </form>
92
                    </form>
93
                [% END # IF checkmodule%]
93
                [% END # IF checkmodule%]
94
            [% END # IF language %]
94
            [% END # IF language %]
95
        </div>
95
        </div> <!-- / #installer-step1 -->
96
    </div>
96
    </div> <!-- / .row -->
97
97
98
[% INCLUDE 'intranet-bottom.inc' %]
98
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step2.tt (-59 / +62 lines)
Lines 1-70 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo; Web installer &rsaquo; Database settings</title>
1
[% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo; Web installer &rsaquo; Database settings</title>
2
[% INCLUDE 'installer-doc-head-close.inc' %]
2
[% INCLUDE 'installer-doc-head-close.inc' %]
3
</head>
3
4
4
<div class="container-fluid">
5
<body id="installer" class="installer">
5
    <div class="row">
6
    <div class="container-fluid">
6
        <div id="installer-step2" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
7
        <div class="row">
8
            <div id="installer-step2" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
7
9
8
            <h1 id="logo"><a href="#">Koha</a></h1>
10
                <h1 id="logo"><a href="#">Koha</a></h1>
9
            <h2>Web installer &rsaquo; Database settings</h2>
11
                <h2>Web installer &rsaquo; Database settings</h2>
10
            <h3>Database settings:</h3>
12
                <h3>Database settings:</h3>
11
            <ul>
13
                <ul>
12
                <li><em>Database type : </em> <code>[% dbms %]</code></li>
14
                    <li><em>Database type : </em> <code>[% dbms %]</code></li>
13
                <li><em>Database name : </em> <code>[% dbname %]</code></li>
15
                    <li><em>Database name : </em> <code>[% dbname %]</code></li>
14
                <li><em>Database host : </em> <code>[% hostname %]</code></li>
16
                    <li><em>Database host : </em> <code>[% hostname %]</code></li>
15
                <li><em>Database port : </em> <code>[% port %]</code> (probably okay if blank)</li>
17
                    <li><em>Database port : </em> <code>[% port %]</code> (probably okay if blank)</li>
16
                <li><em>Database user : </em> <code>[% user %]</code></li>
18
                    <li><em>Database user : </em> <code>[% user %]</code></li>
17
            </ul>
19
                </ul>
18
20
19
            [% IF ( dbconnection ) %]
21
                [% IF ( dbconnection ) %]
20
                <form name="checkdbparameters" role="form" type="post" action="install.pl">
22
                    <form name="checkdbparameters" method="post" action="install.pl">
21
                    [% IF ( checkdatabaseaccess ) %]
23
                        [% IF ( checkdatabaseaccess ) %]
22
                        <div class="alert alert-success" role="alert"><p>Connection established.</p></div>
24
                            <div class="alert alert-success" role="alert"><p>Connection established.</p></div>
23
                        [% IF ( checkdatabasecreated ) %]
25
                            [% IF ( checkdatabasecreated ) %]
24
                            <ul>
26
                                <ul>
25
                                <li>Database <code>[% dbname %]</code> exists.</li>
27
                                    <li>Database <code>[% dbname %]</code> exists.</li>
26
                            [% IF ( checkgrantaccess ) %]
28
                                [% IF ( checkgrantaccess ) %]
27
                                <li>User <code>[% user %]</code> has all required privileges on database <code>[% dbname %]</code>.</li>
29
                                    <li>User <code>[% user %]</code> has all required privileges on database <code>[% dbname %]</code>.</li>
28
                                </ul>
30
                                    </ul>
31
                                [% ELSE %]
32
                                    </ul>
33
                                    <p class="error">user <code>[% user %]</code> doesn't have enough privilege on database <code>[% dbname %]</code> </p>
34
                                    <p class="tip"> Ask for or make a change in the user's privileges. Need help? See [% IF ( mysql ) %]
35
                                            <a href="http://dev.mysql.com/doc/refman/4.1/en/grant.html">
36
                                        [% ELSE %]
37
                                            <a href="http://www.postgresql.org/docs/8.2/interactive/sql-createrole.html">
38
                                        [% END %]
39
                                        this page</a>. User <code>[% user %]</code> must have USAGE, INSERT, UPDATE, DELETE, DROP and CREATE privileges on <code>[% dbname %]</code>
40
                                    </p>
41
                                [% END %]
29
                            [% ELSE %]
42
                            [% ELSE %]
30
                                </ul>
43
                                <div class="alert alert-danger" role="alert"><p>No database named <code>[% dbname %]</code> detected.</p></div>
31
                                <p class="error">user <code>[% user %]</code> doesn't have enough privilege on database <code>[% dbname %]</code> </p>
44
                                <p>Please create the database before continuing.</p>
32
                                <p class="tip"> Ask for or make a change in the user's privileges. Need help? See [% IF ( mysql ) %]
33
                                        <a href="http://dev.mysql.com/doc/refman/4.1/en/grant.html">
34
                                    [% ELSE %]
35
                                        <a href="http://www.postgresql.org/docs/8.2/interactive/sql-createrole.html">
36
                                    [% END %]
37
                                    this page</a>. User <code>[% user %]</code> must have USAGE, INSERT, UPDATE, DELETE, DROP and CREATE privileges on <code>[% dbname %]</code>
38
                                </p>
39
                            [% END %]
45
                            [% END %]
40
                        [% ELSE %]
46
                        [% ELSE %]
41
                            <div class="alert alert-danger" role="alert"><p>No database named <code>[% dbname %]</code> detected.</p></div>
47
                            <div class="alert alert-warning" role="alert">[% error %] : [% message %]</div>
42
                            <p>Please create the database before continuing.</p>
48
                            <div class="tip">
49
                                <ul>
50
                                    <li>Check that your database is running.</li>
51
                                    <li>Check your database settings in <code>koha-conf.xml</code>. </li>
52
                                    <li>Check the hostname setting in <code>koha-conf.xml</code>.
53
                                    Some database servers require <code>127.0.0.1</code> rather than <code>localhost</code>.</li>
54
                                </ul>
55
                            </div>
56
                            <p>Please correct these errors and <a href="/cgi-bin/koha/installer/install.pl">start the installer</a> again.
43
                        [% END %]
57
                        [% END %]
44
                    [% ELSE %]
58
                        [% UNLESS ( error ) %]
45
                        <div class="alert alert-warning" role="alert">[% error %] : [% message %]</div>
59
                            <input type="hidden" name="step" value="3" />
46
                        <div class="tip">
60
                            <p> <input value="Continue to the next step" class="btn btn-primary" type="submit" /> </p>
47
                            <ul>
61
                        [% END %]
48
                                <li>Check that your database is running.</li>
62
                    </form>
49
                                <li>Check your database settings in <code>koha-conf.xml</code>. </li>
63
                [% ELSE %]
50
                                <li>Check the hostname setting in <code>koha-conf.xml</code>.
64
                    <form name="checkinformation" method="post" action="install.pl">
51
                                Some database servers require <code>127.0.0.1</code> rather than <code>localhost</code>.</li>
65
                        <input type="hidden" name="step" value="2" />
52
                            </ul>
66
                        <input type="hidden" name="checkdb" value="1" />
53
                        </div>
54
                        <p>Please correct these errors and <a href="/cgi-bin/koha/installer/install.pl">start the installer</a> again.
55
                    [% END %]
56
                    [% UNLESS ( error ) %]
57
                        <input type="hidden" name="step" value="3" />
58
                        <p> <input value="Continue to the next step" class="btn btn-primary" type="submit" /> </p>
67
                        <p> <input value="Continue to the next step" class="btn btn-primary" type="submit" /> </p>
59
                    [% END %]
68
                    </form>
60
                </form>
69
                [% END # / IF dbconnection %]
61
            [% ELSE %]
70
            </div> <!-- / #installer-step2 -->
62
                <form name="checkinformation" role="form" type="post" action="install.pl">
71
        </div> <!-- / .row -->
63
                    <input type="hidden" name="step" value="2" />
72
64
                    <input type="hidden" name="checkdb" value="1" />
65
                    <p> <input value="Continue to the next step" class="btn btn-primary" type="submit" /> </p>
66
                </form>
67
            [% END %]
68
        </div>
69
    </div>
70
[% INCLUDE 'intranet-bottom.inc' %]
73
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt (-224 / +183 lines)
Lines 24-268 Link Here
24
     [% IF ( selectframeworks ) %]
24
     [% IF ( selectframeworks ) %]
25
        Selecting default settings
25
        Selecting default settings
26
     [% END %]
26
     [% END %]
27
     [% IF ( addframeworks ) %]
28
        Default data loaded
29
     [% END %]
30
     [% IF ( finish ) %]
31
        Installation complete
32
     [% END %]
27
</title>
33
</title>
34
28
[% IF ( finish ) %]<meta http-equiv="refresh" content="10; url=/cgi-bin/koha/installer/onboarding.pl">[% END %]
35
[% IF ( finish ) %]<meta http-equiv="refresh" content="10; url=/cgi-bin/koha/installer/onboarding.pl">[% END %]
29
[% INCLUDE 'installer-doc-head-close.inc' %]
36
[% INCLUDE 'installer-doc-head-close.inc' %]
37
</head>
38
39
<body id="installer" class="installer">
40
    <div class="container-fluid">
41
        <div class="row">
42
            <div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
43
                <h1 id="logo"><a href="#">Koha</a></h1>
44
                [% IF ( finish ) %]
45
                    <h2>Web installer &rsaquo; Installation complete</h2>
46
                    <h3>Congratulations, installation complete</h3>
47
                    <p>
48
                        If this page does not redirect in 10 seconds, <a href="/cgi-bin/koha/installer/onboarding.pl">start onboarding process</a>.
49
                    </p>
50
                [% END %]
30
51
31
[% IF ( selectframeworks ) %]
52
                [% IF ( choosemarc ) %]
32
    <script type="text/javascript">
53
                    <h2>Select your MARC flavor</h2>
33
    //<![CDATA[
34
54
35
    var surl = unescape(window.location.pathname);
55
                    <form name="frameworkselection" method="post" action="install.pl">
56
                        <input type="hidden" name="step" value="3" />
57
                        <input type="hidden" name="op" value="selectframeworks" />
36
58
37
    function doLoad()
59
                        <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>
38
{
39
        // the timeout value should be the same as in the "refresh" meta-tag
40
        setTimeout( "refresh()", 2*1000 );
41
}
42
60
43
function refresh(value)
61
                        [% FOREACH flavourloo IN flavourloop %]
44
{
62
                            [% IF ( flavourloo.label == "Unimarc") %]
45
        //  The argument to the location.reload function determines
63
                                 <p>
46
        //  if the browser should retrieve the document from the
64
                                     <label><input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %]</label>
47
        //  web-server.  In our example all we need to do is cause
65
                                 </p>
48
        //  the JavaScript block in the document body to be
66
                            [% ELSE %]
49
        //  re-evaluated.  If we needed to pull the document from
67
                                 <p>
50
        //  the web-server again (such as where the document contents
68
                                     <label><input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked="checked" /> [% flavourloo.label %]</label>
51
        //  change dynamically) we would pass the argument as 'true'.
69
                                 </p>
52
        //
70
                            [% END %]
53
        surl=surl+'?step=3&op=selectframeworks&fwklanguage='+value;
71
                        [% END %]
72
                        <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
73
                    </form>
74
                [% END # / IF choosemarc %]
54
75
55
            window.location.replace( surl );
76
                [% IF ( selectframeworks ) %]
56
}
77
                    <h2>Web installer &rsaquo; [% setup %] setup &rsaquo; Selecting default settings</h2>
57
78
58
function selectAllFrameworks()
79
                    <p id="selectall"><a href="#">Select all sample data</a></p>
59
{
60
        //  A handy short link that selects all available checkboxes
61
        //  on the page.
62
        //
63
        var checkboxes = document.getElementsByTagName("input");
64
        for (var i = 0; i < checkboxes.length; i++)
65
        {
66
           if (checkboxes[i].type == 'checkbox')
67
           {
68
               checkboxes[i].checked = true;
69
           }
70
        }
71
80
72
         //  Prevent event propergation.
81
                    <form name="frameworkselection" method="post" action="install.pl">
73
        return false;
82
                        <input type="hidden" name="step" value="3" />
74
}
83
                        <input type="hidden" name="op" value="addframeworks" />
84
                        [% IF ( frameworksloop ) %]
85
                            <h3>MARC frameworks: [% marcflavour %]</h3>
86
                            [% IF ( en_marc_frameworks ) %]
87
                                <h4><span class="error">No MARC frameworks are available for your language.
88
                                Defaulting to the frameworks supplied for English (en)<span></h4>
89
                            [% END %]
90
                            [% FOREACH frameworksloo IN frameworksloop %]
91
                                <h4>[% frameworksloo.label %]</h4>
92
                                [% FOREACH framework IN frameworksloo.frameworks %]
93
                                    <div class="checkbox">
94
                                        <label>
95
                                            [% IF (frameworksloo.label == "Default") && (setup=="Basic") %]
96
                                                <input type="hidden" name="framework" value="[% framework.fwkfile %]" id ="[%framework.fwkname%]" />
97
                                            [% ELSE %]
98
                                                <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id ="[%framework.fwkname%]" />
99
                                            [% END %]
100
                                            [% framework.fwkdescription %]
101
                                            <em>([% framework.fwkname %])</em>
102
                                        </label>
103
                                    </div>
104
                                    <hr />
105
                                [% END # / FOREACH framework %]
106
                           [% END # / FOREACH frameworksloo %]
107
                        [% END # / IF frameworkdsloop %]
75
108
76
function Hide(link)
109
                        <h2>Other data</h2>
77
{
78
        //  Toggle the display of a given element on the page.
79
        //
80
        subfield = document.getElementById('bloc'+link);
81
        var initstyle = subfield.style.display;
82
        if (initstyle == 'block') subfield.style.display = 'none' ;
83
        if (initstyle == 'none') subfield.style.display = 'block' ;
84
}
85
110
86
//]]>
111
                        [% IF ( en_sample_data ) %]
87
</script>
112
                            <h4><span class="error">No sample data and settings are available for your language.
88
[% END %]
113
                            Defaulting to the samples supplied for English (en)<span></h4>
114
                        [% END %]
89
115
90
<div class="container-fluid">
116
                        [% FOREACH levelloo IN levelloop %]
91
    <div class="row">
117
                            <h4>[% levelloo.label %]</h4>
92
        <div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
93
            <h1 id="logo"><a href="#">Koha</a></h1>
94
            [% IF ( finish ) %]
95
                <h2>Web installer &rsaquo; Installation complete</h2>
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>
97
            [% END %]
98
118
99
            [% IF ( choosemarc ) %]
119
                            [% IF (setup == "Basic" && levelloo.label == "Optional") %]
100
                <h2 align="center">Select your MARC flavor</h2>
120
                                <p id="selectall"><a href="#">Select all sample data</a></p>
101
                <form name="frameworkselection" method="post" action="install.pl">
102
                    <input type="hidden" name="step" value="3" />
103
                    <input type="hidden" name="op" value="selectframeworks" />
104
                    <p>
105
                    [% FOREACH flavourloo IN flavourloop %]
106
                        <div>
107
                            [% IF ( flavourloo.checked ) %]
108
                                <input type="radio" name="marcflavour" value="[% flavourloo.code %]" checked /> [% flavourloo.label %] <br/>
109
                            [% ELSE %]
110
                                <input type="radio" name="marcflavour" value="[% flavourloo.code %]" /> [% flavourloo.label %] <br/>
111
                            [% END %]
112
                        </div>
113
                    [% END %]
114
                    </p>
115
                    <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
116
                </form>
117
            [% END %]
118
            [% IF ( selectframeworks ) %]
119
                <h2>Web installer &rsaquo; [% setup %] setup &rsaquo; Selecting default settings</h2>
120
                <script type="text/javascript">
121
                    var linklabel = _("Select all sample data");
122
                    document.write('<p><a href="#" onclick="return selectAllFrameworks();">'+linklabel+'</a></p>');
123
                </script>
124
                <form name="frameworkselection" method="post" action="install.pl">
125
                    <input type="hidden" name="step" value="3" />
126
                    <input type="hidden" name="op" value="addframeworks" />
127
                    [% IF ( frameworksloop ) %]
128
                        <h2>MARC frameworks: [% marcflavour %]</h2>
129
                        [% IF ( en_marc_frameworks ) %]
130
                            <h4><span class="error">No MARC frameworks are available for your language.
131
                            Defaulting to the frameworks supplied for English (en)<span></h4>
132
                        [% END %]
133
                        [% FOREACH frameworksloo IN frameworksloop %]
134
                        <div>
135
                            <h3>[% frameworksloo.label %]</h3>
136
                            [% FOREACH framework IN frameworksloo.frameworks %]
137
                                <table style="border:1px;vertical-align:top;">
138
                                    <tr>
139
                                        <td style="vertical-align:top;">
140
                                                <label>
141
                                                    [% IF ( framework.checked ) %]
142
                                                        <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" />
143
                                                    [% ELSE %]
144
                                                        <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
145
                                                    [% END %]
146
                                                </label>
147
                                        </td>
148
                                        <td>
149
                                            <label for="[% framework.fwkname %]">
150
                                                [% framework.fwkdescription %]
151
                                                <em>([% framework.fwkname %])</em>
152
                                            </label>
153
                                        </td>
154
                                </table>
155
                            [% END %]
121
                            [% END %]
156
                        </div>
157
                        [% END %]
158
                        <h2>Other data</h2>
159
                    [% END %]
160
                    [% IF ( en_sample_data ) %]
161
                        <h4><span class="error">No sample data and settings are available for your language.
162
                        Defaulting to the samples supplied for English (en)<span></h4>
163
                    [% END %]
164
                    [% FOREACH levelloo IN levelloop %]
165
                    <div>
166
                        <h3>[% levelloo.label %]</h3>
167
                              [% FOREACH framework IN levelloo.frameworks %]
168
                                    <table style="border:1px;vertical-align:top;">
169
                                         <tr>
170
                                            <td style="vertical-align:top;">
171
                                                [% IF ( framework.checked ) %]
172
                                                    <input type="checkbox" name="framework" value="[% framework.fwkfile %]" checked="checked" id="[% framework.fwkname %]" />
173
                                                [% ELSE %]
174
                                                    <input type="checkbox" name="framework" value="[% framework.fwkfile %]" id="[% framework.fwkname %]" />
175
                                                [% END %]
176
                                            </td>
177
                                            <td>
178
                                                <label for="[% framework.fwkname %]">
179
                                                    [% framework.fwkdescription %]
180
                                                    <em>([% framework.fwkname %])</em>
181
                                                </label>
182
                                            </td>
183
                                        </tr>
184
                                    </table>
185
                              [% END %]
186
                    </div>
187
                    [% END %]
188
                    <p>When you've made your selections, please click 'Import' below to begin the process. It may take a while to complete,
189
                    please be patient.</p>
190
                    <p><input type="submit" value="Import" class="btn btn-primary" /></p>
191
                    </p>
192
                </form>
193
            [% END %]
194
122
195
            [% IF ( addframeworks ) %]
123
                            [% FOREACH framework IN levelloo.frameworks %]
196
                <h2>Web installer &rsaquo; Default data loaded</h2>
124
                                <div class="checkbox">
197
                [% FOREACH lis IN list %]
125
                                    <label for="[% framework.fwkname %]">
198
                    <h3>[% lis.level %] data added</h3>
126
                                        [% IF (levelloo.label == "Default" ) && (setup=="Basic")%]
127
                                            <input type="hidden" name="framework" value="[% framework.fwkfile %]" id="[%framework.fwkname %]" />
128
                                        [% ELSE %]
129
                                            <input type="checkbox" name="framework" value="[%framework.fwkfile %]" id="[%framework.fwkname%]"/>
130
                                        [% END %]
131
                                        [% framework.fwkdescription %]
132
                                        <em>([% framework.fwkname %])</em>
133
                                    </label>
134
                                </div> <!-- /div.checkbox -->
135
                            [% END # / FOREACH framework %]
136
                        [% END # / FOREACH levelloo %]
137
138
                        <p>When you've made your selections, please click 'Import' below to begin the process. It may take a while to complete. Please be patient.</p>
139
140
                        <p><input type="submit" value="Import" class="btn btn-primary" /></p>
141
                    </form>
142
                [% END # / IF selectframeworks %]
143
144
                [% IF ( addframeworks ) %]
145
                    <h2>Web installer &rsaquo; Default data loaded</h2>
146
                    [% FOREACH lis IN list %]
147
                        <h3>[% lis.level FILTER ucfirst %] data added</h3>
199
                        <ul>
148
                        <ul>
200
                            [% FOREACH fwklis IN lis.fwklist %]
149
                            [% FOREACH fwklis IN lis.fwklist %]
201
                                <li>[% fwklis.fwkname %][% IF ( fwklis.error ) %]<br /><span class="error">[% fwklis.error %]</span>[% END %] </li>
150
                            <li>
151
                                [% fwklis.fwkname %]
152
                                [% IF ( fwklis.error ) %]<p class="bg-danger">[% fwklis.error %]</p>[% END %]
153
                            </li>
202
                            [% END %]
154
                            [% END %]
203
                        </ul>
155
                        </ul>
204
                [% END %]
156
                    [% END %]
205
                <h3>All done!</h3>
157
206
                <p>Installation complete.<br />
158
                    <h3>All done!</h3>
207
                    <p>
159
                    <p>Installation complete.</p>
208
                        You can help the Koha community by sharing your statistics with us.
160
                    <form action="/cgi-bin/koha/installer/install.pl" method="post" name="finish">
209
                        <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.
161
                        <p>
210
                    </p>
162
                            You can help the Koha community by sharing your statistics with us.
211
                    <p>Click on 'Set up Koha with the onboarding tool' to complete and load the Koha onboarding tool.
163
                        </p>
212
                        <form name="finish">
164
                        <p>
165
                            If you wish to share some of your data, please enable the functionality in the "Share your usage statistics" section of the Administration module.
166
                        </p>
167
168
                        <input type="hidden" name="step" value="3" />
169
                        <input type="hidden" name="op" value="finish" />
170
                        <p>
171
                            <input value="Set up some of Koha's basic requirements" class="btn btn-primary" type="submit" />
172
                        </p>
173
                    </form>
174
175
                [% END # / IF addframeworks %]
176
177
                [% IF ( importdatastructure ) %]
178
                    [% IF ( error ) %]
179
                        <p>The following error occurred while importing the database structure:</p>
180
                        <div class="alert alert-warning"><p>[% error %] </p></div>
181
                        <p>Please contact your system administrator</p>
182
                    [% ELSE %]
183
                        <h2>Web installer &rsaquo; Success</h2>
184
                        <div class="alert alert-success"><p>Database tables created</p></div>
185
                        <form action="install.pl" method="post">
213
                            <input type="hidden" name="step" value="3" />
186
                            <input type="hidden" name="step" value="3" />
214
                            <input type="hidden" name="op" value="finish" />
187
                            <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
215
                            <p> <input value="Set up Koha with the onboarding tool" class="btn btn-primary" type="submit" /> </p>
216
                        </form>
188
                        </form>
217
                    </p>
189
                    [% END %]
218
                </p>
190
                [% END # / IF importdatastructure %]
219
            [% END %]
220
191
221
            [% IF ( importdatastructure ) %]
192
                [% IF ( proposeimport ) %]
222
                [% IF ( error ) %]
193
                    <h2>Web installer &rsaquo; Set up database</h2>
223
                    <p>The following error occurred while importing the database structure:</p>
194
                    <p>Now we're ready to create the database tables and fill them with some default data.</p>
224
                    <p class="error">[% error %] </p>
195
                    <form action="install.pl" method="post">
225
                    <p>Please contact your system administrator</p>
226
                [% ELSE %]
227
                    <h2>Web installer &rsaquo; Success</h2>
228
                    <ul>
229
                        <li>Database tables created</li>
230
                    </ul>
231
                    <form action="install.pl">
232
                        <input type="hidden" name="step" value="3" />
196
                        <input type="hidden" name="step" value="3" />
197
                        <input type="hidden" name="op" value="importdatastructure" />
233
                        <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
198
                        <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
234
                    </form>
199
                    </form>
235
                [% END %]
200
                [% END # / proposeimport %]
236
            [% END %]
201
237
202
                [% IF ( default ) %]
238
            [% IF ( proposeimport ) %]
203
                    [% IF ( upgrading ) %]
239
                <h2>Web installer &rsaquo; Set up database</h2>
204
                        <h2>Web installer &rsaquo; Update database</h2>
240
                <p>Now we're ready to create the database tables and fill them with some default data.</p>
205
                        <p>We are upgrading from Koha [% dbversion %] to [% kohaversion %]</p>
241
                <form action="install.pl">
206
                        <p><a href="install.pl?step=3&amp;op=updatestructure" class="btn btn-primary">Update your database</a></p>
242
                    <input type="hidden" name="step" value="3" />
207
                    [% ELSE %]
243
                    <input type="hidden" name="op" value="importdatastructure" />
208
                        <h2>Web installer &rsaquo; Install basic configuration settings</h2>
244
                    <p><input value="Continue to the next step" class="btn btn-primary" type="submit" /></p>
209
                        <p>We are ready to do some basic configuration.</p>
245
                </form>
210
                        <p> <a href="install.pl?step=3&amp;op=choosemarc" class="btn btn-primary">Continue to the next step</a> </p>
246
            [% END %]
211
                    [% END %]
247
212
                [% END # / IF default %]
248
            [% IF ( default ) %]
249
                [% IF ( upgrading ) %]
250
                    <h2>Web installer &rsaquo; Update database</h2>
251
                    <p> We are upgrading from Koha [% dbversion %] to [% kohaversion %], you must update your database.
252
                        <br>
253
                        <a href="install.pl?step=3&amp;op=updatestructure" class="button">Update your database</a>
254
                    </p>
255
                [% ELSE %]
256
                    <h2>Web installer &rsaquo; Install basic configuration settings</h2>
257
                    <p>We are ready to do some basic configuration. Please install some basic configuration settings to continue the installation:
258
                    <br>
259
                    <br>
260
                    <p> <a href="install.pl?step=3&amp;op=choosemarc" class="btn btn-primary">Install basic configuration settings</a> </p>
261
                [% END %]
262
            [% END %]
263
213
264
            [% IF ( updatestructure ) %]
214
                [% IF ( updatestructure ) %]
265
                <div><h2 align="center">Updating database structure</h2>
215
                    <h2>Updating database structure</h2>
266
                    [% IF ( has_update_succeeds ) %]
216
                    [% IF ( has_update_succeeds ) %]
267
                        <p>Update report :</p>
217
                        <p>Update report :</p>
268
                        <ul>
218
                        <ul>
Lines 278-292 function Hide(link) Link Here
278
                                <li class="update_error">[% update_error.line |html %]</li>
228
                                <li class="update_error">[% update_error.line |html %]</li>
279
                            [% END %]
229
                            [% END %]
280
                        </ul>
230
                        </ul>
281
                   [% END %]
231
                    [% END %]
282
                   [% UNLESS ( has_update_errors ) %]
232
                    [% UNLESS ( has_update_errors ) %]
283
                        <p>Everything went OK, update done.</p>
233
                        <p>Everything went okay. Update done.</p>
284
                   [% END %]
234
                    [% END %]
285
                   <a href="install.pl?step=3&amp;op=finished" class="button">Continue to log in to Koha</a>
235
                    <p><a href="install.pl?step=3&amp;op=finished" class="btn btn-primary">Continue to log in to Koha</a></p>
286
                </div>
236
               [% END # / IF updatestructure %]
287
            [% END %]
237
            </div> <!-- / #installer-step3 -->
288
        </div>
238
        </div> <!-- / .row -->
289
    </div>
239
290
</div>
240
[% IF ( selectframeworks ) %]
291
</body>
241
    <script type="text/javascript">
292
</html>
242
        $(document).ready(function(){
243
            $("#selectall").on("click",function(e){
244
                e.preventDefault();
245
                $("input:checkbox").prop("checked", true);
246
            });
247
        });
248
    </script>
249
[% END %]
250
251
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep1.tt (-35 / +36 lines)
Lines 1-39 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
3
<title>Koha &rsaquo; Web installer &rsaquo; Create a library</title>
2
<title>Koha &rsaquo; Web installer &rsaquo; Create a library</title>
4
[% INCLUDE 'installer-doc-head-close.inc' %]
3
[% INCLUDE 'installer-doc-head-close.inc' %]
5
[% INCLUDE 'datatables.inc' %]
4
</head>
5
6
<body id="installer" class="installer">
6
<body id="installer" class="installer">
7
     <div class="container-fluid">
7
    <div class="container-fluid">
8
            <div class="row">
8
        <div class="row">
9
                <div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
9
            <div id="onboarding-step1" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
10
                    <h1 id="logo"><a href="#">Koha</a></h1>
10
                <h1 id="logo"><a href="#">Koha</a></h1>
11
                    [% INCLUDE 'onboarding_messages.inc' %]
11
                <h2>Web installer &rsaquo; Create a library</h2>
12
                    <form name="LibraryCreation" method="post" action="onboarding.pl">
12
13
                        <fieldset class="rows" >
13
                [% INCLUDE 'onboarding_messages.inc' %]
14
                             <h2>Web installer &rsaquo; Create a library</h2>
14
15
                             <input type="hidden" name="step" value="1"/>
15
                <form name="LibraryCreation" method="post" action="onboarding.pl">
16
                             <input type="hidden" name="op" value="add_validate_library"/>
16
                    <fieldset class="rows" >
17
                            <ol>
17
                        <input type="hidden" name="step" value="1"/>
18
                                <li>
18
                        <input type="hidden" name="op" value="add_validate_library"/>
19
                                    <label for="branchcode" class="required">Library code: </label>
19
                        <ol>
20
                                    <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>
21
                                    <span class="required">Required</span>
21
                                <label for="branchcode" class="required">Library code: </label>
22
                                </li>
22
                                <input type="text"  pattern="[0-9A-Za-z]{1,10}" name="branchcode" id="branchcode" size="10" maxlength="10" value="" class="required" required="required" />
23
                                <li>
23
                                <span class="required">Required</span>
24
                                    <label for="branchname" class="required">Name: </label>
24
                            </li>
25
                                    <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>
26
                                    <span class="required">Required</span>
26
                                <label for="branchname" class="required">Name: </label>
27
                                </li>
27
                                <input type="text" name="branchname" id="branchname" size="42" class="required" required="required">
28
                            </ol>
28
                                <span class="required">Required</span>
29
                            <p>
29
                            </li>
30
                            To add another library and for more settings, go to:<br>
30
                        </ol>
31
                            <div class="breadcrumbs"> Administration <b>&rsaquo;</b> Libraries and groups </div>
31
                        <p>To add another library and for more settings, go to:
32
                            </p>
32
                            <span class="breadcrumbs"> Administration <b>&rsaquo;</b> Libraries and groups </span>
33
                            <input type="submit" class="btn btn-primary" value="Submit" />
33
                        </p>
34
                            </fieldset>
34
                        <input type="submit" class="btn btn-primary" value="Submit" />
35
                    </form>
35
                    </fieldset>
36
                </div>
36
                </form>
37
            </div>
37
            </div> <!-- / #onboarding-step1 -->
38
        </div>
38
        </div> <!-- / .row -->
39
</body>
39
40
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt (-36 / +45 lines)
Lines 1-6 Link Here
1
[% USE Koha %]
1
[% USE Koha %]
2
[% USE KohaDates %]
2
[% USE KohaDates %]
3
[% USE Price %]
4
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
5
<title>Koha &rsaquo; Web installer &rsaquo; Add a patron category</title>
4
<title>Koha &rsaquo; Web installer &rsaquo; Add a patron category</title>
6
[% IF (categories && categories.count > 1 )
5
[% IF (categories && categories.count > 1 )
Lines 9-18 Link Here
9
    # in it this means that the user has previously imported sample patron category
8
    # in it this means that the user has previously imported sample patron category
10
    # data and so we do not need to show them the create patron category screen 1,
9
    # data and so we do not need to show them the create patron category screen 1,
11
    #instead we can display a screen with ubtton redirecting the user to step 3 %]
10
    #instead we can display a screen with ubtton redirecting the user to step 3 %]
12
     <meta http-equiv="refresh" content="0; url=/cgi-bin/koha/installer/onboarding.pl?step=3">
11
    <meta http-equiv="refresh" content="0; url=/cgi-bin/koha/installer/onboarding.pl?step=3">
13
[% END %]
12
[% END %]
14
[% INCLUDE 'installer-doc-head-close.inc' %]
13
[% INCLUDE 'installer-doc-head-close.inc' %]
15
[% INCLUDE 'js_includes.inc' %]
16
[% INCLUDE 'validator-strings.inc' %]
14
[% INCLUDE 'validator-strings.inc' %]
17
[% INCLUDE 'installer-strings.inc' %]
15
[% INCLUDE 'installer-strings.inc' %]
18
<script type="text/javascript" src="[% interface %]/[% theme %]/js/onboarding.js"></script>
16
<script type="text/javascript" src="[% interface %]/[% theme %]/js/onboarding.js"></script>
Lines 20-31 Link Here
20
18
21
<body id="installer" class="installer">
19
<body id="installer" class="installer">
22
    <div class="container-fluid">
20
    <div class="container-fluid">
23
         <div class="row">
21
        <div class="row">
24
             <div id="installer-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
22
            <div id="onboarding-step2" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
25
                <h1 id="logo"><a href="#">Koha</a></h1>
23
                <h1 id="logo"><a href="#">Koha</a></h1>
26
                [% INCLUDE 'onboarding_messages.inc' %]
24
27
                <h2>Web installer &rsaquo; Create a patron category</h2>
25
                <h2>Web installer &rsaquo; Create a patron category</h2>
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>
26
27
                [% INCLUDE 'onboarding_messages.inc' %]
28
29
                <p> The patron category you create will be used by the <span class="bg-info">administrator account</span>.</p>
30
29
                <form id="category_form" method="post" action="onboarding.pl">
31
                <form id="category_form" method="post" action="onboarding.pl">
30
                    <fieldset class="rows">
32
                    <fieldset class="rows">
31
                        <input type="hidden" name="step" value="2"/>
33
                        <input type="hidden" name="step" value="2"/>
Lines 33-51 Link Here
33
                        <ol>
35
                        <ol>
34
                            <li>
36
                            <li>
35
                                <label for="categorycode" class="required">Category code: </label>
37
                                <label for="categorycode" class="required">Category code: </label>
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" />
38
                                <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" />
37
                                <span class="required">Required</span>
39
                                <span class="required">Required</span>
38
                            </li>
40
                            </li>
39
41
40
                            <li>
42
                            <li>
41
                                <label for="description" class="required">Description: </label>
43
                                <label for="description" class="required">Description: </label>
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%]" />
44
                                <input type="text" id="description" name="description" size="40" maxlength="80" class="required" required="required" value="[% category.description |html%]" />
43
                                <span class="required">Required</span>
45
                                <span class="required">Required</span>
44
                            </li>
46
                            </li>
45
47
46
                            <li>
48
                            <li>
47
                                <label for="overduenoticerequired">Overdue notice required: </label>
49
                                <label for="overduenoticerequired">Overdue notice required: </label>
48
                                <select name="overduenoticerequired" value="overduenoticerequired">
50
                                <select name="overduenoticerequired" id="overduenoticerequired">
49
                                    [% IF category.overduenoticerequired %]
51
                                    [% IF category.overduenoticerequired %]
50
                                        <option value="0">No</option>
52
                                        <option value="0">No</option>
51
                                        <option value="1" selected="selected">Yes</option>
53
                                        <option value="1" selected="selected">Yes</option>
Lines 57-69 Link Here
57
                            </li>
59
                            </li>
58
60
59
                            <li>
61
                            <li>
60
                                <label for="category_type" class="required">Category type: </label>
62
                                <span class="label">Category type: </span>
63
                                <input type="hidden" name="category_type" value="S" />
61
                                Staff
64
                                Staff
62
                            </li>
65
                            </li>
63
66
64
                            <li>
67
                            <li>
65
                                <label for="default_privacy">Default privacy: </label>
68
                                <label for="default_privacy">Default privacy: </label>
66
                                <select value="default_privacy" name="default_privacy" required="required">
69
                                <select id="default_privacy" name="default_privacy" required="required">
67
                                    [% SET default_privacy = 'default' %]
70
                                    [% SET default_privacy = 'default' %]
68
71
69
                                    [% IF category %]
72
                                    [% IF category %]
Lines 85-117 Link Here
85
                                            <option value="forever">Forever</option>
88
                                            <option value="forever">Forever</option>
86
                                    [% END %]
89
                                    [% END %]
87
                                </select>
90
                                </select>
88
                                <div class="hint">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.</div>
91
                                <div class="hint">
92
                                        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.
93
                                </div>
94
                            </li>
95
                            <li>
96
                                <span class="label">Enrolment period: </span>
97
                                <fieldset class="rows">
98
                                    <ol>
99
                                        <li>
100
                                                <span class="label"> </span><strong>Choose one</strong>
101
                                            </li>
102
                                            <li>
103
                                            <label for="enrolmentperiod">In months: </label>
104
                                            <input type="number" class="enrolmentperiod" name="enrolmentperiod" id="enrolmentperiod" min="0" size="3" value="[% IF category.enrolmentperiod %][% category.enrolmentperiod %][% END %]" /> months
105
                                        </li>
106
                                        <li>
107
                                             <label for="enrolmentperioddate">Until date: </label>
108
                                              <input type="text" class="enrolmentperioddate datepicker" name="enrolmentperioddate" id="enrolmentperioddate" value="[% category.enrolmentperioddate | $KohaDates %]" />
109
                                             <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
110
                                        </li>
111
                                    </ol>
112
                                </fieldset>
89
                            </li>
113
                            </li>
90
                        </ol>
114
                        </ol>
91
                        <span class="label">Enrolment period: </span>
115
92
                        </br>
116
                        <p> To add another patron category and for more settings go to:
93
                        <fieldset>
117
                            <span class="breadcrumbs"> Administration <b>&rsaquo;</b> Patron categories</span>
94
                            <legend>Choose one</legend>
118
                        </p>
95
                            <ol>
119
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> To add another patron category and for more settings<br>
108
                        go to:<br>
109
                        <div class="breadcrumbs"> Administration <b>&rsaquo;</b> Patron categories</div>
110
                        <input type="submit" class="btn btn-primary" value="Submit" />
120
                        <input type="submit" class="btn btn-primary" value="Submit" />
111
                    </fieldset>
121
                    </fieldset>
112
                </form>
122
                </form>
113
            </div>
123
            </div> <!-- / #onboarding-step2 -->
114
        </div>
124
        </div> <!-- / .row -->
115
    </div>
125
116
</body>
117
[% INCLUDE 'intranet-bottom.inc' %]
126
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep3.tt (-28 / +32 lines)
Lines 1-35 Link Here
1
<!--Includes for creating patron-->
2
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Web installer &rsaquo; Create Koha administrator patron</title>
3
[% INCLUDE 'installer-doc-head-close.inc' %]
3
[% INCLUDE 'installer-doc-head-close.inc' %]
4
[% INCLUDE 'js_includes.inc' %]
5
[% INCLUDE 'validator-strings.inc' %]
4
[% INCLUDE 'validator-strings.inc' %]
6
[% INCLUDE 'installer-strings.inc' %]
5
[% INCLUDE 'installer-strings.inc' %]
7
<title>Koha &rsaquo; Web installer &rsaquo; Create Koha administrator patron</title>
6
<script type="text/javascript" src="[% interface %]/[% theme %]/js/onboarding.js"></script>
7
</head>
8
8
9
<body id="installer" class="installer">
9
<body id="installer" class="installer">
10
    <div class="container-fluid">
10
    <div class="container-fluid">
11
        <div class="row">
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">
12
            <div id="onboarding-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
13
                <h1 id="logo"><a href="#">Koha</a></h1>
13
                <h1 id="logo"><a href="#">Koha</a></h1>
14
                [% INCLUDE 'onboarding_messages.inc' %]
15
                <h2>Web installer &rsaquo; Create Koha administrator patron</h2>
14
                <h2>Web installer &rsaquo; Create Koha administrator patron</h2>
16
                <p>Now we will create a patron with superlibrarian permissions. Login with this to access Koha as a staff member will all permissions.
15
16
                [% INCLUDE 'onboarding_messages.inc' %]
17
18
                <p>
19
                Now we will create a patron with superlibrarian permissions. Login with this to access Koha as a staff member with all permissions.
17
                </p>
20
                </p>
18
                <form name="createpatron" id="createpatron" method="post" action="onboarding.pl">
21
                <form name="createpatron" id="createpatron" method="post" action="onboarding.pl">
19
                    <fieldset class="rows">
22
                    <fieldset class="rows">
20
                        <input type="hidden" name="step" value="3"/>
23
                        <input type="hidden" name="step" value="3"/>
21
                        <input type="hidden" name="op" value="add_validate_patron" />
24
                        <input type="hidden" name="op" value="add_validate_patron" />
22
                        <legend id="library_management_lgd">Library management</legend>
25
                        <h3>Administrator identity</h3>
23
                        <ol>
26
                        <ol>
24
                            <h3>Patron identity</h3>
25
                            <li>
27
                            <li>
26
                                <label for="surname" class="required">Surname: </label>
28
                                <label for="surname" class="required">Surname: </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" />
29
                                <input type="text" id="surname" name="surname" value="[% surname |html %]" class="required" required="required" />
28
                                <span class="required">Required</span>
30
                                <span class="required">Required</span>
29
                            </li>
31
                            </li>
30
                            <li>
32
                            <li>
31
                                <label for="firstname" class="required">First name: </label>
33
                                <label for="firstname" class="required">First name: </label>
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">
34
                                <input  type="text" name="firstname" id="firstname" size="20" value="[% firstname |html %]" class="required" required="required">
33
                                <span class="required">Required</span>
35
                                <span class="required">Required</span>
34
                            </li>
36
                            </li>
35
                        </ol>
37
                        </ol>
Lines 38-46 Link Here
38
                            <li>
40
                            <li>
39
                                <label for="cardnumber" class="required">Card number: </label>
41
                                <label for="cardnumber" class="required">Card number: </label>
40
                                [% IF patrons && patrons > 1 %]
42
                                [% 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">
43
                                    <input type="text" id="cardnumber" class="noEnterSubmit valid" name="cardnumber" value="[% newcardnumber | html %]" class="required" required="required">
42
                                [% ELSE %]
44
                                [% ELSE %]
43
                                    <input type="text" id="cardnumber" title="Please enter a cardnumber" name="cardnumber" value="[% cardnumber | html %]" class="required" required="required">
45
                                    <input type="text" id="cardnumber" name="cardnumber" value="[% cardnumber | html %]" class="required" required="required">
44
                                [% END %]
46
                                [% END %]
45
                                <span class="required">Required</span>
47
                                <span class="required">Required</span>
46
                            </li>
48
                            </li>
Lines 50-65 Link Here
50
                                <label for="libraries" class="required"> Library: </label>
52
                                <label for="libraries" class="required"> Library: </label>
51
                                <select name="libraries" size="1" id="libraries">
53
                                <select name="libraries" size="1" id="libraries">
52
                                    [% FOREACH library IN libraries %]
54
                                    [% FOREACH library IN libraries %]
53
                                        <option name="libraries" value="[% library.branchcode %]"> [% library.branchname %]
55
                                        <option value="[% library.branchcode %]"> [% library.branchname %] </option>
54
                                    [% END %]
56
                                    [% END %]
55
                                </select>
57
                                </select>
56
                                <span class="required"> Required</span>
58
                                <span class="required"> Required</span>
57
                            </li>
59
                            </li>
58
                            <li>
60
                            <li>
59
                                <label for="categorycode_entry" class="required"> Patron category</label>
61
                                <label for="categorycode_entry" class="required"> Patron category</label>
60
                                <select id="categorycode_entry" name="categorycode_entry" onchange="update_category_code(this);">
62
                                <select id="categorycode_entry" name="categorycode_entry">
61
                                    [% FOREACH category IN categories %]
63
                                    [% FOREACH category IN categories %]
62
                                        <option name="categorycode_entry" value = "[% category.categorycode %]">[%category.description %]</option>
64
                                        <option value = "[% category.categorycode %]">[%category.description %]</option>
63
                                    [% END %]
65
                                    [% END %]
64
                                </select>
66
                                </select>
65
                                <span class="required">Required</span><br><br>
67
                                <span class="required">Required</span><br><br>
Lines 67-89 Link Here
67
                            </li>
69
                            </li>
68
                        </ol>
70
                        </ol>
69
71
72
                            <h3>Administrator account permissions</h3>
70
                        <ol>
73
                        <ol>
71
                            <h3> Koha administrator patron permissions</h3>
72
                            <li>
74
                            <li>
73
                                <input type="hidden" name="newflags" value="1"/>
75
                                <input type="hidden" name="newflags" value="1"/>
74
                                <input type="hidden" class="flag parent" id="flag-0" name="flag" value="superlibrarian"/>
76
                                <input type="hidden" class="flag parent" id="flag-0" name="flag" value="superlibrarian"/>
75
                                <code> superlibrarian</code>
77
                                <code> superlibrarian</code>
76
                            </li>
78
                            </li>
77
                        </ol>
79
                        </ol>
80
81
                            <h3>Administrator login</h3>
78
                        <ol>
82
                        <ol>
79
                            <h3>OPAC/Staff Login</h3>
80
                            <li>
83
                            <li>
81
                                <label for="userid" class="required">Username: </label>
84
                                <label for="userid" class="required">Username: </label>
82
                                <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" />
85
                                <input type="text" name="userid" id ="userid" size="20" value="[% userid |html %]" class="required" required="required" />
83
                                <span class="required">Required</span>
86
                                <span class="required">Required</span>
84
                            </li>
87
                            </li>
85
                            <li>
88
                            <li>
86
                                <label for="passwordlabel" class="required">Password: </label>
89
                                <label for="password" class="required">Password: </label>
87
                                <input type="password" name="password" id="password" size="20" value="[% member.password |html %]" class="required" required="required">
90
                                <input type="password" name="password" id="password" size="20" value="[% member.password |html %]" class="required" required="required">
88
                                <span class="required">Required</span>
91
                                <span class="required">Required</span>
89
                            </li>
92
                            </li>
Lines 94-110 Link Here
94
                            </li>
97
                            </li>
95
                        </ol>
98
                        </ol>
96
                        <p>
99
                        <p>
97
                            To create another patron, go:</p>
100
                            To create another patron, go to:
98
                            <div class="breadcrumbs">Patrons &rsaquo; New patron</div>
101
                            <span class="breadcrumbs">Patrons &rsaquo; New patron</span>
99
                            <br>
102
                        </p>
103
                        <p>
100
                            To give the new patron superlibrarian permissions go to:
104
                            To give the new patron superlibrarian permissions go to:
101
                            <div class="breadcrumbs">More &rsaquo; Set Permissions</div>
105
                            <span class="breadcrumbs">More &rsaquo; Set Permissions</span>
102
                        </p>
106
                        </p>
103
                    </fieldset>
107
                    </fieldset>
104
                    <br>
108
105
                    <input type="submit" class="btn btn-primary" value="Submit" />
109
                    <input type="submit" class="btn btn-primary" value="Submit" />
106
                </form>
110
                </form>
107
            </div>
111
            </div> <!-- / #onboarding-step3 -->
108
        </div>
112
        </div> <!-- / .row -->
109
    </div>
113
110
</body>
114
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep4.tt (-16 / +20 lines)
Lines 1-5 Link Here
1
<!-- includes for creating item type-->
2
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Web installer &rsaquo; Create a new item type </title>
3
[% INCLUDE 'installer-doc-head-close.inc' %]
3
[% INCLUDE 'installer-doc-head-close.inc' %]
4
[% INCLUDE 'validator-strings.inc' %]
4
[% INCLUDE 'validator-strings.inc' %]
5
[% INCLUDE 'installer-strings.inc' %]
5
[% INCLUDE 'installer-strings.inc' %]
Lines 9-47 Link Here
9
<body id="installer" class="installer">
9
<body id="installer" class="installer">
10
    <div class="container-fluid">
10
    <div class="container-fluid">
11
        <div class="row">
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">
12
            <div id="onboarding-step4" 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>
13
                <h1 id="logo"><a href="#">Koha</a></h1>
14
                [% INCLUDE 'onboarding_messages.inc' %]
15
                <h2>Web installer &rsaquo; Create a new item type </h2>
14
                <h2>Web installer &rsaquo; Create a new item type </h2>
15
16
                [% INCLUDE 'onboarding_messages.inc' %]
17
16
                <!--Create a item type screen 1-->
18
                <!--Create a item type screen 1-->
17
                <h1 align="center"> Create a new Item type </h1>
19
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>
20
                    <p> Item types are used to group related items. Examples of item types might be books, CDs, or DVDs.</p>
19
                <form name="createitemform" method="post" action="onboarding.pl">
21
                    <p> When adding to your institution's catalog you will create an item of a particular item type.</p>
22
                    <p> Importantly item types are what you apply circulation rules to. Circulation rules govern how your institution will lend its items: Checkout length, renewal policy, hold policy, etc. For example a circulation rule applied to the DVD item type may enforce a payment of $1.00 for checking out any DVD.</p>
23
24
                    <form id="createitemform" method="post" action="onboarding.pl">
20
                    <fieldset class="rows">
25
                    <fieldset class="rows">
21
                        <input type="hidden" name="step" value="4"/>
26
                        <input type="hidden" name="step" value="4"/>
22
                        <input type="hidden" name="op" value="add_validate_itemtype" />
27
                        <input type="hidden" name="op" value="add_validate_itemtype" />
23
                        <ol>
28
                        <ol>
24
                            <li>
29
                            <li>
25
                                <label for="itemtype" class="required">Item type code: </label>
30
                                <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 %]" />
31
                                <input type="text" name="itemtype" pattern="[0-9A-Za-z]{1,10}" id="itemtype" size="10" maxlength="10"  class="required" required="required" value="[% itemtype.itemtype |html %]" />
27
                                <span class="required">Required</span>
32
                                <span class="required">Required</span>
28
                            </li>
33
                            </li>
29
34
30
                            <li>
35
                            <li>
31
                                <label for="description" class="required">Description: </label>
36
                                <label for="description" class="required">Description: </label>
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">
37
                                <input type="text" name="description" id="description" size="42" value="[% itemtype.description |html %]" class="required" required="required">
33
                                <span class="required">Required</span>
38
                                <span class="required">Required</span>
34
                            </li>
39
                            </li>
35
                        </ol>
40
                        </ol>
36
                        <br>
41
37
                        <p> To create another item type later and for more settings <br>
42
                        <p> To create another item type later and for more settings go to:
38
                        go to: <br>
43
                            <span class="breadcrumbs"> Administration &rsaquo; Item types </span>
39
                        <div class="breadcrumbs"> Administration &rsaquo; Item types </div>
40
                        </p>
44
                        </p>
41
                        <input type="submit" class="btn btn-primary" value="Submit"/>
45
                        <input type="submit" class="btn btn-primary" value="Submit"/>
42
                    </fieldset>
46
                    </fieldset>
43
                </form>
47
                </form>
44
            </div>
48
            </div> <!-- / #onboarding-step4 -->
45
        </div>
49
        </div> <!-- / .row -->
46
    </div>
50
47
</body>
51
[% INCLUDE 'intranet-bottom.inc' %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt (-24 / +35 lines)
Lines 1-5 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Create Circulation rule</title>
2
<title>Koha &rsaquo; Web installer &rsaquo;
3
    [% IF all_done %]
4
        Complete
5
    [% ELSE %]
6
        Create circulation rule
7
    [% END %]
8
</title>
3
[% INCLUDE 'installer-doc-head-close.inc' %]
9
[% INCLUDE 'installer-doc-head-close.inc' %]
4
[% INCLUDE 'validator-strings.inc' %]
10
[% INCLUDE 'validator-strings.inc' %]
5
[% INCLUDE 'installer-strings.inc' %]
11
[% INCLUDE 'installer-strings.inc' %]
Lines 9-47 Link Here
9
<body id="installer" class="installer">
15
<body id="installer" class="installer">
10
    <div class="container-fluid">
16
    <div class="container-fluid">
11
        <div class="row">
17
        <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">
18
            <div id="onboarding-step5" 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>
19
                <h1 id="logo"><a href="#">Koha</a></h1>
14
                [% INCLUDE 'onboarding_messages.inc' %]
15
20
16
                [% IF all_done %]
21
                [% IF all_done %]
22
17
                    <h2>Web installer &rsaquo; Complete</h2>
23
                    <h2>Web installer &rsaquo; Complete</h2>
18
                    <h3>Congratulations you have finished and ready to use Koha</h3>
24
                    <h3>Congratulations you have finished and ready to use Koha</h3>
19
                    <a class="btn btn-success" href="/cgi-bin/koha/mainpage.pl">Start using Koha</a>
25
                    <a class="btn btn-success" href="/cgi-bin/koha/mainpage.pl">Start using Koha</a>
26
20
                [% ELSE %]
27
                [% ELSE %]
28
21
                    <h2>Web installer &rsaquo; Create a new circulation rule </h2>
29
                    <h2>Web installer &rsaquo; Create a new circulation rule </h2>
30
31
                    [% INCLUDE 'onboarding_messages.inc' %]
32
22
                    <form name="createcirculationrule" method="post" action="onboarding.pl">
33
                    <form name="createcirculationrule" method="post" action="onboarding.pl">
23
                        <fieldset class="rows">
34
                        <fieldset class="rows">
24
                            <input type="hidden" name="step" value="5"/>
35
                            <input type="hidden" name="step" value="5"/>
25
                            <input type="hidden" name="op" value="add_validate_circ_rule" />
36
                            <input type="hidden" name="op" value="add_validate_circ_rule" />
26
                            <ol>
37
                            <ol>
27
                                <li>
38
                                <li>
28
                                    <label for="branch" class="required"> Library branch</label>
39
                                    <label for="branchname" class="required"> Library branch</label>
29
                                    <select name="branch" id="branchname" required="required">
40
                                    <select name="branch" id="branchname" required="required">
30
                                        <option value""> Choose</option>
41
                                        <option value=""> Choose</option>
31
                                        <option value="*" selected="selected">All</option>
42
                                        <option value="*" selected="selected">All</option>
32
                                        [% FOREACH library IN libraries %]
43
                                        [% FOREACH library IN libraries %]
33
                                            <option id="branch" value="[% library.branchcode %]"> [% library.branchname %]</option>
44
                                            <option value="[% library.branchcode %]"> [% library.branchname %]</option>
34
                                        [% END %]
45
                                        [% END %]
35
                                    </select>
46
                                    </select>
36
                                    <span class="required">Required</span>
47
                                    <span class="required">Required</span>
37
                                </li>
48
                                </li>
38
                                <li>
49
                                <li>
39
                                    <label for="categorycode" class="required">Patron category: </label>
50
                                    <label for="categorycode" class="required">Patron category: </label>
40
                                    <select name="categorycode" id="categorycodeselection" required="required" onchange = "update_categorycode(this);">
51
                                    <select name="categorycode" id="categorycode" required="required">
41
                                        <option value=""> Choose</option>
52
                                        <option value=""> Choose</option>
42
                                        <option value="*" selected="selected">All</option>
53
                                        <option value="*" selected="selected">All</option>
43
                                        [% FOREACH category IN categories %]
54
                                        [% FOREACH category IN categories %]
44
                                            <option id="categorycode" value = "[% category.categorycode %]"> [%category.description %]</option>
55
                                            <option value = "[% category.categorycode %]"> [%category.description %]</option>
45
                                        [%END%]
56
                                        [%END%]
46
                                    </select>
57
                                    </select>
47
                                    <span class="required">Required</span>
58
                                    <span class="required">Required</span>
Lines 50-79 Link Here
50
                                <li>
61
                                <li>
51
                                    <label for="itemtype"> Item type: </label>
62
                                    <label for="itemtype"> Item type: </label>
52
                                    <select id="itemtype" name="itemtype" required="required">
63
                                    <select id="itemtype" name="itemtype" required="required">
53
                                        <option value""> Choose </option>
64
                                        <option value=""> Choose </option>
54
                                        <option value="*" selected="selected">All</option>
65
                                        <option value="*" selected="selected">All</option>
55
                                        [% FOREACH item IN itemtypes %]
66
                                        [% FOREACH item IN itemtypes %]
56
                                            <option name="itemtype" value = "[% item.itemtype %]"> [% item.itemtype %]
67
                                            <option value = "[% item.itemtype %]"> [% item.itemtype %]
57
                                        [%END%]
68
                                        [%END%]
58
                                    </select>
69
                                    </select>
59
                                    <span class="required"> Required</span>
70
                                    <span class="required"> Required</span>
60
                                </li>
71
                                </li>
61
                                <li>
72
                                <li>
62
                                    <label for="maxissueqty" class="required">Current checkouts allowed: </label>
73
                                    <label for="maxissueqty" class="required">Current checkouts allowed: </label>
63
                                    <input type="number" min="0" name="maxissueqty" title="Please only enter numbers" id="maxissueqty" size="10" value="50" class="required" required="required" />
74
                                    <input type="number" min="0" name="maxissueqty" id="maxissueqty" size="10" value="50" class="required" required="required" />
64
                                    <span class="required">Required</span>
75
                                    <span class="required">Required</span>
65
                                </li>
76
                                </li>
66
77
67
                                <li>
78
                                <li>
68
                                    <label for="issuelength" class="required">Loan period: </label>
79
                                    <label for="issuelength" class="required">Loan period: </label>
69
                                    <input type="number" min="0" name="issuelength" title="Please only enter numbers" id="issuelength" size="10" value="14" class="required" required="required" />
80
                                    <input type="number" min="0" name="issuelength" id="issuelength" size="10" value="14" class="required" required="required" />
70
                                    <span class="required">Required</span>
81
                                    <span class="required">Required</span>
71
                                </li>
82
                                </li>
72
                                <li>
83
                                <li>
73
                                    <label for="lengthunit">Units: </label>
84
                                    <label for="lengthunit">Units: </label>
74
                                    <select name="lengthunit" id="lengthunit" required="required">
85
                                    <select name="lengthunit" id="lengthunit" required="required">
75
                                    <option value=""> Choose </option>
86
                                        <option value=""> Choose </option>
76
                                    [% SET units = 'days' %]
87
                                        [% SET units = 'days' %]
77
                                        [% IF category %]
88
                                        [% IF category %]
78
                                            [% SET default_privacy = category.default_privacy %]
89
                                            [% SET default_privacy = category.default_privacy %]
79
                                        [% END %]
90
                                        [% END %]
Lines 90-102 Link Here
90
                                </li>
101
                                </li>
91
                                <li>
102
                                <li>
92
                                    <label for="renewalsallowed" class="required">Renewals allowed: </label>
103
                                    <label for="renewalsallowed" class="required">Renewals allowed: </label>
93
                                    <input type="number" min="0" name="renewalsallowed" title="Please only enter numbers" id="renewalsallowed" size="10" max="10" value="10" class="required" required="required" />
104
                                    <input type="number" min="0" name="renewalsallowed" id="renewalsallowed" size="10" max="10" value="10" class="required" required="required" />
94
                                    <span class="required">Required</span>
105
                                    <span class="required">Required</span>
95
                                </li>
106
                                </li>
96
107
97
                                <li>
108
                                <li>
98
                                    <label for="renewalperiod" class="required">Renewals period: </label>
109
                                    <label for="renewalperiod" class="required">Renewals period: </label>
99
                                    <input type="number" min="0" name="renewalperiod" title="Please only enter numbers" id="renewalperiod" size="10" value="14" class="required" required="required" />
110
                                    <input type="number" min="0" name="renewalperiod" id="renewalperiod" size="10" value="14" class="required" required="required" />
100
                                    <span class="required">Required</span>
111
                                    <span class="required">Required</span>
101
                                </li>
112
                                </li>
102
113
Lines 110-125 Link Here
110
                                    </select>
121
                                    </select>
111
                                </li>
122
                                </li>
112
                            </ol>
123
                            </ol>
113
                            <p> To create circulation rule, go to <br>
124
                            <p>
114
                            <div class="breadcrumbs"> More &rsaquo; Administration &rsaquo; Circulation and Fine Rules </div>
125
                                To create circulation rule, go to:
126
                                <span class="breadcrumbs"> More &rsaquo; Administration &rsaquo; Circulation and Fine Rules </span>
115
                            </p>
127
                            </p>
116
128
117
                        </fieldset>
129
                        </fieldset>
118
                        <br>
130
119
                        <input type="submit" class="btn btn-primary" value="Submit" />
131
                        <input type="submit" class="btn btn-primary" value="Submit" />
120
                    </form>
132
                    </form>
121
                [% END %]
133
                [% END %]
122
            </div>
134
            </div> <!-- / #onboarding-step5 -->
123
        </div>
135
        </div> <!-- / .row -->
124
    </div>
136
125
</body>
137
[% INCLUDE 'intranet-bottom.inc' %]
126
- 

Return to bug 18462