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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-23 / +22 lines)
Lines 157-180 Link Here
157
                        [% SET show_rule = maxissueqty || maxonsiteissueqty || issuelength || lengthunit || hardduedate || hardduedatebefore || hardduedateexact || fine || chargeperiod || chargeperiod_charge_at || firstremind || overduefinescap || cap_fine_to_replacement_price || finedays || maxsuspensiondays || suspension_chargeperiod || renewalsallowed || renewalsallowed || norenewalbefore || auto_renew || no_auto_renewal_after || no_auto_renewal_after_hard_limit || reservesallowed || holds_per_day || holds_per_record || onshelfholds || opacitemholds || article_requests || article_requests %]
157
                        [% SET show_rule = maxissueqty || maxonsiteissueqty || issuelength || lengthunit || hardduedate || hardduedatebefore || hardduedateexact || fine || chargeperiod || chargeperiod_charge_at || firstremind || overduefinescap || cap_fine_to_replacement_price || finedays || maxsuspensiondays || suspension_chargeperiod || renewalsallowed || renewalsallowed || norenewalbefore || auto_renew || no_auto_renewal_after || no_auto_renewal_after_hard_limit || reservesallowed || holds_per_day || holds_per_record || onshelfholds || opacitemholds || article_requests || article_requests %]
158
                        [% IF show_rule %]
158
                        [% IF show_rule %]
159
                            [% SET row_count = row_count + 1 %]
159
                            [% SET row_count = row_count + 1 %]
160
                            <tr row_countd="row_[% row_count %]">
160
                            <tr row_countd="row_[% row_count | html %]">
161
                                    <td>
161
                                    <td>
162
                                        [% IF c == undef %]
162
                                        [% IF c == undef %]
163
                                            <em>All</em>
163
                                            <em>All</em>
164
                                        [% ELSE %]
164
                                        [% ELSE %]
165
                                            [% Categories.GetName(c) %]
165
                                            [% Categories.GetName(c) | html %]
166
                                        [% END %]
166
                                        [% END %]
167
                                    </td>
167
                                    </td>
168
                                    <td>
168
                                    <td>
169
                                        [% IF i == undef %]
169
                                        [% IF i == undef %]
170
                                            <em>All</em>
170
                                            <em>All</em>
171
                                        [% ELSE %]
171
                                        [% ELSE %]
172
                                            [% ItemTypes.GetDescription(i) %]
172
                                            [% ItemTypes.GetDescription(i) | html %]
173
                                        [% END %]
173
                                        [% END %]
174
                                    </td>
174
                                    </td>
175
                                    <td class="actions">
175
                                    <td class="actions">
176
                                      <a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
176
                                      <a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
177
                                      <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&amp;itemtype=[% rule.itemtype || '*' %]&amp;categorycode=[% rule.categorycode || '*' %]&amp;branch=[% current_branch %]"><i class="fa fa-trash"></i> Delete</a>
177
                                      <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&amp;itemtype=[% rule.itemtype || '*' | html %]&amp;categorycode=[% rule.categorycode || '*' | html %]&amp;branch=[% current_branch | html %]"><i class="fa fa-trash"></i> Delete</a>
178
                                    </td>
178
                                    </td>
179
                                    <td>
179
                                    <td>
180
                                        [% IF note.defined %]
180
                                        [% IF note.defined %]
Lines 183-201 Link Here
183
                                    </td>
183
                                    </td>
184
                                    <td>
184
                                    <td>
185
                                        [% IF maxissueqty.defined && maxissueqty != '' %]
185
                                        [% IF maxissueqty.defined && maxissueqty != '' %]
186
                                            [% maxissueqty %]
186
                                            [% maxissueqty | html %]
187
                                        [% ELSE %]
187
                                        [% ELSE %]
188
                                            <span>Unlimited</span>
188
                                            <span>Unlimited</span>
189
                                        [% END %]
189
                                        [% END %]
190
                                    </td>
190
                                    </td>
191
                                    <td>
191
                                    <td>
192
                                        [% IF maxonsiteissueqty.defined && maxonsiteissueqty != ''  %]
192
                                        [% IF maxonsiteissueqty.defined && maxonsiteissueqty != ''  %]
193
                                            [% maxonsiteissueqty %]
193
                                            [% maxonsiteissueqty | html %]
194
                                        [% ELSE %]
194
                                        [% ELSE %]
195
                                            <span>Unlimited</span>
195
                                            <span>Unlimited</span>
196
                                        [% END %]
196
                                        [% END %]
197
                                    </td>
197
                                    </td>
198
                                    <td>[% issuelength %]</td>
198
                                    <td>[% issuelength | html %]</td>
199
                                    <td>
199
                                    <td>
200
                                        [% IF ( lengthunit == 'days' ) %]
200
                                        [% IF ( lengthunit == 'days' ) %]
201
                                            Days
201
                                            Days
