de.systopia.twingle/templates/CRM/Twingle/Form/Profile.tpl

267 lines
9.3 KiB
Smarty

{*------------------------------------------------------------+
| SYSTOPIA Twingle Integration |
| Copyright (C) 2018 SYSTOPIA |
| Author: J. Schuppe (schuppe@systopia.de) |
+-------------------------------------------------------------+
| This program is released as free software under the |
| Affero GPL license. You can redistribute it and/or |
| modify it under the terms of this license which you |
| can read by viewing the included agpl.txt or online |
| at www.gnu.org/licenses/agpl.html. Removal of this |
| copyright header is strictly prohibited without |
| written permission from the original author(s). |
+-------------------------------------------------------------*}
<div class="crm-block crm-form-block">
{if $op == 'create' or $op == 'edit'}
<fieldset>
<legend>{ts domain="de.systopia.twingle"}General settings{/ts}</legend>
<table class="form-layout-compressed">
<tr class="crm-section">
<td class="label">{$form.name.label}</td>
<td class="content">{$form.name.html}</td>
</tr>
<tr class="crm-section">
<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>
<tr class="crm-section">
<td class="label">
{$form.location_type_id.label}
<a
onclick='
CRM.help(
"{ts domain="de.systopia.twingle"}Location type{/ts}",
{literal}{
"id": "id-location_type_id",
"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.location_type_id.html}</td>
</tr>
<tr class="crm-section">
<td class="label">
{$form.location_type_id_organisation.label}
<a
onclick='
CRM.help(
"{ts domain="de.systopia.twingle"}Location type for organisations{/ts}",
{literal}{
"id": "id-location_type_id_organisation",
"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.location_type_id_organisation.html}</td>
</tr>
<tr class="crm-section">
<td class="label">
{$form.financial_type_id.label}
<a
onclick='
CRM.help(
"{ts domain="de.systopia.twingle"}Financial type{/ts}",
{literal}{
"id": "id-financial_type_id",
"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.financial_type_id.html}</td>
</tr>
<tr class="crm-section">
<td class="label">
{$form.financial_type_id_recur.label}
<a
onclick='
CRM.help(
"{ts domain="de.systopia.twingle"}Financial type (recurring){/ts}",
{literal}{
"id": "id-financial_type_id_recur",
"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.financial_type_id_recur.html}</td>
</tr>
{if isset($form.sepa_creditor_id)}
<tr class="crm-section">
<td class="label">{$form.sepa_creditor_id.label}</td>
<td class="content">{$form.sepa_creditor_id.html}</td>
</tr>
{/if}
<tr class="crm-section">
<td class="label">{$form.gender_male.label}</td>
<td class="content">{$form.gender_male.html}</td>
</tr>
<tr class="crm-section">
<td class="label">{$form.gender_female.label}</td>
<td class="content">{$form.gender_female.html}</td>
</tr>
<tr class="crm-section">
<td class="label">{$form.gender_other.label}</td>
<td class="content">{$form.gender_other.html}</td>
</tr>
</table>
</fieldset>
<fieldset>
<legend>{ts domain="de.systopia.twingle"}Payment methods{/ts}</legend>
<table class="form-layout-compressed">
{foreach key=pi_name item=pi_label from=$payment_instruments}
<tr class="crm-section {cycle values="odd,even"}">
<td class="label">{$form.$pi_name.label}</td>
<td class="content">{$form.$pi_name.html}</td>
{capture assign="pi_contribution_status"}{$pi_name}_status{/capture}
<td class="label">{$form.$pi_contribution_status.label}</td>
<td class="content">{$form.$pi_contribution_status.html}</td>
</tr>
{/foreach}
</table>
</fieldset>
<fieldset>
<legend>{ts domain="de.systopia.twingle"}Groups and Correlations{/ts}</legend>
<table class="form-layout-compressed">
<tr class="crm-section">
<td class="label">{$form.newsletter_groups.label}</td>
<td class="content">{$form.newsletter_groups.html}</td>
</tr>
<tr class="crm-section">
<td class="label">{$form.postinfo_groups.label}</td>
<td class="content">{$form.postinfo_groups.html}</td>
</tr>
<tr class="crm-section">
<td class="label">{$form.donation_receipt_groups.label}</td>
<td class="content">{$form.donation_receipt_groups.html}</td>
</tr>
<tr class="crm-section">
<td class="label">{$form.campaign.label}</td>
<td class="content">{$form.campaign.html}</td>
</tr>
<tr class="crm-section">
<td class="label">{$form.membership_type_id.label}</td>
<td class="content">{$form.membership_type_id.html}</td>
</tr>
<tr class="crm-section">
<td class="label">{$form.membership_type_id_recur.label}</td>
<td class="content">{$form.membership_type_id_recur.html}</td>
</tr>
<tr class="crm-section">
<td class="label">{$form.contribution_source.label}</td>
<td class="content">{$form.contribution_source.html}</td>
</tr>
<tr class="crm-section">
<td class="label">
{$form.custom_field_mapping.label}
<a
onclick='
CRM.help(
"{ts domain="de.systopia.twingle"}Custom field mapping{/ts}",
{literal}{
"id": "id-custom_field_mapping",
"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.custom_field_mapping.html}</td>
</tr>
</table>
</fieldset>
{elseif $op == 'delete'}
{if $profile_name}
{if $profile_name == 'default'}
<div class="status">{ts domain="de.systopia.twingle" 1=$profile_name}Are you sure you want to reset the default profile?{/ts}</div>
{else}
<div class="status">{ts domain="de.systopia.twingle" 1=$profile_name}Are you sure you want to delete the profile <em>%1</em>?{/ts}</div>
{/if}
{else}
<div class="crm-error">{ts domain="de.systopia.twingle"}Profile name not given or invalid.{/ts}</div>
{/if}
{/if}
{* FOOTER *}
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl" location="bottom"}
</div>
</div>