From 900bd778b6c2d9c750adf52e88fe3ce628398386 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 --- .../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 c41d167..c36a45e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -178,19 +178,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 %] -- 2.7.4