added help to twingle IDs

This commit is contained in:
B. Endres 2019-11-15 07:44:39 +01:00
parent d12094aa52
commit 33c81951fc
3 changed files with 23 additions and 2 deletions

View file

@ -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
);

View file

@ -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}

View file

@ -28,7 +28,23 @@
</tr>
<tr class="crm-section">
<td class="label">{$form.selector.label}</td>
<td class="label">{$form.selector.label}
<a
onclick='
CRM.help(
"{ts domain="de.systopia.twingle"}Project IDs{/ts}",
{literal}{
"id": "id-project_ids",
"file": "CRM\/Twingle\/Form\/Profile"
}{/literal}
);
return false;
'
href="#"
title="{ts domain="de.systopia.twingle"}Help{/ts}"
class="helpicon"
></a>
</td>
<td class="content">{$form.selector.html}</td>
</tr>