From: Manoj K Date: Thu, 30 Oct 2014 10:47:27 +0000 (+0530) Subject: #29801 - Increased rows attribute for textarea in create widget. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2082fcdf468f5e6945ca4d53b27a0ea9ba45f83f;p=com.zyxware.civiwci.git #29801 - Increased rows attribute for textarea in create widget. --- 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} -