Commit | Line | Data |
---|---|---|
f5a3493f J |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
3 | | CiviCRM Widget Creation Interface (WCI) Version 1.0 | | |
4 | +--------------------------------------------------------------------+ | |
5 | | Copyright Zyxware Technologies (c) 2014 | | |
6 | +--------------------------------------------------------------------+ | |
7 | | This file is a part of CiviCRM WCI. | | |
8 | | | | |
9 | | CiviCRM WCI is free software; you can copy, modify, and distribute | | |
10 | | it under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007. | | |
12 | | | | |
13 | | CiviCRM WCI is distributed in the hope that it will be useful, | | |
14 | | but WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License along with this program; if not, contact Zyxware | | |
20 | | Technologies at info[AT]zyxware[DOT]com. | | |
21 | +--------------------------------------------------------------------+ | |
22 | *} | |
b3e303a2 J |
23 | {literal} |
24 | <style> | |
25 | .crm-wci-pb hr { | |
26 | align:center; | |
27 | display: block; height: 1px; | |
28 | border: 0; border-top: 1px; | |
29 | margin: 1em 0; padding: 0; | |
30 | } | |
31 | </style> | |
32 | {/literal} | |
88583b52 | 33 | {* HEADER *} |
4d4d53e3 M |
34 | <div class="crm-block crm-form-block"> |
35 | <div class="crm-submit-buttons"> | |
36 | {include file="CRM/common/formButtons.tpl" location="top"} | |
37 | </div> | |
88583b52 | 38 | |
4d4d53e3 | 39 | {* FIELD EXAMPLE: OPTION 1 (AUTOMATIC LAYOUT) *} |
88583b52 | 40 | |
4d4d53e3 M |
41 | {foreach from=$elementNames item=elementName} |
42 | <div class="crm-section"> | |
43 | <div class="label">{$form.$elementName.label}</div> | |
44 | <div class="content">{$form.$elementName.html}</div> | |
45 | <div class="clear"></div> | |
46 | </div> | |
47 | {/foreach} | |
88583b52 | 48 | |
4d4d53e3 | 49 | {* FIELD EXAMPLE: OPTION 2 (MANUAL LAYOUT) |
88583b52 | 50 | |
4d4d53e3 M |
51 | <div> |
52 | <span>{$form.favorite_color.label}</span> | |
53 | <span>{$form.favorite_color.html}</span> | |
54 | </div> | |
88583b52 | 55 | |
4d4d53e3 M |
56 | {* FOOTER *} |
57 | <div class="crm-submit-buttons"> | |
58 | {include file="CRM/common/formButtons.tpl" location="bottom"} | |
88583b52 | 59 | </div> |
88583b52 | 60 | </div> |