Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {capture assign=infoTitle}{ts}Preview Mode{/ts}{/capture} | |
11 | {assign var="infoType" value="info"} | |
12 | {if $preview_type eq 'group'} | |
13 | {capture assign=infoMessage}{ts}Showing price set as it will be displayed within a form.{/ts}{/capture} | |
14 | {else} | |
15 | {capture assign=infoMessage}{ts}Showing field as it will be displayed in a form.{/ts}{/capture} | |
16 | {/if} | |
17 | {include file="CRM/common/info.tpl"} | |
18 | <div class="crm-block crm-form-block crm-price-set-preview-block"> | |
19 | {strip} | |
20 | {foreach from=$groupTree item=priceSet key=group_id} | |
21 | <fieldset> | |
22 | {if $preview_type eq 'group'}<legend>{$setTitle}</legend>{/if} | |
23 | {include file="CRM/Price/Form/PriceSet.tpl"} | |
24 | </fieldset> | |
25 | {/foreach} | |
26 | {/strip} | |
27 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
28 | </div> |