Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
39de6fd5 | 3 | | CiviCRM version 4.6 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
819d0d41 | 5 | | Copyright CiviCRM LLC (c) 2004-2014 | |
6a488035 TO |
6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
26 | ||
27 | {capture assign=reminderLink}{crmURL p='civicrm/admin/scheduleReminders' q='reset=1'}{/capture} | |
28 | <div id="help"> | |
8848c36f | 29 | <p><div class="icon inform-icon"></div> {ts}Membership types are used to categorize memberships. You can define an unlimited number of types. Each type incorporates a 'name' (Gold Member, Honor Society Member...), a description, a minimum fee (can be $0), and a duration (can be 'lifetime'). Each member type is specifically linked to the membership entity (organization) - e.g. Bay Area Chapter.{/ts} {docURL page="user/membership/defining-memberships/"}</p> |
6a488035 TO |
30 | <p>{ts 1=$reminderLink}Configure membership renewal reminders using <a href="%1">Schedule Reminders</a>.{/ts} {docURL page="user/email/scheduled-reminders"}</p> |
31 | </div> | |
32 | ||
33 | {if $rows} | |
34 | <div id="membership_type"> | |
35 | {strip} | |
36 | {* handle enable/disable actions*} | |
4d17a233 | 37 | {include file="CRM/common/enableDisableApi.tpl"} |
e5e1786f | 38 | <table id="options" class="row-highlight"> |
6a488035 TO |
39 | <thead> |
40 | <tr> | |
41 | <th>{ts}Membership{/ts}</th> | |
42 | <th>{ts}Period{/ts}</th> | |
43 | <th>{ts}Fixed Start{/ts}</th> | |
44 | <th>{ts}Minimum Fee{/ts}</th> | |
45 | <th>{ts}Duration{/ts}</th> | |
46 | <th>{ts}Auto-renew Option{/ts}</th> | |
47 | <th>{ts}Related{/ts}</th> | |
48 | <th>{ts}Max{/ts}</th> | |
49 | <th>{ts}Visibility{/ts}</th> | |
e5e1786f | 50 | <th>{ts}Order{/ts}</th> |
6a488035 TO |
51 | <th>{ts}Enabled?{/ts}</th> |
52 | <th></th> | |
6a488035 TO |
53 | </tr> |
54 | </thead> | |
55 | {foreach from=$rows item=row} | |
4d17a233 | 56 | <tr id="membership_type-{$row.id}" class="crm-entity {cycle values='odd-row,even-row'} {$row.class} crm-membership-type {if NOT $row.is_active} disabled{/if}"> |
b633f8bd CW |
57 | <td class="crmf-name crm-editable" data-field="name">{$row.name}</td> |
58 | <td class="crmf-period_type crm-editable" data-type="select">{$row.period_type}</td> | |
59 | <td class="crmf-fixed_period_start_day">{$row.fixed_period_start_day}</td> | |
60 | <td class="crmf-minimum_fee" align="right">{$row.minimum_fee|crmMoney}</td> | |
61 | <td class="crmf-duration_interval_unit">{$row.duration_interval} {$row.duration_unit}</td> | |
62 | <td class="crmf-auto_renew">{if $row.auto_renew EQ 2}{ts}Required{/ts}{elseif $row.auto_renew EQ 1}{ts}Optional{/ts}{else}{ts}No{/ts}{/if}</td> | |
63 | <td class="crmf-relationship_type">{$row.relationshipTypeName}</td> | |
64 | <td class="crmf-max_related" align="right">{$row.maxRelated}</td> | |
65 | <td class="crmf-visibility crm-editable" data-type="select">{$row.visibility}</td> | |
66 | <td class="nowrap crmf-weight">{$row.weight}</td> | |
67 | <td class="crmf-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> | |
6a488035 | 68 | <td>{$row.action|replace:'xx':$row.id}</td> |
6a488035 TO |
69 | </tr> |
70 | {/foreach} | |
71 | </table> | |
72 | {/strip} | |
73 | ||
74 | {if $action ne 1 and $action ne 2} | |
75 | <div class="action-link"> | |
52604b19 | 76 | <a href="{crmURL p='civicrm/admin/member/membershipType/add' q="action=add&reset=1"}" id="newMembershipType" class="button"><span><div class="icon ui-icon-circle-plus"></div>{ts}Add Membership Type{/ts}</span></a> |
6a488035 TO |
77 | </div> |
78 | {/if} | |
79 | </div> | |
80 | {else} | |
81 | {if $action ne 1} | |
82 | <div class="messages status no-popup"> | |
83 | <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/> | |
84 | {capture assign=crmURL}{crmURL p='civicrm/admin/member/membershipType/add' q="action=add&reset=1"}{/capture}{ts 1=$crmURL}There are no membership types entered. You can <a href='%1'>add one</a>.{/ts} | |
85 | </div> | |
86 | {/if} | |
87 | {/if} |