Commit | Line | Data |
---|---|---|
60488185 M |
1 | {* HEADER *} |
2 | ||
3 | <div class="crm-submit-buttons"> | |
4 | {include file="CRM/common/formButtons.tpl" location="top"} | |
5 | </div> | |
6 | ||
7 | {* FIELD EXAMPLE: OPTION 1 (AUTOMATIC LAYOUT) *} | |
8 | ||
9 | {foreach from=$elementNames item=elementName} | |
10 | <div class="crm-section"> | |
11 | <div class="label">{$form.$elementName.label}</div> | |
12 | <div class="content">{$form.$elementName.html}</div> | |
13 | <div class="clear"></div> | |
14 | </div> | |
15 | {/foreach} | |
16 | ||
7d8ac5b7 J |
17 | {if $form.title.value != ""} |
18 | {php} | |
19 | if(isset($_REQUEST['id'])) { | |
20 | $wid_id = $_REQUEST['id']; | |
21 | $data = CRM_Wci_BAO_Widget::getWidgetData($wid_id); | |
22 | $template = CRM_Core_Smarty::singleton(); | |
23 | $template->assign('wciform', $data); | |
c68d158b | 24 | $template->template_dir[] = getWciWidgetTemplatePath(); |
7d8ac5b7 J |
25 | $wcidata = $template->fetch('wciwidget.tpl'); |
26 | } | |
27 | {/php} | |
28 | ||
29 | <div class="crm-section"> | |
30 | <div class="content"> | |
31 | {include file="CRM/Wci/Page/wciwidget.tpl"} | |
32 | </div> | |
33 | </div> | |
34 | {/if} | |
35 | ||
60488185 M |
36 | {* FIELD EXAMPLE: OPTION 2 (MANUAL LAYOUT) |
37 | ||
38 | <div> | |
39 | <span>{$form.favorite_color.label}</span> | |
40 | <span>{$form.favorite_color.html}</span> | |
41 | </div> | |
42 | ||
43 | {* FOOTER *} | |
7d8ac5b7 | 44 | |
60488185 M |
45 | <div class="crm-submit-buttons"> |
46 | {include file="CRM/common/formButtons.tpl" location="bottom"} | |
47 | </div> | |
7d8ac5b7 | 48 |