From 2082fcdf468f5e6945ca4d53b27a0ea9ba45f83f Mon Sep 17 00:00:00 2001 From: Manoj K Date: Thu, 30 Oct 2014 16:17:27 +0530 Subject: [PATCH] #29801 - Increased rows attribute for textarea in create widget. --- CRM/Wci/Form/CreateWidget.php | 4 ++-- extern/wciwidget.php | 1 + templates/CRM/Wci/Form/CreateWidget.tpl | 6 +++--- templates/CRM/Wci/Page/wciwidget.tpl | 21 ++++++++++++++------- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/CRM/Wci/Form/CreateWidget.php b/CRM/Wci/Form/CreateWidget.php index f28ccb6..51f9dc1 100644 --- a/CRM/Wci/Form/CreateWidget.php +++ b/CRM/Wci/Form/CreateWidget.php @@ -103,9 +103,9 @@ class CRM_Wci_Form_CreateWidget extends CRM_Core_Form { $val[2] ); } - $this->add('textarea', 'style_rules', ts('Additional Style Rules')); + $this->add('textarea', 'style_rules', ts('Additional Style Rules'))->setRows(5); $this->add('checkbox', 'override', ts('Override default template')); - $this->add('textarea', 'custom_template', ts('Custom template:
Please customize the smarty v2 template only if you know what you are doing')); + $this->add('textarea', 'custom_template', ts('Custom template:
Please customize the smarty v2 template only if you know what you are doing'))->setRows(10); $this->addElement('submit','preview','name="Save and Preview" id="preview"'); $this->addButtons(array( diff --git a/extern/wciwidget.php b/extern/wciwidget.php index 3e0d2e5..f053365 100644 --- a/extern/wciwidget.php +++ b/extern/wciwidget.php @@ -56,6 +56,7 @@ if (isset($format)) { $template->assign('wciform', $data); $template->assign('cpageId', $data['button_link_to']); + $template->assign('embed', $embed); if ($data["override"] == '0') { $template->template_dir[] = getWciWidgetTemplatePath(); diff --git a/templates/CRM/Wci/Form/CreateWidget.tpl b/templates/CRM/Wci/Form/CreateWidget.tpl index c91646c..b493e8f 100644 --- a/templates/CRM/Wci/Form/CreateWidget.tpl +++ b/templates/CRM/Wci/Form/CreateWidget.tpl @@ -38,8 +38,8 @@
{literal} -