Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
1188c7a8 | 3 | | Copyright CiviCRM LLC. All rights reserved. | |
6a488035 | 4 | | | |
1188c7a8 TO |
5 | | This work is published under the GNU AGPLv3 license with some | |
6 | | permitted exceptions and without any warranty. For full license | | |
7 | | and copyright information, see https://civicrm.org/licensing | | |
6a488035 TO |
8 | +--------------------------------------------------------------------+ |
9 | *} | |
10 | {* this template is used for adding/editing/deleting membership status *} | |
11 | <div class="crm-block crm-form-block crm-membership-status-form-block" id=membership_status> | |
12 | <fieldset><legend>{if $action eq 1}{ts}New Membership Status{/ts}{elseif $action eq 2}{ts}Edit Membership Status{/ts}{else}{ts}Delete Membership Status{/ts}{/if}</legend> | |
13 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div> | |
3a0ba1c5 | 14 | {if $action eq 8} |
15 | <div class="messages status no-popup"> | |
34d6cec4 | 16 | {icon icon="fa-info-circle"}{/icon} |
3a0ba1c5 | 17 | {$deleteMessage|escape} |
18 | </div> | |
19 | {else} | |
6a488035 TO |
20 | <table class="form-layout-compressed"> |
21 | {if $action eq 2} | |
22 | <tr class="crm-membership-status-form-block-name"> | |
23 | <td class="label">{$form.name.label}</td> | |
24 | <td class="html-adjust">{$form.name.html}</td> | |
25 | </tr> | |
26 | {/if} | |
27 | ||
28 | <tr class="crm-membership-status-form-block-label"> | |
29 | <td class="label">{$form.label.label}{if $action == 2}{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_membership_status' field='label' id=$id}{/if}</td> | |
30 | <td class="html-adjust">{$form.label.html}<br /> | |
31 | <span class="description">{ts}Display name for this Membership status (e.g. New, Current, Grace, Expired...).{/ts}</span> | |
32 | </td> | |
33 | </tr> | |
34 | ||
35 | <tr class="crm-membership-status-form-block-start_event"> | |
36 | <td class="label">{$form.start_event.label}</td> | |
37 | <td class="html-adjust">{$form.start_event.html}<br /> | |
38 | <span class="description">{ts}When does this status begin? EXAMPLE: <strong>New</strong> status begins at the membership 'join date'.{/ts}</span> | |
39 | </td> | |
40 | </tr> | |
41 | <tr class="crm-membership-status-form-block-start_event_unit_interval"> | |
42 | <td class="label">{$form.start_event_adjust_unit.label}</td> | |
43 | <td class="html-adjust"> {$form.start_event_adjust_interval.html} {$form.start_event_adjust_unit.html}<br /> | |
44 | <span class="description">{ts}Optional adjustment period added or subtracted from the Start Event. EXAMPLE: <strong>Current</strong> status might begin at 'join date' PLUS 3 months (to distinguish Current from New members).{/ts}</span> | |
45 | </td> | |
46 | </tr> | |
47 | <tr class="crm-membership-status-form-block-end_event"> | |
48 | <td class="label">{$form.end_event.label}</td> | |
49 | <td class="html-adjust">{$form.end_event.html}<br /> | |
50 | <span class="description">{ts}When does this status end? EXAMPLE: <strong>Current</strong> status ends at the membership 'end date'.{/ts}</span> | |
51 | </td> | |
52 | </tr> | |
53 | <tr class="crm-membership-status-form-block-end_event_unit_interval"> | |
54 | <td class="label">{$form.end_event_adjust_unit.label}</td> | |
55 | <td class="html-adjust"> {$form.end_event_adjust_interval.html} {$form.end_event_adjust_unit.html}<br /> | |
56 | <span class="description">{ts}Optional adjustment period added or subtracted from the End Event. EXAMPLE: <strong>Grace</strong> status might end at 'end date' PLUS 1 month.{/ts}</span> | |
57 | </td> | |
58 | </tr> | |
59 | <tr class="crm-membership-status-form-block-is_current_member"> | |
60 | <td class="label">{$form.is_current_member.label}</td><td class="html-adjust">{$form.is_current_member.html}<br /> | |
61 | <span class="description">{ts}Should this status be considered a current membership in good standing. EXAMPLE: New, Current and Grace could all be considered 'current'.{/ts}</span> | |
62 | </td> | |
63 | </tr> | |
64 | <tr class="crm-membership-status-form-block-is_admin"> | |
65 | <td class="label">{$form.is_admin.label}</td> | |
66 | <td class="html-adjust">{$form.is_admin.html}<br /> | |
67 | <span class="description">{ts}Check this box if this status is for use by administrative staff only. If checked, this status is never automatically assigned by CiviMember. It is assigned to a contact's Membership by checking the <strong>Status Override</strong> flag when adding or editing the Membership record. Start and End Event settings are ignored for Administrator statuses. EXAMPLE: This setting can be useful for special case statuses like 'Non-expiring', 'Barred' or 'Expelled', etc.{/ts}</span> | |
68 | </td> | |
69 | </tr> | |
70 | <tr class="crm-membership-status-form-block-weight"> | |
71 | <td class="label">{$form.weight.label}</td> | |
72 | <td class="html-adjust"> {$form.weight.html}<br /> | |
73 | <span class="description">{ts}Weight sets the order of precedence for automatic assignment of status to a membership. It also sets the order for status displays. EXAMPLE: The default 'New' and 'Current' statuses have overlapping ranges. Memberships that meet both status range criteria are assigned the status with the lower weight.{/ts}</span> | |
74 | </td> | |
75 | </tr> | |
76 | <tr class="crm-membership-status-form-block-is_default"> | |
77 | <td class="label">{$form.is_default.label}</td> | |
78 | <td class="html-adjust">{$form.is_default.html}<br /> | |
79 | <span class="description">{ts}The default status is assigned when there are no matching status rules for a membership.{/ts}</span> | |
80 | </td> | |
81 | </tr> | |
82 | <tr class="crm-membership-status-form-block-is_active"> | |
83 | <td class="label">{$form.is_active.label}</td> | |
84 | <td class="html-adjust">{$form.is_active.html}<br /> | |
85 | <span class="description">{ts}Is this status enabled.{/ts}</span> | |
86 | </td> | |
87 | </tr> | |
88 | </table> | |
89 | {/if} | |
90 | <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div> | |
91 | <br clear="all" /> | |
92 | </fieldset> | |
93 | </div> |