From 88583b52e8394a4c038921bd0fda7e3b12cea8fe Mon Sep 17 00:00:00 2001 From: Jagadedes Date: Tue, 23 Sep 2014 16:33:26 +0530 Subject: [PATCH] #29750 progressbar.tpl --- templates/CRM/Wci/Form/ProgressBar.tpl | 27 ++++++++++++++++++++++++++ wci-helper-functions.php | 14 +++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 templates/CRM/Wci/Form/ProgressBar.tpl create mode 100644 wci-helper-functions.php diff --git a/templates/CRM/Wci/Form/ProgressBar.tpl b/templates/CRM/Wci/Form/ProgressBar.tpl new file mode 100644 index 0000000..c99bb1f --- /dev/null +++ b/templates/CRM/Wci/Form/ProgressBar.tpl @@ -0,0 +1,27 @@ +{* HEADER *} + +
+{include file="CRM/common/formButtons.tpl" location="top"} +
+ +{* 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.favorite_color.label} + {$form.favorite_color.html} +
+ +{* FOOTER *} +
+{include file="CRM/common/formButtons.tpl" location="bottom"} +
diff --git a/wci-helper-functions.php b/wci-helper-functions.php new file mode 100644 index 0000000..c38981b --- /dev/null +++ b/wci-helper-functions.php @@ -0,0 +1,14 @@ + ts('- select -'), + ); + + $result = civicrm_api3('contribution_page', 'get'); + foreach ($result['values'] as $contribution_page) { + $options[$contribution_page['id']] = $contribution_page['title']; + } + + return $options; + } -- 2.25.1