X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fadmin%2Fpatron-attr-types.tt;h=bd76e4c85046ac707e3cb2ae8c331f385f4c08e1;hb=6b626b64944dff0ba0adff99da26e3bbe8eb7544;hp=4ce47858e28d6f5e88d7045ceea1092bef535e5f;hpb=1ee7f449be2ba45c2458d2ac571172ecf58752b2;p=koha.git
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt
index 4ce47858e2..bd76e4c850 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/patron-attr-types.tt
@@ -1,3 +1,4 @@
+[% USE AuthorisedValues %]
[% INCLUDE 'doc-head-open.inc' %]
Koha › Administration › Patron attribute types
[% IF ( attribute_type_form ) %]
@@ -15,38 +16,17 @@
[% INCLUDE 'header.inc' %]
-[% INCLUDE 'cat-search.inc' %]
+[% INCLUDE 'prefs-admin-search.inc' %]
Home ›
Administration › [% IF ( display_list ) %]Patron attribute types[% ELSE %]
Patron attribute types[% END %]
[% IF ( attribute_type_form ) %]
@@ -82,7 +62,7 @@ function CheckAttributeTypeForm(f) {
— one with that code already exists.
[% END %]
-
[% END %]
[% IF ( delete_attribute_type_form ) %]
-Confirm deletion of patron attribute type '[% code |html %]' ([% description %])?
-
-
+
+
Confirm deletion of patron attribute type '[% code |html %]' ([% description %])?
+
+
+
[% END %]
[% IF ( display_list ) %]
-
+
Patron attribute types
[% IF ( added_attribute_type ) %]
@@ -286,6 +248,7 @@ function CheckAttributeTypeForm(f) {
Code |
Description |
+ Branches limitation |
Actions |
@@ -295,8 +258,25 @@ function CheckAttributeTypeForm(f) {
[% item.code |html %] |
[% item.description %] |
- Edit
- Delete
+ [% IF ( item.branches && item.branches.size > 0 ) %]
+ [% branches_str = "" %]
+ [% FOREACH branch IN item.branches %]
+ [% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]
+ [% END %]
+
+ [% IF item.branches.size > 1 %]
+ [% item.branches.size %] branches limitations
+ [% ELSE %]
+ [% item.branches.size %] branch limitation
+ [% END %]
+
+ [% ELSE %]
+ No limitation
+ [% END %]
+ |
+
+ Edit
+ Delete
|
[% END %]