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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt (-17 / +36 lines)
Lines 103-129 Link Here
103
        <form action="/cgi-bin/koha/admin/cash_registers.pl" id="Aform" name="Aform" class="validated" method="post">
103
        <form action="/cgi-bin/koha/admin/cash_registers.pl" id="Aform" name="Aform" class="validated" method="post">
104
            [% INCLUDE 'csrf-token.inc' %]
104
            [% INCLUDE 'csrf-token.inc' %]
105
105
106
            <fieldset class="rows">
106
            <fieldset class="fg">
107
                <input type="hidden" name="op" value="cud-add_validate" />
107
                <input type="hidden" name="op" value="cud-add_validate" />
108
                <ol>
108
                [% IF cash_register %]
109
                    [% IF cash_register %]
109
                    <div class="fg-row">
110
                        <li>
110
                        <div class="fg-label">
111
                            <span class="label">Cash register ID: </span>[% cash_register.id | html %]
111
                            <span class="label">Cash register ID: </span>
112
                        </div>
113
                        <div class="fg-text">
114
                            [% cash_register.id | html %]
112
                            <input type="hidden" name="id" value="[% cash_register.id | html %]" />
115
                            <input type="hidden" name="id" value="[% cash_register.id | html %]" />
113
                        </li>
116
                        </div>
114
                    [% END %]
117
                    </div>
115
                    <li>
118
                [% END %]
119
                <div class="fg-row">
120
                    <div class="fg-label">
116
                        <label for="name" class="required">Name: </label>
121
                        <label for="name" class="required">Name: </label>
122
                    </div>
123
                    <div class="fg-input">
117
                        <input type="text" name="name" id="name" size="24" maxlength="24" value="[% cash_register.name | html %]" class="required focus" />
124
                        <input type="text" name="name" id="name" size="24" maxlength="24" value="[% cash_register.name | html %]" class="required focus" />
118
                        <span class="required">Required</span>
125
                        <div class="required">Required</div>
119
                    </li>
126
                    </div>
127
                </div>
120
128
121
                    <li>
129
                <div class="fg-row">
130
                    <div class="fg-label">
122
                        <label for="description">Description: </label>
131
                        <label for="description">Description: </label>
132
                    </div>
133
                    <div class="fg-input">
123
                        <input type="text" name="description" id="description" size="24" value="[% cash_register.description | html %]" />
134
                        <input type="text" name="description" id="description" size="24" value="[% cash_register.description | html %]" />
124
                    </li>
135
                    </div>
125
                    <li>
136
                </div>
137
                <div class="fg-row">
138
                    <div class="fg-label">
126
                        <label for="branch">Library: </label>
139
                        <label for="branch">Library: </label>
140
                    </div>
141
                    <div class="fg-input">
127
                        <select id="branch" name="branch">
142
                        <select id="branch" name="branch">
128
                            [% IF cash_register %]
143
                            [% IF cash_register %]
129
                                [% PROCESS options_for_libraries libraries => Branches.all( selected => cash_register.branch ) %]
144
                                [% PROCESS options_for_libraries libraries => Branches.all( selected => cash_register.branch ) %]
Lines 131-143 Link Here
131
                                [% PROCESS options_for_libraries libraries => Branches.all() %]
146
                                [% PROCESS options_for_libraries libraries => Branches.all() %]
132
                            [% END %]
147
                            [% END %]
133
                        </select>
148
                        </select>
134
                    </li>
149
                    </div>
150
                </div>
135
151
136
                    <li>
152
                <div class="fg-row input-sm">
153
                    <div class="fg-label">
137
                        <label for="starting_float">Initial float: </label>
154
                        <label for="starting_float">Initial float: </label>
155
                    </div>
156
                    <div class="fg-input">
138
                        <input type="text" pattern="^\d+(?:\.\d{0,2})$" name="starting_float" id="starting_float" size="24" value="[% cash_register.starting_float | $Price on_editing => 1 %]" />
157
                        <input type="text" pattern="^\d+(?:\.\d{0,2})$" name="starting_float" id="starting_float" size="24" value="[% cash_register.starting_float | $Price on_editing => 1 %]" />
139
                    </li>
158
                    </div>
140
                </ol>
159
                </div>
141
            </fieldset>
160
            </fieldset>
142
161
143
            <fieldset class="action">
162
            <fieldset class="action">
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/credit_types.tt (-26 / +52 lines)
Lines 85-111 Link Here
85
        <form action="/cgi-bin/koha/admin/credit_types.pl" name="Aform" method="post" class="validated">
