From 33c81951fc5514b8ccf47b25c0189822e932ff6e Mon Sep 17 00:00:00 2001 From: "B. Endres" Date: Fri, 15 Nov 2019 07:44:39 +0100 Subject: [PATCH] added help to twingle IDs --- CRM/Twingle/Form/Profile.php | 2 +- templates/CRM/Twingle/Form/Profile.hlp | 5 +++++ templates/CRM/Twingle/Form/Profile.tpl | 18 +++++++++++++++++- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/CRM/Twingle/Form/Profile.php b/CRM/Twingle/Form/Profile.php index 6d7adf2..59dee93 100644 --- a/CRM/Twingle/Form/Profile.php +++ b/CRM/Twingle/Form/Profile.php @@ -179,7 +179,7 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form { 'text', // field type 'selector', // field name E::ts('Project IDs'), // field label - array(), + ['class' => 'huge'], TRUE // is required ); diff --git a/templates/CRM/Twingle/Form/Profile.hlp b/templates/CRM/Twingle/Form/Profile.hlp index 2f564be..3e82883 100644 --- a/templates/CRM/Twingle/Form/Profile.hlp +++ b/templates/CRM/Twingle/Form/Profile.hlp @@ -16,6 +16,11 @@ {ts domain="de.systopia.twingle"}Select which location type to use for addresses for individuals, either when no organisation name is specified, or an organisation address can not be shared with the individual contact.{/ts} {/htxt} +{htxt id='id-project_ids'} + {ts domain="de.systopia.twingle"}Put your project's Twingle ID in here, to activate this profile for that project.{/ts} + {ts domain="de.systopia.twingle"}You can also provide multiple project IDs separated by a comma.{/ts} +{/htxt} + {htxt id='id-location_type_id_organisation'} {ts domain="de.systopia.twingle"}Select which location type to use for addresses for organisations and shared organisation addresses for individual contacts.{/ts} {/htxt} diff --git a/templates/CRM/Twingle/Form/Profile.tpl b/templates/CRM/Twingle/Form/Profile.tpl index 72c9716..05cd32e 100644 --- a/templates/CRM/Twingle/Form/Profile.tpl +++ b/templates/CRM/Twingle/Form/Profile.tpl @@ -28,7 +28,23 @@ - {$form.selector.label} + {$form.selector.label} + + {$form.selector.html}