Merge pull request #14484 from seamuslee001/l18n_improved_schema
[civicrm-core.git] / templates / CRM / UF / Form / Group.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2019 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | 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 and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 *}
26 {* add/update/view CiviCRM Profile *}
27 {if $action eq 8}
28 <h3> {ts}Delete CiviCRM Profile{/ts} - {$profileTitle}</h3>
29 {/if}
30 <div class=" crm-block crm-form-block crm-uf_group-form-block">
31 {* CRM-13693 Duplicate Delete button *}
32 {if $action neq 8}
33 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
34 {/if}
35 {if ($action eq 2 or $action eq 4) and $snippet neq 'json' } {* Update or View*}
36 <div class="action-link">
37 <a href="{crmURL p='civicrm/admin/uf/group/field' q="action=browse&reset=1&gid=$gid"}" class="button"><span>{ts}View or Edit Fields for this Profile{/ts}</a></span>
38 <div class="clear"></div>
39 </div>
40 {/if}
41
42 {if $action eq 8 or $action eq 64}
43 <div class="messages status no-popup">
44 <div class="icon inform-icon"></div>
45 {$message}
46 </div>
47 {else}
48 <table class="form-layout">
49 {foreach from=$entityFields item=fieldSpec}
50 {if not in_array($fieldSpec.name, $advancedFieldsConverted)}
51 {assign var=fieldName value=$fieldSpec.name}
52 <tr class="crm-{$entityInClassFormat}-form-block-{$fieldName}">
53 {include file="CRM/Core/Form/Field.tpl"}
54 </tr>
55 {/if}
56 {/foreach}
57 <tr class="crm-uf_group-form-block-weight" >
58 <td class="label">{$form.weight.label}{if $config->userSystem->is_drupal EQ '1'} {help id='id-profile_weight' file="CRM/UF/Form/Group.hlp"}{/if}</td>
59 <td class="html-adjust">{$form.weight.html}</td>
60 </tr>
61 <tr class="crm-uf_group-form-block-help_pre" >
62 <td class="label">{$form.help_pre.label} {help id='id-help_pre' file="CRM/UF/Form/Group.hlp"} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_uf_group' field='help_pre' id=$gid}{/if}</td>
63 <td class="html-adjust">{$form.help_pre.html}</td>
64 </tr>
65 <tr class="crm-uf_group-form-block-help_post" >
66 <td class="label">{$form.help_post.label} {help id='id-help_post' file="CRM/UF/Form/Group.hlp"} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_uf_group' field='help_post' id=$gid}{/if}</td>
67 <td class="html-adjust">{$form.help_post.html}</td>
68 </tr>
69 <tr class="crm-uf_group-form-block-is_active" >
70 <td class="label"></td><td class="html-adjust">{$form.is_active.html} {$form.is_active.label}</td>
71 </tr>
72 </table>
73 {* adding advance setting tab *}
74 {include file='CRM/UF/Form/AdvanceSetting.tpl'}
75 {/if}
76
77 <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
78 </div>
79 {include file="CRM/common/showHide.tpl"}