X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fmembers%2Fmemberentrygen.tt;h=49ddce89351661440a6b1d200d1c3bfd8dde2816;hb=59757c1f5b7de423241f91ef8c95822183786d00;hp=77b4df9ae689564406350329e04005da08ea8577;hpb=27770b7c8f9a0d75f7dc17c6b1face67c71533a3;p=koha.git
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
index 77b4df9ae6..49ddce8935 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
@@ -1,225 +1,70 @@
+[% USE raw %]
+[% USE Asset %]
[% USE Koha %]
[% USE KohaDates %]
+[% USE Branches %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
-
Koha › Patrons › [% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron [% IF (firstname) %][% firstname %] [% END %][% IF (surname) %][% surname %] [% END %]([%IF ( categoryname ) %][% categoryname %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])
+Koha › Patrons ›
+ [% UNLESS blocking_error %]
+ [% IF ( opadd ) %]Add
+ [% ELSIF ( opduplicate ) %]Duplicate
+ [% ELSE %] Modify
+ [% END %] patron
+ [% IF (firstname) %][% firstname | html %] [% END %]
+ [% IF (surname) %][% surname | html %] [% END %]
+ ([%IF categoryname %][% categoryname | html %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])
+ [% END %]
+
[% INCLUDE 'doc-head-close.inc' %]
-[% INCLUDE 'calendar.inc' %]
-
-
+
[% INCLUDE 'header.inc' %]
[% INCLUDE 'patron-search.inc' %]
-
Home › Patrons ›
-[% IF (firstname || surname ) %] [% IF (firstname) %][% firstname %] [% END %][% IF (surname) %][% surname %] [% END %] ›[% END %]
-[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron ([%IF ( categoryname ) %][% categoryname %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])
+
+ Home › Patrons
+ [% UNLESS blocking_error %]
+ ›[% IF (firstname || surname ) %] [% IF (firstname) %][% firstname | html %] [% END %][% IF (surname) %][% surname | html %] [% END %] ›[% END %]
+[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron ([%IF ( categoryname ) %][% categoryname | html %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])
+ [% END %]
[% IF ( opadd ) %]
[% ELSE %]
[% END %]
-
+
+ [% INCLUDE 'blocking_errors.inc' %]
[% IF error_alert %]
[% IF ( error_alert == "no_email" ) %]
This member has no email
[% ELSE %]
-
[% error_alert %]
+
[% error_alert | html %]
[% END %]
[% END %]
[% IF info_alert %]
Email has been sent.
[% END %]
- [% IF ( no_add ) %]
Cannot add patron
- [% IF ( no_branches ) %]
There are no libraries defined. [% IF ( CAN_user_parameters ) %]Please add a library.[% ELSE %]An administrator must define at least one library.[% END %]
[% END %]
- [% IF ( no_categories ) %]
There are no patron categories defined. [% IF ( CAN_user_parameters ) %]Please add a patron category.[% ELSE %]An administrator must define at least one patron category.
[% END %][% END %]
[% END %]
+ [% INCLUDE 'noadd-warnings.inc' %]
[% UNLESS ( no_add ) %]
-
[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron [% IF (firstname) %][% firstname %] [% END %][% IF (surname) %][% surname %] [% END %]([%IF ( categoryname ) %][% categoryname %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])
-
+
[% IF ( opadd ) %]Add[% ELSIF ( opduplicate ) %]Duplicate[% ELSE %] Modify[% END %] patron [% IF (firstname) %][% firstname | html %] [% END %][% IF (surname) %][% surname | html %] [% END %]([%IF ( categoryname ) %][% categoryname | html %][% ELSE %][% IF ( I ) %]Organization[% END %][% IF ( A ) %]Adult[% END %][% IF ( C ) %]Child[% END %][% IF ( P ) %]Professional[% END %][% IF ( S ) %]Staff[% END %][% END %])
[% END %]
@@ -238,12 +83,12 @@ function select_user(borrowernumber, borrower) {
Cardnumber length is incorrect.
[% END %]
[% IF ( ERROR_age_limitations ) %]
-
Patron's age is incorrect for their category.
- Ages allowed are [% age_low %]-[% age_high %].
+
Patron's age is incorrect for their category.
+ Ages allowed are [% age_low | html %]-[% age_high | html %].
[% END %]
[% IF ( ERROR_branch ) %]
Library is invalid.
- [% END %]
+ [% END %]
[% IF ( ERROR_dateofbirth ) %]
Date of birth is invalid.
[% END %]
@@ -253,14 +98,20 @@ function select_user(borrowernumber, borrower) {
[% IF ( ERROR_dateexpiry ) %]
Date of expiration is invalid.
[% END %]
- [% IF ( ERROR_short_password ) %]
-
Password must be at least [% minPasswordLength %] characters long.
- [% END %]
+ [% IF ( ERROR_password_too_short ) %]
+
Password must be at least [% minPasswordLength | html %] characters long.
+ [% END %]
+ [% IF ( ERROR_password_too_weak ) %]
+
Password must contain at least one digit, one lowercase and one uppercase.
+ [% END %]
+ [% IF ( ERROR_password_has_whitespaces ) %]
+
Password must not contain leading or trailing whitespaces.
+ [% END %]
[% IF ( ERROR_password_mismatch ) %]
Passwords do not match.
[% END %]
[% IF ( ERROR_extended_unique_id_failed ) %]
-
[% ERROR_extended_unique_id_failed_description %] attribute value [% ERROR_extended_unique_id_failed_value %] is already in use by another patron record.
+
[% ERROR_extended_unique_id_failed_description | html %]: Attribute value "[% ERROR_extended_unique_id_failed_value | html %]" is already in use by another patron record.
[% END %]
[% IF ERROR_bad_email %]
The primary email is invalid.
@@ -276,26 +127,45 @@ function select_user(borrowernumber, borrower) {
[% END %]
-[% UNLESS ( check_member ) %]