From 3c7137978133016d05b2f2963c5caa6509940f96 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 | 9 +++ 2 files changed, 74 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 361161d08..2f48dfa8f 100644 --- a/projects/admin/src/app/scss/styles.scss +++ b/projects/admin/src/app/scss/styles.scss @@ -200,6 +200,15 @@ json-schema-form { } } +.card { + .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 .main-content{ @extend .container;