From f5a3493f9f79008a98013e7a685d64e9c2ac4454 Mon Sep 17 00:00:00 2001 From: Jagadedes Date: Fri, 21 Nov 2014 17:39:56 +0530 Subject: [PATCH] 31499 added tips for user --- templates/CRM/Wci/Form/CreateWidget.hlp | 30 ++++++++++ templates/CRM/Wci/Form/CreateWidget.tpl | 38 ++++++++++--- templates/CRM/Wci/Form/NewEmbedCode.tpl | 26 ++++++++- templates/CRM/Wci/Form/ProgressBar.tpl | 22 ++++++++ templates/CRM/Wci/Form/WCISettings.tpl | 22 ++++++++ templates/CRM/Wci/Page/ManageEmbedCode.tpl | 45 ++++++++------- templates/CRM/Wci/Page/ProgressBarList.tpl | 66 ++++++++-------------- templates/CRM/Wci/Page/WidgetList.tpl | 45 +++++++-------- templates/CRM/Wci/Page/wciwidget.tpl | 36 +++++++++--- 9 files changed, 225 insertions(+), 105 deletions(-) diff --git a/templates/CRM/Wci/Form/CreateWidget.hlp b/templates/CRM/Wci/Form/CreateWidget.hlp index bae916b..aaac13f 100644 --- a/templates/CRM/Wci/Form/CreateWidget.hlp +++ b/templates/CRM/Wci/Form/CreateWidget.hlp @@ -1,3 +1,25 @@ +{* + +--------------------------------------------------------------------+ + | CiviCRM Widget Creation Interface (WCI) Version 1.0 | + +--------------------------------------------------------------------+ + | Copyright Zyxware Technologies (c) 2014 | + +--------------------------------------------------------------------+ + | This file is a part of CiviCRM WCI. | + | | + | CiviCRM WCI is free software; you can copy, modify, and distribute | + | it under the terms of the GNU Affero General Public License | + | Version 3, 19 November 2007. | + | | + | CiviCRM WCI is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | + | See the GNU Affero General Public License for more details. | + | | + | You should have received a copy of the GNU Affero General Public | + | License along with this program; if not, contact Zyxware | + | Technologies at info[AT]zyxware[DOT]com. | + +--------------------------------------------------------------------+ +*} {htxt id="hide-border"} {ts}To get transparent background give none in the Background color field{/ts} {/htxt} @@ -17,3 +39,11 @@ {htxt id="image"} {ts}Select a smaller image than Size variant{/ts} {/htxt} + +{htxt id="preview"} +{ts}To embed widget on a page, create an embed code and associate it with the widget.{/ts} +{/htxt} + +{htxt id="add-new-pb"} +{ts}If no progressbars availavle, create one.{/ts} +{/htxt} diff --git a/templates/CRM/Wci/Form/CreateWidget.tpl b/templates/CRM/Wci/Form/CreateWidget.tpl index 1296eab..3cccadd 100644 --- a/templates/CRM/Wci/Form/CreateWidget.tpl +++ b/templates/CRM/Wci/Form/CreateWidget.tpl @@ -1,3 +1,25 @@ +{* + +--------------------------------------------------------------------+ + | CiviCRM Widget Creation Interface (WCI) Version 1.0 | + +--------------------------------------------------------------------+ + | Copyright Zyxware Technologies (c) 2014 | + +--------------------------------------------------------------------+ + | This file is a part of CiviCRM WCI. | + | | + | CiviCRM WCI is free software; you can copy, modify, and distribute | + | it under the terms of the GNU Affero General Public License | + | Version 3, 19 November 2007. | + | | + | CiviCRM WCI is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | + | See the GNU Affero General Public License for more details. | + | | + | You should have received a copy of the GNU Affero General Public | + | License along with this program; if not, contact Zyxware | + | Technologies at info[AT]zyxware[DOT]com. | + +--------------------------------------------------------------------+ +*} {* HEADER *}
@@ -5,7 +27,7 @@
{if $form.title.value != ""} - {php} + {php} if(isset($_REQUEST['id'])) { $widget_controller_path = getWciWidgetControllerPath(); $extension_root_path = getExtensionRootPath(); @@ -21,7 +43,7 @@ Click Save & Preview to save any changes to your settings, and preview the widget again on this page.
-
+
{help id="preview" file="CRM/Wci/Form/CreateWidget"}
@@ -32,12 +54,12 @@
{$form.title.label}
{$form.title.html}
- +
{$form.logo_image.label}
{$form.logo_image.html} {help id="logo_image" file="CRM/Wci/Form/CreateWidget"}
-
+
{$form.image.label}
{$form.image.html} {help id="image" file="CRM/Wci/Form/CreateWidget"}
@@ -55,7 +77,7 @@
{$form.progress_bar.label}
-
{$form.progress_bar.html}
+
{$form.progress_bar.html}{help id="add-new-pb" file="CRM/Wci/Form/CreateWidget"}
@@ -92,16 +114,16 @@ - + - + - +
{$form.hide_title.html}{$form.hide_title.label}{$form.hide_title.label}
{$form.hide_border.html} {$form.hide_border.label} {help id="hide-border" file="CRM/Wci/Form/CreateWidget"}
{$form.hide_pbcap.html} {$form.hide_pbcap.label}
diff --git a/templates/CRM/Wci/Form/NewEmbedCode.tpl b/templates/CRM/Wci/Form/NewEmbedCode.tpl index 1269a31..68172c7 100644 --- a/templates/CRM/Wci/Form/NewEmbedCode.tpl +++ b/templates/CRM/Wci/Form/NewEmbedCode.tpl @@ -1,3 +1,25 @@ +{* + +--------------------------------------------------------------------+ + | CiviCRM Widget Creation Interface (WCI) Version 1.0 | + +--------------------------------------------------------------------+ + | Copyright Zyxware Technologies (c) 2014 | + +--------------------------------------------------------------------+ + | This file is a part of CiviCRM WCI. | + | | + | CiviCRM WCI is free software; you can copy, modify, and distribute | + | it under the terms of the GNU Affero General Public License | + | Version 3, 19 November 2007. | + | | + | CiviCRM WCI is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | + | See the GNU Affero General Public License for more details. | + | | + | You should have received a copy of the GNU Affero General Public | + | License along with this program; if not, contact Zyxware | + | Technologies at info[AT]zyxware[DOT]com. | + +--------------------------------------------------------------------+ +*} {* HEADER *}
@@ -14,7 +36,7 @@
{/foreach} {if $form.title.value != ""} - {php} + {php} if(isset($_REQUEST['id'])) { $emb_id = $_REQUEST['id']; $wid_id = CRM_Wci_BAO_EmbedCode::getWidgetId($emb_id); @@ -39,7 +61,7 @@
Add this widget to any web page by copying and pasting the code below.
-
diff --git a/templates/CRM/Wci/Form/ProgressBar.tpl b/templates/CRM/Wci/Form/ProgressBar.tpl index ae6889d..e613158 100644 --- a/templates/CRM/Wci/Form/ProgressBar.tpl +++ b/templates/CRM/Wci/Form/ProgressBar.tpl @@ -1,3 +1,25 @@ +{* + +--------------------------------------------------------------------+ + | CiviCRM Widget Creation Interface (WCI) Version 1.0 | + +--------------------------------------------------------------------+ + | Copyright Zyxware Technologies (c) 2014 | + +--------------------------------------------------------------------+ + | This file is a part of CiviCRM WCI. | + | | + | CiviCRM WCI is free software; you can copy, modify, and distribute | + | it under the terms of the GNU Affero General Public License | + | Version 3, 19 November 2007. | + | | + | CiviCRM WCI is distributed in the hope that it will be useful, | + | but WITHOUT ANY WARRANTY; without even the implied warranty of | + | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | + | See the GNU Affero General Public License for more details. | + | | + | You should have received a copy of the GNU Affero General Public | + | License along with this program; if not, contact Zyxware | + | Technologies at info[AT]zyxware[DOT]com. | + +--------------------------------------------------------------------+ +*} {literal} {/literal} -{/if} +{/if} {if (1 == $wciform.hide_border)}
@@ -240,11 +262,11 @@ {/if}
{$wciform.description} -
+
{if $wciform.button_title && $cpageId} -
+ {if $wciform.email_signup_group_id} -- 2.25.1