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=d70bdbd23b92f83c920a65256a45d207a7be0e5e;hpb=e901ae15de6717f8594bd80ecfb0c5e8a23b8af5;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 d70bdbd23b..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 ) %]
@@ -20,38 +21,12 @@ $(document).ready(function() {
$("#branches option:first").attr("selected", "selected");
}
} );
-
-function DoCancel(f) {
- f.op.value='';
- document.Aform.submit();
-}
-
-function CheckAttributeTypeForm(f) {
- var ok=1;
- var _alertString="";
- var alertString2;
- if (f.code.value.length==0) {
- _alertString += "\n- " + _("Patron attribute type code missing");
- }
- if (f.description.value.length==0) {
- _alertString += "\n- " + _("Description missing");
- }
- if (_alertString.length==0) {
- document.Aform.submit();
- } else {
- alertString2 = _("Form not submitted because of the following problem(s)");
- alertString2 += "\n------------------------------------------------------------------------------------\n";
- alertString2 += _alertString;
- alert(alertString2);
- }
-}
-
//]]>
[% 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 ) %]
@@ -87,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 ) %]
@@ -315,7 +258,7 @@ function CheckAttributeTypeForm(f) {
[% item.code |html %] |
[% item.description %] |
- [% IF item.branches.size > 0 %]
+ [% IF ( item.branches && item.branches.size > 0 ) %]
[% branches_str = "" %]
[% FOREACH branch IN item.branches %]
[% branches_str = branches_str _ " " _ branch.branchname _ "(" _ branch.branchcode _ ")" %]
@@ -331,9 +274,9 @@ function CheckAttributeTypeForm(f) {
No limitation
[% END %]
|
-
- Edit
- Delete
+ |
+ Edit
+ Delete
|
[% END %]