Merge pull request #17246 from agh1/review-contrib
[civicrm-core.git] / templates / CRM / Core / Form / ShortCode.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 |
8 +--------------------------------------------------------------------+
9 *}
10 <div class="help">
11 {ts}Can't find your form? Make sure it is active.{/ts}
12 </div>
13
14 <div class="crm-field-wrapper">
15 <span class="shortcode-param">{$form.component.html}</span>&nbsp;&nbsp;
16 <span class="shortcode-param" data-components='{$selects|@json_encode}'>{$form.entity.html}</span>
17 </div>
18
19 {foreach from=$options key='item' item='option'}
20 <div class="crm-field-wrapper shortcode-param" data-components='{$option.components|@json_encode}'>
21 {if $form.$item.label}
22 <p>{$form.$item.label}</p>
23 {/if}
24 {$form.$item.html}
25 </div>
26
27 {/foreach}
28
29 {* Hack to prevent WP toolbars from popping up above the dialog *}
30 {literal}<style type="text/css">
31 #wpadminbar,
32 .wp-editor-expand #wp-content-editor-tools,
33 .wp-editor-expand div.mce-toolbar-grp {
34 z-index: 100 !important;
35 }
36 </style>{/literal}