Lines 221-230 Link Here
221
                                        <span>None defined</span>
221
                                        <span>None defined</span>
222
                                      [% END %]
222
                                      [% END %]
223
                                    </td>
223
                                    </td>
224
                                    <td>[% fine %]</td>
224
                                    <td>[% fine | html %]</td>
225
                                    <td>[% chargeperiod %]</td>
225
                                    <td>[% chargeperiod | html %]</td>
226
                                    <td>[% IF chargeperiod_charge_at %]Start of interval[% ELSE %]End of interval[% END %]</td>
226
                                    <td>[% IF chargeperiod_charge_at %]Start of interval[% ELSE %]End of interval[% END %]</td>
227
                                    <td>[% firstremind %]</td>
227
                                    <td>[% firstremind | html %]</td>
228
                                    <td>[% overduefinescap FILTER format("%.2f") %]</td>
228
                                    <td>[% overduefinescap FILTER format("%.2f") %]</td>
229
                                    <td>
229
                                    <td>
230
                                        [% IF cap_fine_to_replacement_price %]
230
                                        [% IF cap_fine_to_replacement_price %]
Lines 233-244 Link Here
233
                                            <input type="checkbox" disabled="disabled" />
233
                                            <input type="checkbox" disabled="disabled" />
234
                                        [% END %]
234
                                        [% END %]
235
                                    </td>
235
                                    </td>
236
                                    <td>[% finedays %]</td>
236
                                    <td>[% finedays | html %]</td>
237
                                    <td>[% maxsuspensiondays %]</td>
237
                                    <td>[% maxsuspensiondays | html %]</td>
238
                                    <td>[% suspension_chargeperiod %]</td>
238
                                    <td>[% suspension_chargeperiod | html %]</td>
239
                                    <td>[% renewalsallowed %]</td>
239
                                    <td>[% renewalsallowed | html %]</td>
240
                                    <td>[% renewalperiod %]</td>
240
                                    <td>[% renewalperiod | html %]</td>
241
                                    <td>[% norenewalbefore %]</td>
241
                                    <td>[% norenewalbefore | html %]</td>
242
                                    <td>
242
                                    <td>
243
                                        [% IF auto_renew %]
243
                                        [% IF auto_renew %]
244
                                            <span>Yes</span>
244
                                            <span>Yes</span>
Lines 246-262 Link Here
246
                                            <span>No</span>
246
                                            <span>No</span>
247
                                        [% END %]
247
                                        [% END %]
248
                                    </td>
248
                                    </td>
249
                                    <td>[% no_auto_renewal_after %]</td>
249
                                    <td>[% no_auto_renewal_after | html %]</td>
250
                                    <td>[% no_auto_renewal_after_hard_limit %]</td>
250
                                    <td>[% no_auto_renewal_after_hard_limit | html %]</td>
251
                                    <td>[% reservesallowed %]</td>
251
                                    <td>[% reservesallowed | html %]</td>
252
                                    <td>
252
                                    <td>
253
                                        [% IF holds_per_day.defined && holds != '' %]
253
                                        [% IF holds_per_day.defined && holds != '' %]
254
                                            [% holds_per_day %]
254
                                            [% holds_per_day | html %]
255
                                        [% ELSE %]
255
                                        [% ELSE %]
256
                                            <span>Unlimited</span>
256
                                            <span>Unlimited</span>
257
                                        [% END %]
257
                                        [% END %]
258
                                    </td>
258
                                    </td>
259
                                    <td>[% holds_per_record %]</td>
259
                                    <td>[% holds_per_record | html %]</td>
260
                                    <td>
260
                                    <td>
261
                                        [% IF onshelfholds == 1 %]
261
                                        [% IF onshelfholds == 1 %]
262
                                            <span>Yes</span>
262
                                            <span>Yes</span>
Lines 286-292 Link Here
286
                                            <span>Item only</span>
286
                                            <span>Item only</span>
287
                                        [% END %]
287
                                        [% END %]
288
                                    </td>
288
                                    </td>
289
                                    <td>[% rentaldiscount %]</td>
289
                                    <td>[% rentaldiscount | html %]</td>
290
                                    <td class="actions">
290
                                    <td class="actions">
291
                                      <a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
291
                                      <a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
292
                                      <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&amp;itemtype=[% rule.itemtype || '*' | uri %]&amp;categorycode=[% rule.categorycode || '*' | uri %]&amp;branch=[% rule.current_branch | uri %]"><i class="fa fa-trash"></i> Delete</a>
292
                                      <a class="btn btn-default btn-xs delete" href="/cgi-bin/koha/admin/smart-rules.pl?op=delete&amp;itemtype=[% rule.itemtype || '*' | uri %]&amp;categorycode=[% rule.categorycode || '*' | uri %]&amp;branch=[% rule.current_branch | uri %]"><i class="fa fa-trash"></i> Delete</a>
293
- 

Return to bug 18936