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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep1.tt (-13 / +14 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
3
3
<title>Koha &rsaquo; Web installer &rsaquo; Create a library</title>
4
<title>[% t('Koha › Web installer › Create a library') %]</title>
4
[% INCLUDE 'installer-doc-head-close.inc' %]
5
[% INCLUDE 'installer-doc-head-close.inc' %]
5
</head>
6
</head>
6
7
Lines 8-36 Link Here
8
    <div class="container-fluid">
9
    <div class="container-fluid">
9
        <div class="row">
10
        <div class="row">
10
            <div id="onboarding-step1" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
11
            <div id="onboarding-step1" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
11
                <h1 id="logo"><a href="#">Koha</a></h1>
12
                <h1 id="logo"><a href="#">[% t('Koha') %]</a></h1>
12
                <h2>Web installer &rsaquo; Create a library</h2>
13
                <h2>[% t('Web installer › Create a library') %]</h2>
13
14
14
                [% INCLUDE 'onboarding_messages.inc' %]
15
                [% INCLUDE 'onboarding_messages.inc' %]
15
16
16
                <form name="LibraryCreation" method="post" action="onboarding.pl">
17
                <form name="LibraryCreation" method="post" action="onboarding.pl">
17
                    <fieldset class="rows" >
18
                    <fieldset class="rows">
18
                        <input type="hidden" name="step" value="1"/>
19
                        <input type="hidden" name="step" value="1" />
19
                        <input type="hidden" name="op" value="add_validate_library"/>
20
                        <input type="hidden" name="op" value="add_validate_library" />
20
                        <ol>
21
                        <ol>
21
                            <li>
22
                            <li>
22
                                <label for="branchcode" class="required">Library code: </label>
23
                                <label for="branchcode" class="required">[% t('Library code:') %] </label>
23
                                <input type="text"  pattern="[0-9A-Za-z]{1,10}" name="branchcode" id="branchcode" size="10" maxlength="10" value="" class="required" required="required" />
24
                                <input type="text" pattern="[0-9A-Za-z]{1,10}" name="branchcode" id="branchcode" size="10" maxlength="10" value="" class="required" required="required" />
24
                                <span class="required">Required</span>
25
                                <span class="required">[% t('Required') %]</span>
25
                            </li>
26
                            </li>
26
                            <li>
27
                            <li>
27
                                <label for="branchname" class="required">Name: </label>
28
                                <label for="branchname" class="required">[% t('Name:') %] </label>
28
                                <input type="text" name="branchname" id="branchname" size="42" class="required" required="required">
29
                                <input type="text" name="branchname" id="branchname" size="42" class="required" required="required">
29
                                <span class="required">Required</span>
30
                                <span class="required">[% t('Required') %]</span>
30
                            </li>
31
                            </li>
31
                        </ol>
32
                        </ol>
32
                        <p>To add another library and for more settings, go to:
33
                        <p>[% t('To add another library and for more settings, go to:') %]
33
                            <span class="breadcrumbs"> Administration <b>&rsaquo;</b> Libraries and groups </span>
34
                            <span class="breadcrumbs"> [% t('Administration') %] <b>›</b> [% t('Libraries and groups') %] </span>
34
                        </p>
35
                        </p>
35
                        <input type="submit" class="btn btn-primary" value="Submit" />
36
                        <input type="submit" class="btn btn-primary" value="Submit" />
36
                    </fieldset>
37
                    </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep2.tt (-32 / +33 lines)
Lines 1-7 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Koha %]
2
[% USE Koha %]
2
[% USE KohaDates %]
3
[% USE KohaDates %]
3
[% INCLUDE 'doc-head-open.inc' %]
4
[% INCLUDE 'doc-head-open.inc' %]
4
<title>Koha &rsaquo; Web installer &rsaquo; Add a patron category</title>
5
<title>[% t('Koha › Web installer › Add a patron category') %]</title>
5
[%# The following if statement checks if the categories variable handed to this template %]
6
[%# The following if statement checks if the categories variable handed to this template %]
6
[%# by onboarding.pl has data in it. If the categories variable does have data %]
7
[%# by onboarding.pl has data in it. If the categories variable does have data %]
7
[%# in it this means that the user has previously imported sample patron category %]
8
[%# in it this means that the user has previously imported sample patron category %]
Lines 20-32 Link Here
20
    <div class="container-fluid">
21
    <div class="container-fluid">
21
        <div class="row">
22
        <div class="row">
22
            <div id="onboarding-step2" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
23
            <div id="onboarding-step2" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
23
                <h1 id="logo"><a href="#">Koha</a></h1>
24
                <h1 id="logo"><a href="#">[% t('Koha') %]</a></h1>
24
25
25
                <h2>Web installer &rsaquo; Create a patron category</h2>
26
                <h2>[% t('Web installer › Create a patron category') %]</h2>
26
27
27
                [% INCLUDE 'onboarding_messages.inc' %]
28
                [% INCLUDE 'onboarding_messages.inc' %]
28
29
29
                <p> The patron category you create will be used by the <span class="bg-info">administrator account</span>.</p>
30
                <p> [% t('The patron category you create will be used by the') %] <span class="bg-info">[% t('administrator account') %]</span>.</p>
30
31
31
                <form id="category_form" method="post" action="onboarding.pl">
32
                <form id="category_form" method="post" action="onboarding.pl">
32
                    <fieldset class="rows">
33
                    <fieldset class="rows">
Lines 34-71 Link Here
34
                        <input type="hidden" name="op" value="add_validate_category" />
35
                        <input type="hidden" name="op" value="add_validate_category" />
35
                        <ol>
36
                        <ol>
36
                            <li>
37
                            <li>
37
                                <label for="categorycode" class="required">Category code: </label>
38
                                <label for="categorycode" class="required">[% t('Category code:') %] </label>
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" />
39
                                <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" />
39
                                <span class="required">Required</span>
40
                                <span class="required">[% t('Required') %]</span>
40
                            </li>
41
                            </li>
41
42
42
                            <li>
43
                            <li>
43
                                <label for="description" class="required">Description: </label>
44
                                <label for="description" class="required">[% t('Description:') %] </label>
44
                                <input type="text" id="description" name="description" size="40" maxlength="80" class="required" required="required" value="[% category.description |html%]" />
45
                                <input type="text" id="description" name="description" size="40" maxlength="80" class="required" required="required" value="[% category.description |html%]" />
45
                                <span class="required">Required</span>
46
                                <span class="required">[% t('Required') %]</span>
46
                            </li>
47
                            </li>
47
48
48
                            <li>
49
                            <li>
49
                                <label for="overduenoticerequired">Overdue notice required: </label>
50
                                <label for="overduenoticerequired">[% t('Overdue notice required:') %] </label>
50
                                <select name="overduenoticerequired" id="overduenoticerequired">
51
                                <select name="overduenoticerequired" id="overduenoticerequired">
51
                                    [% IF category.overduenoticerequired %]
52
                                    [% IF category.overduenoticerequired %]
52
                                        <option value="0">No</option>
53
                                        <option value="0">[% t('No') %]</option>
53
                                        <option value="1" selected="selected">Yes</option>
54
                                        <option value="1" selected="selected">[% t('Yes') %]</option>
54
                                    [% ELSE %]
55
                                    [% ELSE %]
55
                                        <option value="0" selected="selected">No</option>
56
                                        <option value="0" selected="selected">[% t('No') %]</option>
56
                                        <option value="1">Yes</option>
57
                                        <option value="1">[% t('Yes') %]</option>
57
                                    [% END %]
58
                                    [% END %]
58
                                </select>
59
                                </select>
59
                            </li>
60
                            </li>
60
61
61
                            <li>
62
                            <li>
62
                                <span class="label">Category type: </span>
63
                                <span class="label">[% t('Category type:') %] </span>
63
                                <input type="hidden" name="category_type" value="S" />
64
                                <input type="hidden" name="category_type" value="S" />
64
                                Staff
65
                                [% t('Staff') %]
65
                            </li>
66
                            </li>
66
67
67
                            <li>
68
                            <li>
68
                                <label for="default_privacy">Default privacy: </label>
69
                                <label for="default_privacy">[% t('Default privacy:') %] </label>
69
                                <select id="default_privacy" name="default_privacy" required="required">
70
                                <select id="default_privacy" name="default_privacy" required="required">
70
                                    [% SET default_privacy = 'default' %]
71
                                    [% SET default_privacy = 'default' %]
71
72
Lines 75-106 Link Here
75
76
76
                                    [% SWITCH default_privacy %]
77
                                    [% SWITCH default_privacy %]
77
                                        [% CASE 'forever' %]
78
                                        [% CASE 'forever' %]
78
                                            <option value="default">Default</option>
79
                                            <option value="default">[% t('Default') %]</option>
79
                                            <option value="never">Never</option>
80
                                            <option value="never">[% t('Never') %]</option>
80
                                            <option value="forever" selected="selected">Forever</option>
81
                                            <option value="forever" selected="selected">[% t('Forever') %]</option>
81
                                        [% CASE 'never' %]
82
                                        [% CASE 'never' %]
82
                                            <option value="default">Default</option>
83
                                            <option value="default">[% t('Default') %]</option>
83
                                            <option value="never" selected="selected">Never</option>
84
                                            <option value="never" selected="selected">[% t('Never') %]</option>
84
                                            <option value="forever">Forever</option>
85
                                            <option value="forever">[% t('Forever') %]</option>
85
                                        [% CASE %]
86
                                        [% CASE %]
86
                                            <option value="default" selected="selected">Default</option>
87
                                            <option value="default" selected="selected">[% t('Default') %]</option>
87
                                            <option value="never">Never</option>
88
                                            <option value="never">[% t('Never') %]</option>
88
                                            <option value="forever">Forever</option>
89
                                            <option value="forever">[% t('Forever') %]</option>
89
                                    [% END %]
90
                                    [% END %]
90
                                </select>
91
                                </select>
91
                                <div class="hint">
92
                                <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
                                    [% t('Controls how long a patrons checkout history is kept for new patrons of this category. &#34;Never&#34; anonymizes checkouts on return, and &#34;Forever&#34; keeps a patron\'s checkout history indefinitely. When set to &#34;Default&#34;, the amount of history kept is controlled by the cronjob') %] <code>[% t('batch_anonymise.pl') %]</code> [% t('which should be set up by your system administrator.') %]
93
                                </div>
94
                                </div>
94
                            </li>
95
                            </li>
95
                            <li>
96
                            <li>
96
                                <span class="label">Enrolment period: </span>
97
                                <span class="label">[% t('Enrolment period:') %] </span>
97
                                <fieldset class="rows">
98
                                <fieldset class="rows">
98
                                    <ol>
99
                                    <ol>
99
                                        <li>
100
                                        <li>
100
                                            <span class="label"></span><strong>Choose one</strong>
101
                                            <span class="label"></span><strong>[% t('Choose one') %]</strong>
101
                                        </li>
102
                                        </li>
102
                                        <li>
103
                                        <li>
103
                                            <label for="enrolmentperiod">In months: </label>
104
                                            <label for="enrolmentperiod">[% t('In months:') %] </label>
104
                                            [% IF category.enrolmentperiod %]
105
                                            [% IF category.enrolmentperiod %]
105
                                                <input type="number" class="enrolmentperiod" name="enrolmentperiod" id="enrolmentperiod" min="0" size="3" value="[% category.enrolmentperiod %]" />
106
                                                <input type="number" class="enrolmentperiod" name="enrolmentperiod" id="enrolmentperiod" min="0" size="3" value="[% category.enrolmentperiod %]" />
106
                                            [% ELSE %]
107
                                            [% ELSE %]
Lines 108-114 Link Here
108
                                            [% END %]
109
                                            [% END %]
109
                                        </li>
110
                                        </li>
110
                                        <li>
111
                                        <li>
111
                                            <label for="enrolmentperioddate">Until date: </label>
112
                                            <label for="enrolmentperioddate">[% t('Until date:') %] </label>
112
                                            <input type="text" class="enrolmentperioddate datepicker" name="enrolmentperioddate" id="enrolmentperioddate" value="[% category.enrolmentperioddate | $KohaDates %]" />
113
                                            <input type="text" class="enrolmentperioddate datepicker" name="enrolmentperioddate" id="enrolmentperioddate" value="[% category.enrolmentperioddate | $KohaDates %]" />
113
                                             <div class="hint">[% INCLUDE 'date-format.inc' dateformat = Koha.Preference('dateformat') %]</div>
114
                                             <div class="hint">[% INCLUDE 'date-format.inc' dateformat = Koha.Preference('dateformat') %]</div>
114
                                        </li>
115
                                        </li>
Lines 118-125 Link Here
118
                        </ol>
119
                        </ol>
119
120
120
                        <p>
121
                        <p>
121
                            To add another patron category and for more settings go to:
122
                            [% t('To add another patron category and for more settings go to:') %]
122
                            <span class="breadcrumbs"> Administration <b>&rsaquo;</b> Patron categories</span>
123
                            <span class="breadcrumbs"> [% t('Administration') %] <b>›</b> [% t('Patron categories') %]</span>
123
                        </p>
124
                        </p>
124
125
125
                        <input type="submit" class="btn btn-primary" value="Submit" />
126
                        <input type="submit" class="btn btn-primary" value="Submit" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep3.tt (-32 / +33 lines)
Lines 1-6 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% USE Koha %]
2
[% USE Koha %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Web installer &rsaquo; Create Koha administrator patron</title>
4
<title>[% t('Koha › Web installer › Create Koha administrator patron') %]</title>
4
[% INCLUDE 'installer-doc-head-close.inc' %]
5
[% INCLUDE 'installer-doc-head-close.inc' %]
5
[% INCLUDE 'validator-strings.inc' %]
6
[% INCLUDE 'validator-strings.inc' %]
6
[% INCLUDE 'installer-strings.inc' %]
7
[% INCLUDE 'installer-strings.inc' %]
Lines 11-109 Link Here
11
    <div class="container-fluid">
12
    <div class="container-fluid">
12
        <div class="row">
13
        <div class="row">
13
            <div id="onboarding-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
14
            <div id="onboarding-step3" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
14
                <h1 id="logo"><a href="#">Koha</a></h1>
15
                <h1 id="logo"><a href="#">[% t('Koha') %]</a></h1>
15
                <h2>Web installer &rsaquo; Create Koha administrator patron</h2>
16
                <h2>[% t('Web installer › Create Koha administrator patron') %]</h2>
16
17
17
                [% INCLUDE 'onboarding_messages.inc' %]
18
                [% INCLUDE 'onboarding_messages.inc' %]
18
19
19
                <p>
20
                <p>
20
                Now we will create a patron with superlibrarian permissions. Log in with this to access Koha as a staff member with all permissions.
21
                [% t('Now we will create a patron with superlibrarian permissions. Log in with this to access Koha as a staff member with all permissions.') %]
21
                </p>
22
                </p>
22
                <form name="createpatron" id="createpatron" method="post" action="onboarding.pl">
23
                <form name="createpatron" id="createpatron" method="post" action="onboarding.pl">
23
                    <fieldset class="rows">
24
                    <fieldset class="rows">
24
                        <input type="hidden" name="step" value="3" />
25
                        <input type="hidden" name="step" value="3" />
25
                        <input type="hidden" name="op" value="add_validate_patron" />
26
                        <input type="hidden" name="op" value="add_validate_patron" />
26
                        <h3>Administrator identity</h3>
27
                        <h3>[% t('Administrator identity') %]</h3>
27
                        <ol>
28
                        <ol>
28
                            <li>
29
                            <li>
29
                                <label for="surname" class="required">Surname: </label>
30
                                <label for="surname" class="required">[% t('Surname:') %] </label>
30
                                <input type="text" id="surname" name="surname" value="[% surname |html %]" class="required" required="required" />
31
                                <input type="text" id="surname" name="surname" value="[% surname |html %]" class="required" required="required" />
31
                                <span class="required">Required</span>
32
                                <span class="required">[% t('Required') %]</span>
32
                            </li>
33
                            </li>
33
                            <li>
34
                            <li>
34
                                <label for="firstname" class="required">First name: </label>
35
                                <label for="firstname" class="required">[% t('First name:') %] </label>
35
                                <input  type="text" name="firstname" id="firstname" size="20" value="[% firstname |html %]" class="required" required="required">
36
                                <input type="text" name="firstname" id="firstname" size="20" value="[% firstname |html %]" class="required" required="required">
36
                                <span class="required">Required</span>
37
                                <span class="required">[% t('Required') %]</span>
37
                            </li>
38
                            </li>
38
                        </ol>
39
                        </ol>
39
40
40
                        <ol>
41
                        <ol>
41
                            <li>
42
                            <li>
42
                                <label for="cardnumber" class="required">Card number: </label>
43
                                <label for="cardnumber" class="required">[% t('Card number:') %] </label>
43
                                [% IF patrons && patrons > 1 %]
44
                                [% IF patrons && patrons > 1 %]
44
                                    <input type="text" id="cardnumber" class="noEnterSubmit valid" name="cardnumber" value="[% newcardnumber | html %]" class="required" required="required">
45
                                    <input type="text" id="cardnumber" class="noEnterSubmit valid" name="cardnumber" value="[% newcardnumber | html %]" class="required" required="required">
45
                                [% ELSE %]
46
                                [% ELSE %]
46
                                    <input type="text" id="cardnumber" name="cardnumber" value="[% cardnumber | html %]" class="required" required="required">
47
                                    <input type="text" id="cardnumber" name="cardnumber" value="[% cardnumber | html %]" class="required" required="required">
47
                                [% END %]
48
                                [% END %]
48
                                <span class="required">Required</span>
49
                                <span class="required">[% t('Required') %]</span>
49
                            </li>
50
                            </li>
50
                            <li>
51
                            <li>
51
52
52
                                <!--require a foreach loop to get all the values for the library that the user has either imported (in web installer) or created in the first step of this onboarding tool-->
53
                                <!--require a foreach loop to get all the values for the library that the user has either imported (in web installer) or created in the first step of this onboarding tool-->
53
                                <label for="libraries" class="required"> Library: </label>
54
                                <label for="libraries" class="required"> [% t('Library:') %] </label>
54
                                <select name="libraries" size="1" id="libraries">
55
                                <select name="libraries" size="1" id="libraries">
55
                                    [% FOREACH library IN libraries %]
56
                                    [% FOREACH library IN libraries %]
56
                                        <option value="[% library.branchcode %]"> [% library.branchname %] </option>
57
                                        <option value="[% library.branchcode %]"> [% library.branchname %] </option>
57
                                    [% END %]
58
                                    [% END %]
58
                                </select>
59
                                </select>
59
                                <span class="required"> Required</span>
60
                                <span class="required"> [% t('Required') %]</span>
60
                            </li>
61
                            </li>
61
                            <li>
62
                            <li>
62
                                <label for="categorycode_entry" class="required"> Patron category</label>
63
                                <label for="categorycode_entry" class="required"> [% t('Patron category') %]</label>
63
                                <select id="categorycode_entry" name="categorycode_entry">
64
                                <select id="categorycode_entry" name="categorycode_entry">
64
                                    [% FOREACH category IN categories %]
65
                                    [% FOREACH category IN categories %]
65
                                        <option value = "[% category.categorycode %]">[%category.description %]</option>
66
                                        <option value="[% category.categorycode %]">[%category.description %]</option>
66
                                    [% END %]
67
                                    [% END %]
67
                                </select>
68
                                </select>
68
                                <span class="required">Required</span><br><br>
69
                                <span class="required">[% t('Required') %]</span><br><br>
69
                                <b>Note:</b> If you installed sample patron categories please select the "Staff" option in the patron categories dropdown box.
70
                                <b>[% t('Note:') %]</b> [% t('If you installed sample patron categories please select the &#34;Staff&#34; option in the patron categories dropdown box.') %]
70
                            </li>
71
                            </li>
71
                        </ol>
72
                        </ol>
72
73
73
                            <h3>Administrator account permissions</h3>
74
                            <h3>[% t('Administrator account permissions') %]</h3>
74
                        <ol>
75
                        <ol>
75
                            <li>
76
                            <li>
76
                                <input type="hidden" name="newflags" value="1" />
77
                                <input type="hidden" name="newflags" value="1" />
77
                                <input type="hidden" class="flag parent" id="flag-0" name="flag" value="superlibrarian" />
78
                                <input type="hidden" class="flag parent" id="flag-0" name="flag" value="superlibrarian" />
78
                                <code> superlibrarian</code>
79
                                <code> [% t('superlibrarian') %]</code>
79
                            </li>
80
                            </li>
80
                        </ol>
81
                        </ol>
81
82
82
                            <h3>Administrator login</h3>
83
                            <h3>[% t('Administrator login') %]</h3>
83
                        <ol>
84
                        <ol>
84
                            <li>
85
                            <li>
85
                                <label for="userid" class="required">Username: </label>
86
                                <label for="userid" class="required">[% t('Username:') %] </label>
86
                                <input type="text" name="userid" id ="userid" size="20" value="[% userid |html %]" class="required" required="required" />
87
                                <input type="text" name="userid" id="userid" size="20" value="[% userid |html %]" class="required" required="required" />
87
                                <span class="required">Required</span>
88
                                <span class="required">[% t('Required') %]</span>
88
                            </li>
89
                            </li>
89
                            <li>
90
                            <li>
90
                                <label for="password" class="required">Password: </label>
91
                                <label for="password" class="required">[% t('Password:') %] </label>
91
                                <input type="password" name="password" id="password" size="20" value="[% member.password |html %]" class="required" required="required">
92
                                <input type="password" name="password" id="password" size="20" value="[% member.password |html %]" class="required" required="required">
92
                                <span class="required">Required</span>
93
                                <span class="required">[% t('Required') %]</span>
93
                            </li>
94
                            </li>
94
                            <li>
95
                            <li>
95
                                <label for="password2" class="required">Confirm password: </label>
96
                                <label for="password2" class="required">[% t('Confirm password:') %] </label>
96
                                <input type="password" id="password2" name="password2" size="20" value="" class="required" required="required">
97
                                <input type="password" id="password2" name="password2" size="20" value="" class="required" required="required">
97
                                <span class="required">Required</span>
98
                                <span class="required">[% t('Required') %]</span>
98
                            </li>
99
                            </li>
99
                        </ol>
100
                        </ol>
100
                        <p>
101
                        <p>
101
                            To create another patron, go to:
102
                            [% t('To create another patron, go to:') %]
102
                            <span class="breadcrumbs">Patrons &rsaquo; New patron</span>
103
                            <span class="breadcrumbs">[% t('Patrons › New patron') %]</span>
103
                        </p>
104
                        </p>
104
                        <p>
105
                        <p>
105
                            To edit patron permissions, go to:
106
                            [% t('To edit patron permissions, go to:') %]
106
                            <span class="breadcrumbs">More &rsaquo; Set permissions</span>
107
                            <span class="breadcrumbs">[% t('More › Set permissions') %]</span>
107
                        </p>
108
                        </p>
108
                    </fieldset>
109
                    </fieldset>
109
110
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep4.tt (-13 / +14 lines)
Lines 1-5 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Web installer &rsaquo; Create a new item type </title>
3
<title>[% t('Koha › Web installer › Create a new item type') %] </title>
3
[% INCLUDE 'installer-doc-head-close.inc' %]
4
[% INCLUDE 'installer-doc-head-close.inc' %]
4
[% INCLUDE 'validator-strings.inc' %]
5
[% INCLUDE 'validator-strings.inc' %]
5
[% INCLUDE 'installer-strings.inc' %]
6
[% INCLUDE 'installer-strings.inc' %]
Lines 10-25 Link Here
10
    <div class="container-fluid">
11
    <div class="container-fluid">
11
        <div class="row">
12
        <div class="row">
12
            <div id="onboarding-step4" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
13
            <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>
14
                <h1 id="logo"><a href="#">[% t('Koha') %]</a></h1>
14
                <h2>Web installer &rsaquo; Create a new item type </h2>
15
                <h2>[% t('Web installer › Create a new item type') %] </h2>
15
16
16
                [% INCLUDE 'onboarding_messages.inc' %]
17
                [% INCLUDE 'onboarding_messages.inc' %]
17
18
18
                <!--Create a item type screen 1-->
19
                <!--Create a item type screen 1-->
19
20
20
                    <p> Item types are used to group related items. Examples of item types might be books, CDs, or DVDs.</p>
21
                    <p> [% t('Item types are used to group related items. Examples of item types might be books, CDs, or DVDs.') %]</p>
21
                    <p> When adding to your institution's catalog you will create an item of a particular item type.</p>
22
                    <p> [% t('When adding to your institution\'s catalog you will create an item of a particular item type.') %]</p>
22
                    <p> Importantl: 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
                    <p> [% t('Importantl: 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
24
                    <form id="createitemform" method="post" action="onboarding.pl">
25
                    <form id="createitemform" method="post" action="onboarding.pl">
25
                    <fieldset class="rows">
26
                    <fieldset class="rows">
Lines 27-46 Link Here
27
                        <input type="hidden" name="op" value="add_validate_itemtype" />
28
                        <input type="hidden" name="op" value="add_validate_itemtype" />
28
                        <ol>
29
                        <ol>
29
                            <li>
30
                            <li>
30
                                <label for="itemtype" class="required">Item type code: </label>
31
                                <label for="itemtype" class="required">[% t('Item type code:') %] </label>
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 %]" />
32
                                <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 %]" />
32
                                <span class="required">Required</span>
33
                                <span class="required">[% t('Required') %]</span>
33
                            </li>
34
                            </li>
34
35
35
                            <li>
36
                            <li>
36
                                <label for="description" class="required">Description: </label>
37
                                <label for="description" class="required">[% t('Description:') %] </label>
37
                                <input type="text" name="description" id="description" size="42" value="[% itemtype.description |html %]" class="required" required="required">
38
                                <input type="text" name="description" id="description" size="42" value="[% itemtype.description |html %]" class="required" required="required">
38
                                <span class="required">Required</span>
39
                                <span class="required">[% t('Required') %]</span>
39
                            </li>
40
                            </li>
40
                        </ol>
41
                        </ol>
41
42
42
                        <p> To create another item type later and for more settings go to:
43
                        <p> [% t('To create another item type later and for more settings go to:') %]
43
                            <span class="breadcrumbs"> Administration &rsaquo; Item types </span>
44
                            <span class="breadcrumbs"> [% t('Administration › Item types') %] </span>
44
                        </p>
45
                        </p>
45
                        <input type="submit" class="btn btn-primary" value="Submit" />
46
                        <input type="submit" class="btn btn-primary" value="Submit" />
46
                    </fieldset>
47
                    </fieldset>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt (-45 / +45 lines)
Lines 1-9 Link Here
1
[% PROCESS 'i18n.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Web installer &rsaquo;
3
<title>[% t('Koha › Web installer ›') %]
3
    [% IF all_done %]
4
    [% IF all_done %]
4
        Complete
5
        [% t('Complete') %]
5
    [% ELSE %]
6
    [% ELSE %]
6
        Create circulation rule
7
        [% t('Create circulation rule') %]
7
    [% END %]
8
    [% END %]
8
</title>
9
</title>
9
[% INCLUDE 'installer-doc-head-close.inc' %]
10
[% INCLUDE 'installer-doc-head-close.inc' %]
Lines 16-90 Link Here
16
    <div class="container-fluid">
17
    <div class="container-fluid">
17
        <div class="row">
18
        <div class="row">
18
            <div id="onboarding-step5" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
19
            <div id="onboarding-step5" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
19
                <h1 id="logo"><a href="#">Koha</a></h1>
20
                <h1 id="logo"><a href="#">[% t('Koha') %]</a></h1>
20
21
21
                [% IF all_done %]
22
                [% IF all_done %]
22
23
23
                    <h2>Web installer &rsaquo; Complete</h2>
24
                    <h2>[% t('Web installer › Complete') %]</h2>
24
                    [% INCLUDE 'onboarding_messages.inc' %]
25
                    [% INCLUDE 'onboarding_messages.inc' %]
25
                    <h3>Congratulations you have finished and are ready to use Koha</h3>
26
                    <h3>[% t('Congratulations you have finished and are ready to use Koha') %]</h3>
26
                    <a class="btn btn-success" href="/cgi-bin/koha/mainpage.pl">Start using Koha</a>
27
                    <a class="btn btn-success" href="/cgi-bin/koha/mainpage.pl">[% t('Start using Koha') %]</a>
27
28
28
                [% ELSE %]
29
                [% ELSE %]
29
30
30
                    <h2>Web installer &rsaquo; Create a new circulation rule </h2>
31
                    <h2>[% t('Web installer › Create a new circulation rule') %] </h2>
31
32
32
                    [% INCLUDE 'onboarding_messages.inc' %]
33
                    [% INCLUDE 'onboarding_messages.inc' %]
33
34
34
                    <form name="createcirculationrule" method="post" action="onboarding.pl">
35
                    <form name="createcirculationrule" method="post" action="onboarding.pl">
35
                        <fieldset class="rows">
36
                        <fieldset class="rows">
36
                            <input type="hidden" name="step" value="5"/>
37
                            <input type="hidden" name="step" value="5" />
37
                            <input type="hidden" name="op" value="add_validate_circ_rule" />
38
                            <input type="hidden" name="op" value="add_validate_circ_rule" />
38
                            <ol>
39
                            <ol>
39
                                <li>
40
                                <li>
40
                                    <label for="branchname" class="required"> Library branch</label>
41
                                    <label for="branchname" class="required"> [% t('Library branch') %]</label>
41
                                    <select name="branch" id="branchname" required="required">
42
                                    <select name="branch" id="branchname" required="required">
42
                                        <option value=""> Choose</option>
43
                                        <option value=""> [% t('Choose') %]</option>
43
                                        <option value="*" selected="selected">All</option>
44
                                        <option value="*" selected="selected">[% t('All') %]</option>
44
                                        [% FOREACH library IN libraries %]
45
                                        [% FOREACH library IN libraries %]
45
                                            <option value="[% library.branchcode %]"> [% library.branchname %]</option>
46
                                            <option value="[% library.branchcode %]"> [% library.branchname %]</option>
46
                                        [% END %]
47
                                        [% END %]
47
                                    </select>
48
                                    </select>
48
                                    <span class="required">Required</span>
49
                                    <span class="required">[% t('Required') %]</span>
49
                                </li>
50
                                </li>
50
                                <li>
51
                                <li>
51
                                    <label for="categorycode" class="required">Patron category: </label>
52
                                    <label for="categorycode" class="required">[% t('Patron category:') %] </label>
52
                                    <select name="categorycode" id="categorycode" required="required">
53
                                    <select name="categorycode" id="categorycode" required="required">
53
                                        <option value=""> Choose</option>
54
                                        <option value=""> [% t('Choose') %]</option>
54
                                        <option value="*" selected="selected">All</option>
55
                                        <option value="*" selected="selected">[% t('All') %]</option>
55
                                        [% FOREACH category IN categories %]
56
                                        [% FOREACH category IN categories %]
56
                                            <option value = "[% category.categorycode %]"> [%category.description %]</option>
57
                                            <option value="[% category.categorycode %]"> [%category.description %]</option>
57
                                        [%END%]
58
                                        [%END%]
58
                                    </select>
59
                                    </select>
59
                                    <span class="required">Required</span>
60
                                    <span class="required">[% t('Required') %]</span>
60
                                </li>
61
                                </li>
61
62
62
                                <li>
63
                                <li>
63
                                    <label for="itemtype"> Item type: </label>
64
                                    <label for="itemtype"> [% t('Item type:') %] </label>
64
                                    <select id="itemtype" name="itemtype" required="required">
65
                                    <select id="itemtype" name="itemtype" required="required">
65
                                        <option value=""> Choose </option>
66
                                        <option value=""> [% t('Choose') %] </option>
66
                                        <option value="*" selected="selected">All</option>
67
                                        <option value="*" selected="selected">[% t('All') %]</option>
67
                                        [% FOREACH item IN itemtypes %]
68
                                        [% FOREACH item IN itemtypes %]
68
                                            <option value = "[% item.itemtype %]"> [% item.itemtype %]
69
                                            <option value="[% item.itemtype %]"> [% item.itemtype %]
69
                                        [%END%]
70
                                        [%END%]
70
                                    </select>
71
                                    </select>
71
                                    <span class="required"> Required</span>
72
                                    <span class="required"> [% t('Required') %]</span>
72
                                </li>
73
                                </li>
73
                                <li>
74
                                <li>
74
                                    <label for="maxissueqty" class="required">Current checkouts allowed: </label>
75
                                    <label for="maxissueqty" class="required">[% t('Current checkouts allowed:') %] </label>
75
                                    <input type="number" min="0" name="maxissueqty" id="maxissueqty" size="10" value="50" class="required" required="required" />
76
                                    <input type="number" min="0" name="maxissueqty" id="maxissueqty" size="10" value="50" class="required" required="required" />
76
                                    <span class="required">Required</span>
77
                                    <span class="required">[% t('Required') %]</span>
77
                                </li>
78
                                </li>
78
79
79
                                <li>
80
                                <li>
80
                                    <label for="issuelength" class="required">Loan period: </label>
81
                                    <label for="issuelength" class="required">[% t('Loan period:') %] </label>
81
                                    <input type="number" min="0" name="issuelength" id="issuelength" size="10" value="14" class="required" required="required" />
82
                                    <input type="number" min="0" name="issuelength" id="issuelength" size="10" value="14" class="required" required="required" />
82
                                    <span class="required">Required</span>
83
                                    <span class="required">[% t('Required') %]</span>
83
                                </li>
84
                                </li>
84
                                <li>
85
                                <li>
85
                                    <label for="lengthunit">Units: </label>
86
                                    <label for="lengthunit">[% t('Units:') %] </label>
86
                                    <select name="lengthunit" id="lengthunit" required="required">
87
                                    <select name="lengthunit" id="lengthunit" required="required">
87
                                        <option value=""> Choose </option>
88
                                        <option value=""> [% t('Choose') %] </option>
88
                                        [% SET units = 'days' %]
89
                                        [% SET units = 'days' %]
89
                                        [% IF category %]
90
                                        [% IF category %]
90
                                            [% SET default_privacy = category.default_privacy %]
91
                                            [% SET default_privacy = category.default_privacy %]
Lines 92-130 Link Here
92
93
93
                                        [% SWITCH units %]
94
                                        [% SWITCH units %]
94
                                        [% CASE 'days' %]
95
                                        [% CASE 'days' %]
95
                                            <option value="days" selected="selected">Days</option>
96
                                            <option value="days" selected="selected">[% t('Days') %]</option>
96
                                            <option value="hours">Hours</option>
97
                                            <option value="hours">[% t('Hours') %]</option>
97
                                        [% CASE 'hours' %]
98
                                        [% CASE 'hours' %]
98
                                            <option value="days">Days</option>
99
                                            <option value="days">[% t('Days') %]</option>
99
                                            <option value="hours" selected="selected">Hours</option>
100
                                            <option value="hours" selected="selected">[% t('Hours') %]</option>
100
                                        [% END %]
101
                                        [% END %]
101
                                    </select>
102
                                    </select>
102
                                </li>
103
                                </li>
103
                                <li>
104
                                <li>
104
                                    <label for="renewalsallowed" class="required">Renewals allowed: </label>
105
                                    <label for="renewalsallowed" class="required">[% t('Renewals allowed:') %] </label>
105
                                    <input type="number" min="0" name="renewalsallowed" id="renewalsallowed" size="10" max="10" value="10" class="required" required="required" />
106
                                    <input type="number" min="0" name="renewalsallowed" id="renewalsallowed" size="10" max="10" value="10" class="required" required="required" />
106
                                    <span class="required">Required</span>
107
                                    <span class="required">[% t('Required') %]</span>
107
                                </li>
108
                                </li>
108
109
109
                                <li>
110
                                <li>
110
                                    <label for="renewalperiod" class="required">Renewals period: </label>
111
                                    <label for="renewalperiod" class="required">[% t('Renewals period:') %] </label>
111
                                    <input type="number" min="0" name="renewalperiod" id="renewalperiod" size="10" value="14" class="required" required="required" />
112
                                    <input type="number" min="0" name="renewalperiod" id="renewalperiod" size="10" value="14" class="required" required="required" />
112
                                    <span class="required">Required</span>
113
                                    <span class="required">[% t('Required') %]</span>
113
                                </li>
114
                                </li>
114
115
115
                                <li>
116
                                <li>
116
                                    <label for="onshelfholds">On shelf holds allowed: </label>
117
                                    <label for="onshelfholds">[% t('On shelf holds allowed:') %] </label>
117
                                    <select name="onshelfholds" id="onshelfholds" required="required">
118
                                    <select name="onshelfholds" id="onshelfholds" required="required">
118
                                        <option value="">Choose</option>
119
                                        <option value="">[% t('Choose') %]</option>
119
                                        <option value="1" selected="selected">Yes</option>
120
                                        <option value="1" selected="selected">[% t('Yes') %]</option>
120
                                        <option value="0">If any unavailable</option>
121
                                        <option value="0">[% t('If any unavailable') %]</option>
121
                                        <option value="2">If all unavailable</option>
122
                                        <option value="2">[% t('If all unavailable') %]</option>
122
                                    </select>
123
                                    </select>
123
                                </li>
124
                                </li>
124
                            </ol>
125
                            </ol>
125
                            <p>
126
                            <p>
126
                                To create circulation rule, go to:
127
                                [% t('To create circulation rule, go to:') %]
127
                                <span class="breadcrumbs">Administration &rsaquo; Circulation and fine rules </span>
128
                                <span class="breadcrumbs">[% t('Administration › Circulation and fine rules') %] </span>
128
                            </p>
129
                            </p>
129
130
130
                        </fieldset>
131
                        </fieldset>
131
- 

Return to bug 20988