[WIP] twingleDonation.Submit API action and general profile functionality
This commit is contained in:
parent
061972706c
commit
e141f2951a
14 changed files with 1048 additions and 16 deletions
106
templates/CRM/Twingle/Form/Profile.tpl
Normal file
106
templates/CRM/Twingle/Form/Profile.tpl
Normal file
|
@ -0,0 +1,106 @@
|
|||
{*------------------------------------------------------------+
|
||||
| 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>
|
||||
|
||||
</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_receipts_groups.label}</td>
|
||||
<td class="content">{$form.donation_receipts_groups.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>
|
Loading…
Add table
Add a link
Reference in a new issue