85
        <form action="/cgi-bin/koha/admin/credit_types.pl" name="Aform" method="post" class="validated">
86
            [% INCLUDE 'csrf-token.inc' %]
86
            [% INCLUDE 'csrf-token.inc' %]
87
            <input type="hidden" name="op" value="cud-add_validate" />
87
            <input type="hidden" name="op" value="cud-add_validate" />
88
            <fieldset class="rows">
88
            <fieldset class="fg">
89
                <ol>
89
                <div class="fg-row">
90
                    <li>
90
                    <div class="fg-label">
91
                        <label for="code" class="required">Credit type code: </label>
91
                        <label for="code" class="required">Credit type code: </label>
92
                        [% IF credit_type %]
92
                    </div>
93
                    [% IF credit_type %]
94
                        <div class="fg-text">
93
                            <strong>[% credit_type.code | html %]</strong>
95
                            <strong>[% credit_type.code | html %]</strong>
94
                            <input type="hidden" name="code" value="[% code | html %]" />
96
                            <input type="hidden" name="code" value="[% code | html %]" />
95
                        [% ELSE %]
97
                        </div>
96
                            <input type="text" name="code" id="code" size="80" maxlength="64" class="required focus" required="required" /><span class="required">Required. Maximum length is 64 letters</span>
98
                    [% ELSE %]
97
                        [% END %]
99
                        <div class="fg-input">
98
                    </li>
100
                            <input type="text" name="code" id="code" size="80" maxlength="64" class="required focus" required="required" />
99
                    <li>
101
                        </div>
102
                        <div class="required">Required</div>
103
                        <div class="hint">Maximum length is 64 letters</div>
104
                    [% END %]
105
                </div>
106
                <div class="fg-row">
107
                    <div class="fg-label">
100
                        <label for="description" class="required">Description: </label>
108
                        <label for="description" class="required">Description: </label>
101
                        [% IF credit_type && credit_type.is_system %]
109
                    </div>
110
                    [% IF credit_type && credit_type.is_system %]
111
                        <div class="fg-text">
102
                            <span>[%- PROCESS credit_type_description credit_type = credit_type -%]</span>
112
                            <span>[%- PROCESS credit_type_description credit_type = credit_type -%]</span>
103
                        [% ELSE %]
113
                        </div>
114
                    [% ELSE %]
115
                        <div class="fg-input">
104
                            <input type="text" name="description" id="description" required="required" class="required" size="80" maxlength="100" value="[% credit_type.description | html %]" /> <span class="required">Required</span>
116
                            <input type="text" name="description" id="description" required="required" class="required" size="80" maxlength="100" value="[% credit_type.description | html %]" /> <span class="required">Required</span>
105
                        [% END %]
117
                        </div>
106
                    </li>
118
                    [% END %]
107
                    <li>
119
                </div>
108
                        <label for="can_be_added_manually">Can be manually added ? </label>
120
                <div class="fg-row input-checkbox">
121
                    <div class="fg-label">
122
                        <label for="can_be_added_manually">Can be manually added? </label>
123
                    </div>
124
                    <div class="fg-input">
109
                        [% IF credit_type && credit_type.is_system %]
125
                        [% IF credit_type && credit_type.is_system %]
110
                            [% IF credit_type.can_be_added_manually %]<span>Yes</span>[% ELSE %]<span>No</span>[% END %]
126
                            [% IF credit_type.can_be_added_manually %]<span>Yes</span>[% ELSE %]<span>No</span>[% END %]
111
                        [% ELSIF credit_type.can_be_added_manually %]
127
                        [% ELSIF credit_type.can_be_added_manually %]
Lines 113-133 Link Here
113
                        [% ELSE %]
129
                        [% ELSE %]
114
                            <input type="checkbox" name="can_be_added_manually" id="can_be_added_manually" value="1" />
130
                            <input type="checkbox" name="can_be_added_manually" id="can_be_added_manually" value="1" />
115
                        [% END %]
131
                        [% END %]
116
                    </li>
132
                    </div>
117
                    <li>
133
                </div>
134
                <div class="fg-row input-checkbox">
135
                    <div class="fg-label">
118
                        <label for="credit_number_enabled">Enable credit number</label>
136
                        <label for="credit_number_enabled">Enable credit number</label>
137
                    </div>
138
                    <div class="fg-input">
119
                        [% IF credit_type.credit_number_enabled %]
139
                        [% IF credit_type.credit_number_enabled %]
120
                            <input type="checkbox" name="credit_number_enabled" id="credit_number_enabled" checked="checked" value="1" />
