projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4509 from colemanw/addVars
[civicrm-core.git]
/
templates
/
CRM
/
UF
/
Form
/
Field.tpl
diff --git
a/templates/CRM/UF/Form/Field.tpl
b/templates/CRM/UF/Form/Field.tpl
index 5863edb675b2029e2bfd5098927a9d5793f0e1c4..2b0f5dc0c4c3011a7f91c6effdf8404bbd473195 100644
(file)
--- a/
templates/CRM/UF/Form/Field.tpl
+++ b/
templates/CRM/UF/Form/Field.tpl
@@
-23,7
+23,6
@@
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
-<h3>{if $action eq 8}{ts}Delete Field{/ts} - {$fieldTitle}{elseif $action eq 1}{ts}Add Field{/ts}{elseif $action eq 2}{ts}Edit Field{/ts} - {$fieldTitle}{/if}</h3>
<div class="crm-block crm-form-block crm-uf-field-form-block">
{if $action eq 8}
<div class="messages status no-popup">
<div class="crm-block crm-form-block crm-uf-field-form-block">
{if $action eq 8}
<div class="messages status no-popup">
@@
-34,7
+33,7
@@
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-uf-field-form-block-field_name">
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout-compressed">
<tr class="crm-uf-field-form-block-field_name">
- <td class="label">{$form.field_name.label}</td>
+ <td class="label">{$form.field_name.label}
{help id='field_name_0'}
</td>
<td>{$form.field_name.html}<br />
<span class="description"> {ts}Select the type of CiviCRM record and the field you want to include in this Profile.{/ts}</span></td>
</tr>
<td>{$form.field_name.html}<br />
<span class="description"> {ts}Select the type of CiviCRM record and the field you want to include in this Profile.{/ts}</span></td>
</tr>
@@
-91,12
+90,9
@@
{literal}
<script type="text/javascript">
{literal}
<script type="text/javascript">
-var otherModule = new Array( );
-{/literal}{foreach from=$otherModules item="mval" key="mkey"}{literal}
-otherModule[{/literal}{$mkey}{literal}] = '{/literal}{$mval}{literal}';
-{/literal}{/foreach}{literal}
CRM.$(function($) {
CRM.$(function($) {
+ var otherModule = {/literal}{$otherModules|@json_encode}{literal};
if ( $.inArray( "Profile", otherModule ) > -1 && $.inArray( "Search Profile", otherModule ) == -1 ){
$('#profile_visibility').show();
}
if ( $.inArray( "Profile", otherModule ) > -1 && $.inArray( "Search Profile", otherModule ) == -1 ){
$('#profile_visibility').show();
}
@@
-306,6
+302,3
@@
function verify( ) {
</script>
{/literal}
</script>
{/literal}
-
-{* include jscript to warn if unsaved form field changes *}
-{include file="CRM/common/formNavigate.tpl"}