Add custom fields help text
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 18 Jan 2020 19:12:43 +0000 (14:12 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 23 Jan 2020 00:42:36 +0000 (19:42 -0500)
src/Module/Settings/Profile/Index.php
view/templates/settings/profile/index.tpl
view/theme/frio/templates/settings/profile/index.tpl
view/theme/vier/templates/settings/profile/index.tpl

index d719afeacf57617b79b978c3771567eddd7bf61c..ea3df3ca2272b4d6e0db44ce3f38f935bcb38082 100644 (file)
@@ -177,8 +177,8 @@ class Index extends BaseSettingsModule
                                'id' => $profileField->id,
                                'legend' => $profileField->label,
                                'fields' => [
-                                       'label' => ['profile_field[' . $profileField->id . '][label]', DI::l10n()->t('Label:'), $profileField->label, DI::l10n()->t('Empty the label to delete this profile field')],
-                                       'value' => ['profile_field[' . $profileField->id . '][value]', DI::l10n()->t('Value:'), $profileField->value, DI::l10n()->t('BBCodes allowed')],
+                                       'label' => ['profile_field[' . $profileField->id . '][label]', DI::l10n()->t('Label:'), $profileField->label],
+                                       'value' => ['profile_field[' . $profileField->id . '][value]', DI::l10n()->t('Value:'), $profileField->value],
                                        'acl' => ACL::getFullSelectorHTML(
                                                DI::page(),
                                                $a->user,
@@ -198,7 +198,7 @@ class Index extends BaseSettingsModule
                        'legend' => DI::l10n()->t('Add a new profile field'),
                        'fields' => [
                                'label' => ['profile_field[new][label]', DI::l10n()->t('Label:')],
-                               'value' => ['profile_field[new][value]', DI::l10n()->t('Value:'), '', DI::l10n()->t('BBCodes allowed')],
+                               'value' => ['profile_field[new][value]', DI::l10n()->t('Value:')],
                                'acl' => ACL::getFullSelectorHTML(
                                        DI::page(),
                                        $a->user,
@@ -272,6 +272,13 @@ class Index extends BaseSettingsModule
                        '$homepage' => ['homepage', DI::l10n()->t('Homepage URL:'), $profile['homepage']],
                        '$pub_keywords' => ['pub_keywords', DI::l10n()->t('Public Keywords:'), $profile['pub_keywords'], DI::l10n()->t('(Used for suggesting potential friends, can be seen by others)')],
                        '$prv_keywords' => ['prv_keywords', DI::l10n()->t('Private Keywords:'), $profile['prv_keywords'], DI::l10n()->t('(Used for searching profiles, never shown to others)')],
+                       '$custom_fields_description' => DI::l10n()->t("<p>Custom fields appear on <a href=\"%s\">your profile page</a>.</p>
+                               <p>You can use BBCodes in the field values.</p>
+                               <p>Reorder by dragging the field title.</p>
+                               <p>Empty the label field to remove a custom field.</p>
+                               <p>Non-public fields can only be seen by the selected Friendica contacts or the Friendica contacts in the selected groups.</p>",
+                               'profile/' . $a->user['nickname']
+                       ),
                        '$custom_fields' => $custom_fields,
                ]);
 
index 70db8a3d4b1965294414d4e2ab3482f622f83de3..bf98bb158717231a333d713d6006945393dd0321 100644 (file)
@@ -98,7 +98,7 @@
                <div class="profile-edit-submit-end"></div>
 
                <h3>{{$lbl_custom_fields_section}}</h3>
-
+               {{$custom_fields_description nofilter}}
                <div id="profile-custom-fields">
                {{foreach $custom_fields as $custom_field}}
                        {{include file="settings/profile/field/edit.tpl" profile_field=$custom_field}}
index 7afe11996ea6077d8c4474bf871069e9f1c67a56..4d7cf8d70e0ce65f247a421a82895e0e79168a72 100644 (file)
                                </div>
                                <div id="custom-fields-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="custom-fields">
                                        <div class="section-content-tools-wrapper">
+                                               {{$custom_fields_description nofilter}}
                                                <div id="profile-custom-fields">
                                                {{foreach $custom_fields as $custom_field}}
                                                        {{include file="settings/profile/field/edit.tpl" profile_field=$custom_field}}
index 8ca6e0f885a7d43e05dd5f9900f374c0c7caa7de..eab7c2c4a484e842225ed9d46e7c12bea3336095 100644 (file)
                <div class="toggle-section js-toggle-section">
                        <a class="section-caption js-section-toggler" href="javascript:;">{{$lbl_custom_fields_section}} &raquo;</a>
                        <div class="js-section toggle-section-content hidden">
+                               {{$custom_fields_description nofilter}}
                                <div id="profile-custom-fields">
                                {{foreach $custom_fields as $custom_field}}
                                        {{include file="settings/profile/field/edit.tpl" profile_field=$custom_field}}