add profile settings for note mapping
This commit is contained in:
parent
670984854f
commit
10f6ca4e89
4 changed files with 84 additions and 1 deletions
|
@ -498,6 +498,31 @@ class CRM_Twingle_Form_Profile extends CRM_Core_Form {
|
||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$this->add(
|
||||||
|
'select',
|
||||||
|
'map_as_contribution_notes',
|
||||||
|
E::ts('Create contribution notes for'),
|
||||||
|
[
|
||||||
|
'purpose' => E::ts('Purpose'),
|
||||||
|
'remarks' => E::ts('Remarks'),
|
||||||
|
],
|
||||||
|
// is not required
|
||||||
|
FALSE,
|
||||||
|
['class' => 'crm-select2 huge', 'multiple' => 'multiple']
|
||||||
|
);
|
||||||
|
|
||||||
|
$this->add(
|
||||||
|
'select',
|
||||||
|
'map_as_contact_notes',
|
||||||
|
E::ts('Create contact notes for'),
|
||||||
|
[
|
||||||
|
'user_extrafield' => E::ts('User Extra Field'),
|
||||||
|
],
|
||||||
|
// is not required
|
||||||
|
FALSE,
|
||||||
|
['class' => 'crm-select2 huge', 'multiple' => 'multiple']
|
||||||
|
);
|
||||||
|
|
||||||
$this->addButtons([
|
$this->addButtons([
|
||||||
[
|
[
|
||||||
'type' => 'submit',
|
'type' => 'submit',
|
||||||
|
|
|
@ -527,6 +527,8 @@ class CRM_Twingle_Profile {
|
||||||
'membership_postprocess_call' => ['required' => FALSE],
|
'membership_postprocess_call' => ['required' => FALSE],
|
||||||
'newsletter_double_opt_in' => ['required' => FALSE],
|
'newsletter_double_opt_in' => ['required' => FALSE],
|
||||||
'required_address_components' => ['required' => FALSE],
|
'required_address_components' => ['required' => FALSE],
|
||||||
|
'map_as_contribution_notes' => ['required' => FALSE],
|
||||||
|
'map_as_contact_notes' => ['required' => FALSE],
|
||||||
],
|
],
|
||||||
// Add payment methods.
|
// Add payment methods.
|
||||||
array_combine(
|
array_combine(
|
||||||
|
@ -643,6 +645,8 @@ class CRM_Twingle_Profile {
|
||||||
'city',
|
'city',
|
||||||
'country',
|
'country',
|
||||||
],
|
],
|
||||||
|
'map_as_contribution_notes' => [],
|
||||||
|
'map_as_contact_notes' => [],
|
||||||
]
|
]
|
||||||
// Add contribution status for all payment methods.
|
// Add contribution status for all payment methods.
|
||||||
// phpcs:ignore Drupal.Formatting.SpaceUnaryOperator.PlusMinus
|
// phpcs:ignore Drupal.Formatting.SpaceUnaryOperator.PlusMinus
|
||||||
|
|
|
@ -75,4 +75,14 @@
|
||||||
<li><strong>ContributionRecur</strong> – Will be set on the recurring contribution and deriving single contributions</li>
|
<li><strong>ContributionRecur</strong> – Will be set on the recurring contribution and deriving single contributions</li>
|
||||||
</ul>{/ts}
|
</ul>{/ts}
|
||||||
{/htxt}
|
{/htxt}
|
||||||
{/crmScope}
|
|
||||||
|
{htxt id='id-map_as_contribution_notes'}
|
||||||
|
{ts domain="de.systopia.twingle"}<p>Create a contribution note for each field specified in this selection.</p>
|
||||||
|
<p><i>Tip: You can enable or disable this fields in the TwingleMANAGER.</i></p>{/ts}
|
||||||
|
{/htxt}
|
||||||
|
|
||||||
|
{htxt id='id-map_as_contact_notes'}
|
||||||
|
{ts domain="de.systopia.twingle"}<p>Create a contact note for each field specified in this selection.</p>
|
||||||
|
<p><i>Tip: You can enable or disable this fields in the TwingleMANAGER.</i></p>{/ts}
|
||||||
|
{/htxt}
|
||||||
|
{/crmScope}
|
||||||
|
|
|
@ -313,6 +313,50 @@
|
||||||
<td class="content">{$form.contribution_source.html}</td>
|
<td class="content">{$form.contribution_source.html}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<tr class="crm-section">
|
||||||
|
<td class="label">
|
||||||
|
{$form.map_as_contribution_notes.label}
|
||||||
|
<a
|
||||||
|
onclick='
|
||||||
|
CRM.help(
|
||||||
|
"{ts domain="de.systopia.twingle"}Create contribution note for{/ts}",
|
||||||
|
{literal}{
|
||||||
|
"id": "id-map_as_contribution_notes",
|
||||||
|
"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.map_as_contribution_notes.html}</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr class="crm-section">
|
||||||
|
<td class="label">
|
||||||
|
{$form.map_as_contact_notes.label}
|
||||||
|
<a
|
||||||
|
onclick='
|
||||||
|
CRM.help(
|
||||||
|
"{ts domain="de.systopia.twingle"}Create contact note for{/ts}",
|
||||||
|
{literal}{
|
||||||
|
"id": "id-map_as_contact_notes",
|
||||||
|
"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.map_as_contact_notes.html}</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
<tr class="crm-section">
|
<tr class="crm-section">
|
||||||
<td class="label">
|
<td class="label">
|
||||||
{$form.custom_field_mapping.label}
|
{$form.custom_field_mapping.label}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue