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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep8.tt (-1 / +140 lines)
Line 0 Link Here
0
- 
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Web installer &rsaquo;
3
    [% IF all_done %]
4
        Complete
5
    [% ELSE %]
6
        Create circulation rule
7
    [% END %]
8
</title>
9
[% INCLUDE 'installer-doc-head-close.inc' %]
10
</head>
11
12
<body id="installer" class="installer">
13
    <div class="container-fluid">
14
        <div class="row">
15
            <div id="onboarding-step7" class="installer-main col-sm-8 col-sm-offset-2 col-md-8 col-md-offset-2">
16
                <h1 id="logo"><a href="#">Koha</a></h1>
17
18
                [% IF all_done %]
19
                    <h2>Web installer &rsaquo; Complete</h2>
20
                    [% INCLUDE 'onboarding_messages.inc' %]
21
                    <h3>Congratulations, you have finished and are ready to use Koha</h3>
22
                    <a class="btn btn-success" href="/cgi-bin/koha/mainpage.pl">Start using Koha</a>
23
                [% ELSE %]
24
25
                    <h2>Web installer &rsaquo; Create a new circulation rule </h2>
26
27
                    [% INCLUDE 'onboarding_messages.inc' %]
28
29
                    <form name="createcirculationrule" method="post" action="onboarding.pl">
30
                        <fieldset class="rows">
31
                            <input type="hidden" name="step" value="7"/>
32
                            <input type="hidden" name="op" value="add_validate_circ_rule" />
33
                            <ol>
34
                                <li>
35
                                    <label for="branchname" class="required"> Library branch</label>
36
                                    <select name="branch" id="branchname" required="required">
37
                                        <option value=""> Choose</option>
38
                                        <option value="*" selected="selected">All</option>
39
                                        [% FOREACH library IN libraries %]
40
                                            <option value="[% library.branchcode | html %]"> [% library.branchname | html %]</option>
41
                                        [% END %]
42
                                    </select>
43
                                    <span class="required">Required</span>
44
                                </li>
45
                                <li>
46
                                    <label for="categorycode" class="required">Patron category: </label>
47
                                    <select name="categorycode" id="categorycode" required="required">
48
                                        <option value=""> Choose</option>
49
                                        <option value="*" selected="selected">All</option>
50
                                        [% FOREACH category IN categories %]
51
                                            <option value = "[% category.categorycode | html %]"> [% category.description | html %]</option>
52
                                        [%END%]
53
                                    </select>
54
                                    <span class="required">Required</span>
55
                                </li>
56
57
                                <li>
58
                                    <label for="itemtype"> Item type: </label>
59
                                    <select id="itemtype" name="itemtype" required="required">
60
                                        <option value=""> Choose </option>
61
                                        <option value="*" selected="selected">All</option>
62
                                        [% FOREACH item IN itemtypes %]
63
                                            <option value = "[% item.itemtype | html %]"> [% item.itemtype | html %]
64
                                        [%END%]
65
                                    </select>
66
                                    <span class="required"> Required</span>
67
                                </li>
68
                                <li>
69
                                    <label for="maxissueqty" class="required">Current checkouts allowed: </label>
70
                                    <input type="number" min="0" name="maxissueqty" id="maxissueqty" size="10" value="50" class="required" required="required" />
71
                                    <span class="required">Required</span>
72
                                </li>
73
74
                                <li>
75
                                    <label for="issuelength" class="required">Loan period: </label>
76
                                    <input type="number" min="0" name="issuelength" id="issuelength" size="10" value="14" class="required" required="required" />
77
                                    <span class="required">Required</span>
78
                                </li>
79
                                <li>
80
                                    <label for="lengthunit">Units: </label>
81
                                    <select name="lengthunit" id="lengthunit" required="required">
82
                                        <option value=""> Choose </option>
83
                                        [% SET units = 'days' %]
84
                                        [% IF category %]
85
                                            [% SET default_privacy = category.default_privacy %]
86
                                        [% END %]
87
88
                                        [% SWITCH units %]
89
                                        [% CASE 'days' %]
90
                                            <option value="days" selected="selected">Days</option>
91
                                            <option value="hours">Hours</option>
92
                                        [% CASE 'hours' %]
93
                                            <option value="days">Days</option>
94
                                            <option value="hours" selected="selected">Hours</option>
95
                                        [% END %]
96
                                    </select>
97
                                </li>
98
                                <li>
99
                                    <label for="renewalsallowed" class="required">Renewals allowed: </label>
100
                                    <input type="number" min="0" name="renewalsallowed" id="renewalsallowed" size="10" max="10" value="10" class="required" required="required" />
101
                                    <span class="required">Required</span>
102
                                </li>
103
104
                                <li>
105
                                    <label for="renewalperiod" class="required">Renewals period: </label>
106
                                    <input type="number" min="0" name="renewalperiod" id="renewalperiod" size="10" value="14" class="required" required="required" />
107
                                    <span class="required">Required</span>
108
                                </li>
109
110
                                <li>
111
                                    <label for="onshelfholds">On shelf holds allowed: </label>
112
                                    <select name="onshelfholds" id="onshelfholds" required="required">
113
                                        <option value="">Choose</option>
114
                                        <option value="1" selected="selected">Yes</option>
115
                                        <option value="0">If any unavailable</option>
116
                                        <option value="2">If all unavailable</option>
117
                                    </select>
118
                                </li>
119
                            </ol>
120
                            <p>
121
                                To create another circulation rule, go to:
122
                                <span class="breadcrumbs">Administration &rsaquo; Circulation and fine rules </span>
123
                            </p>
124
125
                        </fieldset>
126
127
                        <input type="submit" class="btn btn-primary" value="Submit" />
128
                    </form>
129
                [% END %]
130
            </div> <!-- / #onboarding-step7 -->
131
        </div> <!-- / .row -->
132
    </div><!-- / .container-fluid -->
133
134
[% MACRO jsinclude BLOCK %]
135
    [% INCLUDE 'validator-strings.inc' %]
136
    [% INCLUDE 'installer-strings.inc' %]
137
    <script src="[% interface | html %]/[% theme | html %]/js/onboarding.js"></script>
138
[% END %]
139
140
[% INCLUDE 'installer-intranet-bottom.inc' %]

Return to bug 18308