From bd4515a947ca0274c327403fa0bc826239d2b7c2 Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Wed, 10 Jul 2013 00:56:03 +0530 Subject: [PATCH] CRM-12965, UI improvements --- CRM/Badge/Form/Layout.php | 4 +-- templates/CRM/Badge/Form/Layout.tpl | 45 +++++++++++++---------------- 2 files changed, 22 insertions(+), 27 deletions(-) diff --git a/CRM/Badge/Form/Layout.php b/CRM/Badge/Form/Layout.php index 9bf2ed2361..d27c8814cd 100644 --- a/CRM/Badge/Form/Layout.php +++ b/CRM/Badge/Form/Layout.php @@ -98,9 +98,9 @@ class CRM_Badge_Form_Layout extends CRM_Admin_Form { $this->add('select', "barcode_alignment", ts('Alignment'), $textAlignment); $attributes = array('readonly'=> true); - $this->add('text', 'image_1', ts('Image 1'), + $this->add('text', 'image_1', ts('Image (top right)'), $attributes + CRM_Core_DAO::getAttribute('CRM_Core_DAO_PrintLabel', 'title')); - $this->add('text', 'image_2', ts('Image 2'), + $this->add('text', 'image_2', ts('Image (top left)'), $attributes + CRM_Core_DAO::getAttribute('CRM_Core_DAO_PrintLabel', 'title')); $this->add('checkbox', 'is_default', ts('Default?')); diff --git a/templates/CRM/Badge/Form/Layout.tpl b/templates/CRM/Badge/Form/Layout.tpl index bf698efb38..26cd069ca5 100644 --- a/templates/CRM/Badge/Form/Layout.tpl +++ b/templates/CRM/Badge/Form/Layout.tpl @@ -46,6 +46,26 @@ {$form.description.label} {$form.description.html} + + {$form.image_1.label} + + {$form.image_1.html} + + ({ts}clear{/ts}) + +
{ts}Click above and select a file double clicking on it.{/ts} + + + + {$form.image_2.label} + + {$form.image_2.html} + + ({ts}clear{/ts}) + +
{ts}Click above and select a file double clicking on it.{/ts} + + {ts}Elements{/ts} @@ -70,31 +90,6 @@ - - - - - - - {$form.image_1.label} - - {$form.image_1.html} - - ({ts}clear{/ts}) - -
{ts}Click above and select a file double clicking on it. This image will displayed on top left{/ts} - - - - {$form.image_2.label} - - {$form.image_2.html} - - ({ts}clear{/ts}) - -
{ts}Click above and select a file double clicking on it. This image will displayed on top right{/ts} - - {$form.add_barcode.label} {$form.add_barcode.html}   {ts}on{/ts}   {$form.barcode_alignment.html} -- 2.25.1