Commit | Line | Data |
---|---|---|
4f895956 | 1 | {* HEADER *} |
8966f337 | 2 | <div class="crm-block crm-form-block"> |
4f895956 J |
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 | ||
17 | {* FIELD EXAMPLE: OPTION 2 (MANUAL LAYOUT) | |
18 | ||
19 | <div> | |
20 | <span>{$form.favorite_color.label}</span> | |
21 | <span>{$form.favorite_color.html}</span> | |
22 | </div> | |
23 | ||
24 | {* FOOTER *} | |
25 | <div class="crm-submit-buttons"> | |
26 | {include file="CRM/common/formButtons.tpl" location="bottom"} | |
27 | </div> | |
8966f337 | 28 | </div> |