@@ -, +, @@
corrections
- Simplify the SWITCH markup
- Add "primary" to primary phone label
- Correct case on label
- Add IF statement to hide label if there is no primary contact
method
---
.../prog/en/modules/members/moremember.tt | 31 +++++++++++++---------
1 file changed, 18 insertions(+), 13 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
@@ -181,19 +181,24 @@
[% END %]
[% END %]
- [% SWITCH primary_contact_method %]
- [% CASE 'phone' %]
-
Main contact method: Phone
- [% CASE 'phonepro' %]
- Main contact method: Secondary phone
- [% CASE 'mobile' %]
- Main contact method: Other Phone
- [% CASE 'email' %]
- Main contact method: Primary email
- [% CASE 'emailpro' %]
- Main contact method: Secondary email
- [% CASE 'fax' %]
- Main contact method: Fax
+ [% IF ( primary_contact_method ) %]
+
+ Main contact method:
+ [% SWITCH primary_contact_method %]
+ [% CASE 'phone' %]
+ Primary phone
+ [% CASE 'phonepro' %]
+ Secondary phone
+ [% CASE 'mobile' %]
+ Other phone
+ [% CASE 'email' %]
+ Primary email
+ [% CASE 'emailpro' %]
+ Secondary email
+ [% CASE 'fax' %]
+ Fax
+ [% END %]
+
[% END %]
--