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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-24 / +23 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-203 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
                                        [% lengthunit %]
200
                                        [% lengthunit | html %]
201
                                    </td>
201
                                    </td>
202
                                    <td>
202
                                    <td>
203
                                      [% IF ( hardduedate ) %]
203
                                      [% IF ( hardduedate ) %]
Lines 215-224 Link Here
215
                                        <span>None defined</span>
215
                                        <span>None defined</span>
216
                                      [% END %]
216
                                      [% END %]
217
                                    </td>
217
                                    </td>
218
                                    <td>[% fine %]</td>
218
                                    <td>[% fine | html %]</td>
219
                                    <td>[% chargeperiod %]</td>
219
                                    <td>[% chargeperiod | html %]</td>
220
                                    <td>[% IF chargeperiod_charge_at %]Start of interval[% ELSE %]End of interval[% END %]</td>
220
                                    <td>[% IF chargeperiod_charge_at %]Start of interval[% ELSE %]End of interval[% END %]</td>
221
                                    <td>[% firstremind %]</td>
221
                                    <td>[% firstremind | html %]</td>
222
                                    <td>[% overduefinescap FILTER format("%.2f") %]</td>
222
                                    <td>[% overduefinescap FILTER format("%.2f") %]</td>
223
                                    <td>
223
                                    <td>
224
                                        [% IF cap_fine_to_replacement_price %]
224
                                        [% IF cap_fine_to_replacement_price %]
Lines 227-238 Link Here
227
                                            <input type="checkbox" disabled="disabled" />
227
                                            <input type="checkbox" disabled="disabled" />
228
                                        [% END %]
228
                                        [% END %]
229
                                    </td>
229
                                    </td>
230
                                    <td>[% finedays %]</td>
230
                                    <td>[% finedays | html %]</td>
231
                                    <td>[% maxsuspensiondays %]</td>
231
                                    <td>[% maxsuspensiondays | html %]</td>
232
                                    <td>[% suspension_chargeperiod %]</td>
232
                                    <td>[% suspension_chargeperiod | html %]</td>
233
                                    <td>[% renewalsallowed %]</td>
233
                                    <td>[% renewalsallowed | html %]</td>
234
                                    <td>[% renewalperiod %]</td>
234
                                    <td>[% renewalperiod | html %]</td>
235
                                    <td>[% norenewalbefore %]</td>
235
                                    <td>[% norenewalbefore | html %]</td>
236
                                    <td>
236
                                    <td>
237
                                        [% IF auto_renew %]
237
                                        [% IF auto_renew %]
238
                                            <span>Yes</span>
238
                                            <span>Yes</span>
Lines 240-256 Link Here
240
                                            <span>No</span>
240
                                            <span>No</span>
241
                                        [% END %]
241
                                        [% END %]
242
                                    </td>
242
                                    </td>
243
                                    <td>[% no_auto_renewal_after %]</td>
243
                                    <td>[% no_auto_renewal_after | html %]</td>
244
                                    <td>[% no_auto_renewal_after_hard_limit %]</td>
244
                                    <td>[% no_auto_renewal_after_hard_limit | html %]</td>
245
                                    <td>[% reservesallowed %]</td>
245
                                    <td>[% reservesallowed | html %]</td>
246
                                    <td>
246
                                    <td>
247
                                        [% IF holds_per_day.defined && holds != '' %]
247
                                        [% IF holds_per_day.defined && holds != '' %]
248
                                            [% holds_per_day %]
248
                                            [% holds_per_day | html %]
249
                                        [% ELSE %]
249
                                        [% ELSE %]
250
                                            <span>Unlimited</span>
250
                                            <span>Unlimited</span>
251
                                        [% END %]
251
                                        [% END %]
252
                                    </td>
252
                                    </td>
253
                                    <td>[% holds_per_record %]</td>
253
                                    <td>[% holds_per_record | html %]</td>
254
                                    <td>
254
                                    <td>
255
                                        [% IF onshelfholds == 1 %]
255
                                        [% IF onshelfholds == 1 %]
256
                                            <span>Yes</span>
256
                                            <span>Yes</span>
Lines 280-286 Link Here
280
                                            <span>Item only</span>
280
                                            <span>Item only</span>
281
                                        [% END %]
281
                                        [% END %]
282
                                    </td>
282
                                    </td>
283
                                    <td>[% rentaldiscount %]</td>
283
                                    <td>[% rentaldiscount | html %]</td>
284
                                    <td class="actions">
284
                                    <td class="actions">
285
                                      <a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
285
                                      <a href="#" class="editrule btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
286
                                      <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>
286
                                      <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>
287
- 

Return to bug 18936