diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/CirculationRulesSummary.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/CirculationRulesSummary.vue new file mode 100644 index 0000000000..8d044089f6 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/CirculationRulesSummary.vue @@ -0,0 +1,74 @@ + + + + + + + diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/CirculationTriggersFormAdd.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/CirculationTriggersFormAdd.vue index e28f824b93..ec8b940206 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/CirculationTriggersFormAdd.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Admin/CirculationTriggers/CirculationTriggersFormAdd.vue @@ -17,399 +17,76 @@ >
{{ $__("Loading rule set information...") }}
{{ $__("Loading context...") }}
-{{ $__("Loading circulation rules...") }}
+{{ $__("Loading circulation rules...") }}
+{{ $__("Loading context...") }}
+{{ $__("Loading circulation rules...") }}
+{{ $__("Loading circulation rules...") }}
+| - {{ $__("Loan period") }} - | -- {{ $__("Unit") }} - | -- {{ $__("Decreased loan period for high holds") }} - | -- {{ $__("Fine amount") }} - | -- {{ $__("Fine charging interval") }} - | - - -
|---|---|---|---|---|
| - {{ ruleSetInfo.issuelength }} - | -- {{ ruleSetInfo.lengthunit }} - | -- {{ ruleSetInfo.decreaseloanholds }} - | -- {{ ruleSetInfo.fine }} - | -- {{ ruleSetInfo.chargeperiod }} - | -
| - {{ $__("Library") }} - | -- {{ $__("Patron category") }} - | -- {{ $__("Item type") }} - | -- {{ $__("Trigger") }} - | -- {{ $__("Delay") }} - | -- {{ $__("Notice") }} - | -- {{ $__("Email") }} - | -- {{ $__("Print") }} - | -- {{ $__("SMS") }} - | -- {{ $__("Restricts checkouts") }} - | -- {{ $__("Actions") }} - | - - - -|||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + {{ $__("Library") }} + | ++ {{ $__("Patron category") }} + | ++ {{ $__("Item type") }} + | ++ {{ $__("Trigger") }} + | ++ {{ $__("Delay") }} + | ++ {{ $__("Notice") }} + | ++ {{ $__("Email") }} + | ++ {{ $__("Print") }} + | ++ {{ $__("SMS") }} + | ++ {{ $__("Restricts checkouts") }} + | ++ {{ $__("Actions") }} + | + + + -- {{ - handleContext( - ruleSet.context.library_id, - libraries, - "library_id" - ) - }} - | -- {{ - handleContext( - ruleSet.context.patron_category_id, - patronCategories, - "patron_category_id" - ) - }} - | -- {{ - handleContext( - ruleSet.context.item_type_id, - itemTypes, - "item_type_id", - "description" - ) - }} - | -- {{ i + 1 }} - | - -- + | + {{ + handleContext( + ruleSet.context.library_id, + libraries, + "library_id" + ) + }} + | ++ {{ + handleContext( + ruleSet.context.patron_category_id, + patronCategories, + "patron_category_id" + ) + }} + | ++ {{ + handleContext( + ruleSet.context.item_type_id, + itemTypes, + "item_type_id", + "description" + ) + }} + | ++ {{ i + 1 }} + | + ++ + {{ ruleSet[ `overdue_${modal ? i + 1 : triggerNumber}_delay` - ].isFallback, - }" - > - {{ - ruleSet[ - `overdue_${modal ? i + 1 : triggerNumber}_delay` - ].value - }} - - | - -- - {{ - handleNotice( - ruleSet[ - `overdue_${modal ? i + 1 : triggerNumber}_notice` ].value - ) - }} - - | - -- + {{ + handleNotice( + ruleSet[ + `overdue_${modal ? i + 1 : triggerNumber}_notice` + ].value + ) + }} + + | + ++ + {{ + handleTransport( + ruleSet[ + `overdue_${modal ? i + 1 : triggerNumber}_mtt` + ].value, + "email", + !ruleSet[ + `overdue_${modal ? i + 1 : triggerNumber}_notice` + ].value + ) + }} + + | + ++ + {{ + handleTransport( + ruleSet[ + `overdue_${modal ? i + 1 : triggerNumber}_mtt` + ].value, + "print", + !ruleSet[ + `overdue_${modal ? i + 1 : triggerNumber}_notice` + ].value + ) + }} + + | + ++ + {{ + handleTransport( + ruleSet[ + `overdue_${modal ? i + 1 : triggerNumber}_mtt` + ].value, + "sms", + !ruleSet[ + `overdue_${modal ? i + 1 : triggerNumber}_notice` + ].value + ) + }} + + | + ++ + {{ + handleRestrictions( + ruleSet[ + `overdue_${modal ? i + 1 : triggerNumber}_restrict` + ].value + ) + }} + + | +
+ |
-
- - - {{ - handleTransport( - ruleSet[ - `overdue_${modal ? i + 1 : triggerNumber}_mtt` - ].value, - "print", - !ruleSet[ - `overdue_${modal ? i + 1 : triggerNumber}_notice` - ].value - ) - }} - - | - -- - {{ - handleTransport( - ruleSet[ - `overdue_${modal ? i + 1 : triggerNumber}_mtt` - ].value, - "sms", - !ruleSet[ - `overdue_${modal ? i + 1 : triggerNumber}_notice` - ].value - ) - }} - - | - -- - {{ - handleRestrictions( - ruleSet[ - `overdue_${modal ? i + 1 : triggerNumber}_restrict` - ].value - ) - }} - - | -+ `overdue_${modal ? i + 1 : triggerNumber}_has_rules` + ].value && + !isOnlyRuleSetForTrigger(triggerNumber) + " + :to="{ + name: 'CirculationTriggersFormConfirmReset', + query: { + library_id: ruleSet.context.library_id, + item_type_id: + ruleSet.context.item_type_id, + patron_category_id: + ruleSet.context.patron_category_id, + triggerNumber: triggerNumber, + }, + }" + class="btn btn-default btn-xs" + > + {{ $__("Reset") }} + | + + +
|---|---|---|---|---|---|---|---|
| + |
|
||||||
| - |
- |
- ||||||