X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=templates%2FCRM%2FCustom%2FForm%2FField.tpl;h=0bca2ed44828539ef3a610623c27aeecc3e1aee4;hb=13d15c87c242fe79f4441f07ea1b37085e5f92f9;hp=aeb56d695bc6e5c3844c278eb5e69842a258806d;hpb=95c42d8be0834773e0b606a1c79471f4733060ab;p=civicrm-core.git
diff --git a/templates/CRM/Custom/Form/Field.tpl b/templates/CRM/Custom/Form/Field.tpl
index aeb56d695b..0bca2ed448 100644
--- a/templates/CRM/Custom/Form/Field.tpl
+++ b/templates/CRM/Custom/Form/Field.tpl
@@ -99,6 +99,7 @@
{$form.weight.label} |
{$form.weight.html|crmAddClass:two}
{if $action neq 4}
+
{ts}Weight controls the order in which fields are displayed in a group. Enter a positive or negative integer - lower numbers are displayed ahead of higher numbers.{/ts}
{/if}
|
@@ -119,6 +120,7 @@
{$form.help_post.label} {if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_custom_field' field='help_post' id=$id}{/if} |
{$form.help_post.html|crmAddClass:huge}
{if $action neq 4}
+
{ts}Explanatory text displayed on back-end forms. Pre help is displayed inline on the form (above the field). Post help is displayed in a pop-up - users click the help balloon to view help text.{/ts}
{/if}
|
@@ -150,7 +152,10 @@
{$form.is_view.label} |
{$form.is_view.html}
- {ts}Is this field set by PHP code (via a custom hook). This field will not be updated by CiviCRM.{/ts}
+ {if $action neq 4}
+
+ {ts}Is this field set by PHP code (via a custom hook). This field will not be updated by CiviCRM.{/ts}
+ {/if}
|
@@ -277,7 +282,7 @@
$("#noteColumns, #noteRows, #noteLength", $form).toggle(dataType === 'Memo');
- $(".crm-custom-field-form-block-serialize", $form).toggle(htmlType === 'Select');
+ $(".crm-custom-field-form-block-serialize", $form).toggle(htmlType === 'Select' || htmlType === 'Autocomplete-Select');
}
function makeDefaultValueField(dataType) {
@@ -308,7 +313,7 @@
$form.submit(function() {
var htmlType = $('#html_type', $form).val(),
serialize = $("#serialize", $form).is(':checked'),
- htmlTypeLabel = (serialize && htmlType === 'Select') ? ts('Multi-Select') : _.find(htmlTypes, {key: htmlType}).value;
+ htmlTypeLabel = (serialize && _.includes(['Select', 'Autocomplete-Select'], htmlType)) ? ts('Multi-Select') : _.find(htmlTypes, {key: htmlType}).value;
if (originalHtmlType && (originalHtmlType !== htmlType || originalSerialize !== serialize)) {
var origHtmlTypeLabel = (originalSerialize && originalHtmlType === 'Select') ? ts('Multi-Select') : _.find(htmlTypes, {key: originalHtmlType}).value;
if (originalSerialize && !serialize && existingMultiValueCount) {