136 lines
4.6 KiB
Smarty
136 lines
4.6 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}</td>
|
|
<td class="content">{$form.selector.html}</td>
|
|
</tr>
|
|
|
|
<tr class="crm-section">
|
|
<td class="label">{$form.location_type_id.label}</td>
|
|
<td class="content">{$form.location_type_id.html}</td>
|
|
</tr>
|
|
|
|
<tr class="crm-section">
|
|
<td class="label">{$form.financial_type_id.label}</td>
|
|
<td class="content">{$form.financial_type_id.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>
|
|
</tr>
|
|
{/foreach}
|
|
</table>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
|
|
<legend>{ts domain="de.systopia.twingle"}Groups{/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.contribution_source.label}</td>
|
|
<td class="content">{$form.contribution_source.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>
|