From eec8c6a002ca526a086cc497c754008253a2da20 Mon Sep 17 00:00:00 2001 From: Renaud Michotte Date: Fri, 23 Oct 2020 16:30:06 +0200 Subject: [PATCH] patron_types: display restrictions on detailed view Adapts the patron type detailed view to display the circulation restrictions. Authored-by: Renaud Michotte --- .../patron-types-detail-view.component.html | 65 +++++++++++++++++++ projects/admin/src/app/scss/styles.scss | 3 + 2 files changed, 68 insertions(+) diff --git a/projects/admin/src/app/record/detail-view/patron-types-detail-view/patron-types-detail-view.component.html b/projects/admin/src/app/record/detail-view/patron-types-detail-view/patron-types-detail-view.component.html index b62ea36cb..4b706b114 100644 --- a/projects/admin/src/app/record/detail-view/patron-types-detail-view/patron-types-detail-view.component.html +++ b/projects/admin/src/app/record/detail-view/patron-types-detail-view/patron-types-detail-view.component.html @@ -37,5 +37,70 @@

{{ record.metadata.name }}

Subscription amount
{{ record.metadata.subscription_amount | currency: organisation.default_currency }}
+ + +
+

Limits

+
+ +
+ + Limit by checkouts +
+
+
+
General limit
+
{{ record.metadata.limits.checkout_limits.general_limit }}
+
+ +
Library limit
+
{{ record.metadata.limits.checkout_limits.library_limit }}
+
+
+ +
Exceptions
+ +
+ + {{ exception.library.pid | getRecord: 'libraries' : 'field' : 'name' | async }} +
+
{{ exception.value }}
+
+
+
+
+ +
+ + Limit by fee amount +
+
+
+
Limit
+
{{ record.metadata.limits.fee_amount_limits.default_value | currency: organisation.default_currency }}
+
+
+ +
+ + Limit by overdue items +
+
+
+
Limit
+
{{ record.metadata.limits.overdue_items_limits.default_value }}
+
+
+
+
diff --git a/projects/admin/src/app/scss/styles.scss b/projects/admin/src/app/scss/styles.scss index 5e7c59221..2f48dfa8f 100644 --- a/projects/admin/src/app/scss/styles.scss +++ b/projects/admin/src/app/scss/styles.scss @@ -204,6 +204,9 @@ json-schema-form { .card-header:not(:first-child) { border-top: $card-border-width solid $card-border-color; } + .card-header + .card-header { + border-top: none; + } } // Adapt detailed views to not use screen width