From 8367d0c52b10bf108b4943620cbcb3fd4a90fe0d Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Wed, 10 Jul 2013 00:32:49 +0530 Subject: [PATCH] CRM-12965, moved help below text input --- CRM/Badge/Form/Layout.php | 11 +++++------ templates/CRM/Badge/Form/Layout.tpl | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/CRM/Badge/Form/Layout.php b/CRM/Badge/Form/Layout.php index 240fde3703..9bf2ed2361 100644 --- a/CRM/Badge/Form/Layout.php +++ b/CRM/Badge/Form/Layout.php @@ -97,12 +97,11 @@ class CRM_Badge_Form_Layout extends CRM_Admin_Form { unset($textAlignment['J']); $this->add('select', "barcode_alignment", ts('Alignment'), $textAlignment); - $attributes = array( - 'readonly'=> true, - 'value' => ts('click here and select a file double clicking on it'), - ); - $this->add('text', 'image_1', ts('Image 1'), $attributes + CRM_Core_DAO::getAttribute('CRM_Core_DAO_PrintLabel', 'title')); - $this->add('text', 'image_2', ts('Image 2'), $attributes + CRM_Core_DAO::getAttribute('CRM_Core_DAO_PrintLabel', 'title')); + $attributes = array('readonly'=> true); + $this->add('text', 'image_1', ts('Image 1'), + $attributes + CRM_Core_DAO::getAttribute('CRM_Core_DAO_PrintLabel', 'title')); + $this->add('text', 'image_2', ts('Image 2'), + $attributes + CRM_Core_DAO::getAttribute('CRM_Core_DAO_PrintLabel', 'title')); $this->add('checkbox', 'is_default', ts('Default?')); $this->add('checkbox', 'is_active', ts('Enabled?')); diff --git a/templates/CRM/Badge/Form/Layout.tpl b/templates/CRM/Badge/Form/Layout.tpl index ac38646e08..bf698efb38 100644 --- a/templates/CRM/Badge/Form/Layout.tpl +++ b/templates/CRM/Badge/Form/Layout.tpl @@ -82,7 +82,7 @@ ({ts}clear{/ts}) -
{ts}This image will displayed on top left{/ts} +
{ts}Click above and select a file double clicking on it. This image will displayed on top left{/ts} @@ -92,7 +92,7 @@ ({ts}clear{/ts}) -
{ts}This image will displayed on top right{/ts} +
{ts}Click above and select a file double clicking on it. This image will displayed on top right{/ts} -- 2.25.1