From 84750be3653bb07112399dd3d9e63a7b83a8cd09 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 8 Nov 2017 18:12:51 +0000 Subject: [PATCH] Bug 11879: (follow-up) Streamline markup and make label corrections This patch makes minor markup corrections to the patron detail page template: - 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 Signed-off-by: Lucie Gay Signed-off-by: Katrin Fischer --- .../prog/en/modules/members/moremember.tt | 31 +++++++++++++--------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index bcd06fb..6262628 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -266,19 +266,24 @@ [% 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 %] [% # /div.rows %] -- 2.7.4