140
                            <input type="checkbox" name="credit_number_enabled" id="credit_number_enabled" checked="checked" value="1" />
121
                        [% ELSE %]
141
                        [% ELSE %]
122
                            <input type="checkbox" name="credit_number_enabled" id="credit_number_enabled" value="1" />
142
                            <input type="checkbox" name="credit_number_enabled" id="credit_number_enabled" value="1" />
123
                        [% END %]
143
                        [% END %]
124
                        <span class="hint">Enable automatic generation of credit number (see <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=AutoCreditNumber">AutoCreditNumber</a>)</span>
144
                    </div>
125
                    </li>
145
                    <div class="hint">Enable automatic generation of credit number (see <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=AutoCreditNumber">AutoCreditNumber</a>)</div>
126
                    <li>
146
                </div>
147
                <div class="fg-row">
148
                    <div class="fg-label">
127
                        <label for="library_limitation">Libraries limitation: </label>
149
                        <label for="library_limitation">Libraries limitation: </label>
128
                        [% IF credit_type && credit_type.is_system %]
150
                    </div>
151
                    [% IF credit_type && credit_type.is_system %]
152
                        <div class="fg-text">
129
                            <span>No library limitation</span>
153
                            <span>No library limitation</span>
130
                        [% ELSE %]
154
                        </div>
155
                    [% ELSE %]
156
                        <div class="fg-input">
131
                            <select id="library_limitation" name="branches" multiple size="10">
157
                            <select id="library_limitation" name="branches" multiple size="10">
132
                                [% FOREACH branch IN branches_loop %]
158
                                [% FOREACH branch IN branches_loop %]
133
                                    [% IF ( branch.selected ) %]
159
                                    [% IF ( branch.selected ) %]
Lines 137-146 Link Here
137
                                    [% END %]
163
                                    [% END %]
138
                                [% END %]
164
                                [% END %]
139
                            </select>
165
                            </select>
140
                            <div class="hint">Limit the use of this credit type to the selected libraries.</div>
166
                        </div>
141
                        [% END %]
167
                        <div class="hint">Limit the use of this credit type to the selected libraries.</div>
142
                    </li>
168
                    [% END %]
143
                </ol>
169
                </div>
144
            </fieldset>
170
            </fieldset>
145
            [% IF additional_fields.size %]
171
            [% IF additional_fields.size %]
146
                [% INCLUDE 'additional-fields-entry.inc' available=additional_fields values=additional_field_values wrap_fieldset=1 %]
172
                [% INCLUDE 'additional-fields-entry.inc' available=additional_fields values=additional_field_values wrap_fieldset=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt (-27 / +59 lines)
Lines 83-139 Link Here
83
        <form action="/cgi-bin/koha/admin/debit_types.pl" name="Aform" method="post" class="validated">
83
        <form action="/cgi-bin/koha/admin/debit_types.pl" name="Aform" method="post" class="validated">
84
            [% INCLUDE 'csrf-token.inc' %]
84
            [% INCLUDE 'csrf-token.inc' %]
85
            <input type="hidden" name="op" value="cud-add_validate" />
85
            <input type="hidden" name="op" value="cud-add_validate" />
86
            <fieldset class="rows">
86
            <fieldset class="fg">
87
                <ol>
87
                <div class="fg-row">
88
                    <li>
88
                    <div class="fg-label">
89
                        <label for="code" class="required">Debit type code: </label>
89
                        <label for="code" class="required">Debit type code: </label>
90
                        [% IF debit_type %]
90
                    </div>
91
                    [% IF debit_type %]
92
                        <div class="fg-text">
91
                            <strong>[% debit_type.code | html %]</strong>
93
                            <strong>[% debit_type.code | html %]</strong>
92
                            <input type="hidden" name="code" value="[% code | html %]" />
94
                            <input type="hidden" name="code" value="[% code | html %]" />
93
                        [% ELSE %]
95
                        </div>
94
                            <input type="text" name="code" id="code" size="80" maxlength="64" class="required focus" required="required" /><span class="required">Required. Maximum length is 64 letters</span>
96
                    [% ELSE %]
95
                        [% END %]
97
                        <div class="fg-input">
96
                    </li>
98
                            <input type="text" name="code" id="code" size="80" maxlength="64" class="required focus" required="required" />
97
                    <li>
99
                        </div>
100
                        <div class="required">Required</div>
101
                        <div class="hint">Maximum length is 64 letters</div>
102
                    [% END %]
103
                </div>
104
                <div class="fg-row input-sm">
105
                    <div class="fg-label">
98
                        <label for="default_amount">Default amount: </label>
106
                        <label for="default_amount">Default amount: </label>
107
                    </div>
108
                    <div class="fg-input">
99
                        <input type="text" pattern="^\d+(\.\d{2})?$" name="default_amount" id="default_amount" size="80" maxlength="100" value="[% debit_type.default_amount | $Price on_editing => 1 %]" step="any" min="0" />
109
                        <input type="text" pattern="^\d+(\.\d{2})?$" name="default_amount" id="default_amount" size="80" maxlength="100" value="[% debit_type.default_amount | $Price on_editing => 1 %]" step="any" min="0" />
100
                    </li>
110
                    </div>
101
                    <li>
111
                </div>
112
                <div class="fg-row">
113
                    <div class="fg-label">
102
                        <label for="description" class="required">Description: </label>
114
                        <label for="description" class="required">Description: </label>
103
                        [% IF debit_type && debit_type.is_system %]
115
                    </div>
116
                    [% IF debit_type && debit_type.is_system %]
117
                        <div class="fg-text">
104
                            <span>[%- PROCESS debit_type_description debit_type = debit_type -%]</span>
118
                            <span>[%- PROCESS debit_type_description debit_type = debit_type -%]</span>
105
                        [% ELSE %]
119
                        </div>
106
                            <input type="text" name="description" id="description" required="required" class="required" size="80" maxlength="100" value="[% debit_type.description | html %]" /> <span class="required">Required</span>
120
                    [% ELSE %]
107
                        [% END %]
121
                        <div class="fg-input">
108
                    </li>
122
                            <input type="text" name="description" id="description" required="required" class="required" size="80" maxlength="100" value="[% debit_type.description | html %]" />
109
                    <li>
123
                        </div>
124
                        <div class="required">Required</div>
125
                    [% END %]
126
                </div>
127
                <div class="fg-row">
128
                    <div class="fg-label">
110
                        <label for="can_be_invoiced">Can be manually invoiced? </label>
129
                        <label for="can_be_invoiced">Can be manually invoiced? </label>
130
                    </div>
131
                    <div class="fg-input">
111
                        [% IF debit_type.can_be_invoiced %]
132
                        [% IF debit_type.can_be_invoiced %]
112
                            <input type="checkbox" name="can_be_invoiced" id="can_be_invoiced" checked="checked" value="1" />
133
                            <input type="checkbox" name="can_be_invoiced" id="can_be_invoiced" checked="checked" value="1" />
113
                        [% ELSE %]
134
                        [% ELSE %]
114
                            <input type="checkbox" name="can_be_invoiced" id="can_be_invoiced" value="1" />
135
                            <input type="checkbox" name="can_be_invoiced" id="can_be_invoiced" value="1" />
115
                        [% END %]
136
                        [% END %]
116
                    </li>
137
                    </div>
117
                    <li>
138
                </div>
139
                <div class="fg-row">
140
                    <div class="fg-label">
118
                        <label for="can_be_sold">Can be sold? </label>
141
                        <label for="can_be_sold">Can be sold? </label>
142
                    </div>
143
                    <div class="fg-input">
119
                        [% IF debit_type.can_be_sold %]
144
                        [% IF debit_type.can_be_sold %]
120
                            <input type="checkbox" name="can_be_sold" id="can_be_sold" checked="checked" value="1" />
145
                            <input type="checkbox" name="can_be_sold" id="can_be_sold" checked="checked" value="1" />
121
                        [% ELSE %]
146
                        [% ELSE %]
122
                            <input type="checkbox" name="can_be_sold" id="can_be_sold" value="1" />
147
                            <input type="checkbox" name="can_be_sold" id="can_be_sold" value="1" />
123
                        [% END %]
148
                        [% END %]
124
                    </li>
149
                    </div>
125
                    <li>
150
                </div>
151
                <div class="fg-row">
152
                    <div class="fg-label">
126
                        <label for="restricts_checkouts">Included in noissuescharge? </label>
153
                        <label for="restricts_checkouts">Included in noissuescharge? </label>
154
                    </div>
155
                    <div class="fg-input">
127
                        [% IF debit_type.restricts_checkouts %]
156
                        [% IF debit_type.restricts_checkouts %]
128
                            <input type="checkbox" name="restricts_checkouts" id="restricts_checkouts" checked="checked" value="1" />
157
                            <input type="checkbox" name="restricts_checkouts" id="restricts_checkouts" checked="checked" value="1" />
129
                        [% ELSE %]
158
                        [% ELSE %]
130
                            <input type="checkbox" name="restricts_checkouts" id="restricts_checkouts" value="1" />
159
                            <input type="checkbox" name="restricts_checkouts" id="restricts_checkouts" value="1" />
131
                        [% END %]
160
                        [% END %]
132
                    </li>
161
                    </div>
133
                    <li>
162
                </div>
163
                <div class="fg-row">
164
                    <div class="fg-label">
134
                        <label for="library_limitation">Libraries limitation: </label>
165
                        <label for="library_limitation">Libraries limitation: </label>
166
                    </div>
167
                    <div class="fg-input">
135
                        <select id="library_limitation" name="branches" multiple size="10">
168
                        <select id="library_limitation" name="branches" multiple size="10">
136
                            <option value="">All libraries</option>
137
                            [% FOREACH branch IN branches_loop %]
169
                            [% FOREACH branch IN branches_loop %]
138
                                [% IF ( branch.selected ) %]
170
                                [% IF ( branch.selected ) %]
139
                                    <option selected="selected" value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
171
                                    <option selected="selected" value="[% branch.branchcode | html %]">[% branch.branchname | html %]</option>
Lines 142-150 Link Here
142
                                [% END %]
174
                                [% END %]
143
                            [% END %]
175
                            [% END %]
144
                        </select>
176
                        </select>
145
                        <div class="hint">Limit use of this debit type to the selected libraries.</div>
177
                    </div>
146
                    </li>
178
                    <div class="hint">Limit use of this debit type to the selected libraries.</div>
147
                </ol>
179
                </div>
148
            </fieldset>
180
            </fieldset>
149
            [% IF additional_fields.size %]
181
            [% IF additional_fields.size %]
150
                [% INCLUDE 'additional-fields-entry.inc' available=additional_fields values=additional_field_values wrap_fieldset=1 %]
182
                [% INCLUDE 'additional-fields-entry.inc' available=additional_fields values=additional_field_values wrap_fieldset=1 %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/desks.tt (-12 / +23 lines)
Lines 101-117 Link Here
101
            <input type="hidden" name="op" value="cud-add_validate" />
101
            <input type="hidden" name="op" value="cud-add_validate" />
102
            <input type="hidden" name="desk_id" value="[% desk.desk_id | html %]" />
102
            <input type="hidden" name="desk_id" value="[% desk.desk_id | html %]" />
103
103
104
            <fieldset class="rows">
104
            <fieldset class="fg">
105
                <ol>
105
                [% IF desk %]
106
                    [% IF desk %]
106
                    <div class="fg-row">
107
                        <li><span class="label">Desk ID: </span>[% desk.desk_id | html %]</li>
107
                        <div class="fg-label">
108
                    [% END %]
108
                            <span class="label">Desk ID: </span>
109
                    <li>
109
                        </div>
110
                        <div class="fg-text"> [% desk.desk_id | html %] </div>
111
                    </div>
112
                [% END %]
113
                <div class="fg-row">
114
                    <div class="fg-label">
110
                        <label for="desk_name" class="required">Desk: </label>
115
                        <label for="desk_name" class="required">Desk: </label>
111
                        <input type="text" name="desk_name" id="desk_name" size="80" maxlength="100" value="[% desk.desk_name | html %]" required="required" class="required" /> <span class="required">Required</span>
116
                    </div>
112
                    </li>
117
                    <div class="fg-input">
113
                    <li>
118
                        <input type="text" name="desk_name" id="desk_name" size="80" maxlength="100" value="[% desk.desk_name | html %]" required="required" class="required" />
119
                    </div>
120
                    <div class="required">Required</div>
121
                </div>
122
                <div class="fg-row">
123
                    <div class="fg-label">
114
                        <label for="branchcode" class="required">Library: </label>
124
                        <label for="branchcode" class="required">Library: </label>
125
                    </div>
126
                    <div class="fg-input">
115
                        <select id="branchcode" name="branchcode" required="required">
127
                        <select id="branchcode" name="branchcode" required="required">
116
                            <option value=""></option>
128
                            <option value=""></option>
117
                            [% IF desk %]
129
                            [% IF desk %]
Lines 120-127 Link Here
120
                                [% PROCESS options_for_libraries libraries => Branches.all() %]
132
                                [% PROCESS options_for_libraries libraries => Branches.all() %]
121
                            [% END %]
133
                            [% END %]
122
                        </select>
134
                        </select>
123
                    </li>
135
                    </div>
124
                </ol>
136
                </div>
125
            </fieldset>
137
            </fieldset>
126
138
127
            <fieldset class="action">
139
            <fieldset class="action">
128
- 

Return to bug 40113