From 85e57793b02b57cf139c9c42a88da0f52f3f1cdc Mon Sep 17 00:00:00 2001 From: Jagadedes Date: Thu, 20 Nov 2014 15:50:05 +0530 Subject: [PATCH] 30849, 31461 colors in 2 columns and collapsible fieldset --- js/createwidget.js | 6 - templates/CRM/Wci/Form/CreateWidget.hlp | 19 +++ templates/CRM/Wci/Form/CreateWidget.tpl | 179 +++++++++++++++++++++--- 3 files changed, 182 insertions(+), 22 deletions(-) create mode 100644 templates/CRM/Wci/Form/CreateWidget.hlp diff --git a/js/createwidget.js b/js/createwidget.js index 85e728c..b5a1907 100644 --- a/js/createwidget.js +++ b/js/createwidget.js @@ -12,12 +12,6 @@ cj(function ( $ ) { } else { $('#embd_code').parents('.crm-section').hide(); } - - $('#image').after(''); - $('#logo_image').after(''); - $('#email_signup_group_id').after(""); - $('#size_variant').after(""); - $('#hide_border').after(""); } $(document).ready(setState) $('#override').click(setState); diff --git a/templates/CRM/Wci/Form/CreateWidget.hlp b/templates/CRM/Wci/Form/CreateWidget.hlp new file mode 100644 index 0000000..bae916b --- /dev/null +++ b/templates/CRM/Wci/Form/CreateWidget.hlp @@ -0,0 +1,19 @@ +{htxt id="hide-border"} +{ts}To get transparent background give none in the Background color field{/ts} +{/htxt} + +{htxt id="size_variant"} +{ts}Fixed width. Height depends on what contents selected.{/ts} +{/htxt} + +{htxt id="email_signup_group_id"} +{ts}Those groups that have 'Mailing List' selected are shown.{/ts} +{/htxt} + +{htxt id="logo_image"} +{ts}Select smaller image appropriate for logo{/ts} +{/htxt} + +{htxt id="image"} +{ts}Select a smaller image than Size variant{/ts} +{/htxt} diff --git a/templates/CRM/Wci/Form/CreateWidget.tpl b/templates/CRM/Wci/Form/CreateWidget.tpl index 137e1c3..47f0c6f 100644 --- a/templates/CRM/Wci/Form/CreateWidget.tpl +++ b/templates/CRM/Wci/Form/CreateWidget.tpl @@ -1,5 +1,5 @@ {* HEADER *} -
+
{include file="CRM/common/formButtons.tpl" location="top"}
@@ -27,23 +27,154 @@
{/if} - - {* FIELD EXAMPLE: OPTION 1 (AUTOMATIC LAYOUT) *} - {foreach from=$elementNames item=elementName} -
-
{$form.$elementName.label}
-
{$form.$elementName.html}
-
-
- {/foreach} - - {* FIELD EXAMPLE: OPTION 2 (MANUAL LAYOUT) +
+
{$form.title.label}
+
{$form.title.html}
+
+
+
+
{$form.logo_image.label}{help id="logo_image" file="CRM/Wci/Form/CreateWidget"}
+
{$form.logo_image.html}
+
+
+
+
{$form.image.label}{help id="image" file="CRM/Wci/Form/CreateWidget"}
+
{$form.image.html}
+
+
+
+
{$form.button_link_to.label}
+
{$form.button_link_to.html}
+
+
+
+
{$form.button_title.label}
+
{$form.button_title.html}
+
+
+
+
{$form.progress_bar.label}
+
{$form.progress_bar.html}
+
+
+
+
{$form.show_pb_perc.label}
+
{$form.show_pb_perc.html}
+
+
+
+
{$form.description.label}
+
{$form.description.html}
+
+
+
+
{$form.email_signup_group_id.label}{help id="email_signup_group_id" file="CRM/Wci/Form/CreateWidget"}
+
{$form.email_signup_group_id.html}
+
+
+
+
{$form.size_variant.label}{help id="size_variant" file="CRM/Wci/Form/CreateWidget"}
+
{$form.size_variant.html}
+
+
+ +
+
+ + + + + + + +
{$form.hide_title.label} {$form.hide_border.label}{help id="hide-border" file="CRM/Wci/Form/CreateWidget"} {$form.hide_pbcap.label}
{$form.hide_title.html} {$form.hide_border.html} {$form.hide_pbcap.html}
+
+
+ + + -
- {$form.favorite_color.label} - {$form.favorite_color.html} -
{* FOOTER *} @@ -51,3 +182,19 @@ {include file="CRM/common/formButtons.tpl" location="bottom"}
+ +{literal} + +{/literal} -- 2.25.1