Remove last in-between parser class
[civicrm-core.git] / templates / CRM / Member / Page / MembershipType.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
4 | |
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 |
8 +--------------------------------------------------------------------+
9 *}
10
11 {capture assign=reminderLink}{crmURL p='civicrm/admin/scheduleReminders' q='reset=1'}{/capture}
12 <div class="help">
13 <p>{icon icon="fa-info-circle"}{/icon}{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>
14 <p>{ts 1=$reminderLink}Configure membership renewal reminders using <a href="%1">Schedule Reminders</a>.{/ts} {docURL page="user/email/scheduled-reminders"}</p>
15 </div>
16
17 {if $rows}
18 <div id="membership_type" class="crm-content-block crm-block">
19 {strip}
20 {* handle enable/disable actions*}
21 {include file="CRM/common/enableDisableApi.tpl"}
22 <table id="options" class="row-highlight">
23 <thead>
24 <tr>
25 <th>{ts}Membership{/ts}</th>
26 <th>{ts}Period{/ts}</th>
27 <th>{ts}Fixed Start{/ts}</th>
28 <th>{ts}Minimum Fee{/ts}</th>
29 <th>{ts}Duration{/ts}</th>
30 <th>{ts}Auto-renew Option{/ts}</th>
31 <th>{ts}Related{/ts}</th>
32 <th>{ts}Max{/ts}</th>
33 <th>{ts}Visibility{/ts}</th>
34 <th>{ts}Order{/ts}</th>
35 <th>{ts}Enabled?{/ts}</th>
36 <th></th>
37 </tr>
38 </thead>
39 {foreach from=$rows item=row}
40 <tr id="membership_type-{$row.id}" class="crm-entity {cycle values='odd-row,even-row'}{if !empty($row.class)} {$row.class}{/if} crm-membership-type {if NOT $row.is_active} disabled{/if}">
41 <td class="crmf-name crm-editable" data-field="name">{$row.name}</td>
42 <td class="crmf-period_type crm-editable" data-type="select">{$row.period_type}</td>
43 <td class="crmf-fixed_period_start_day">{$row.fixed_period_start_day}</td>
44 <td class="crmf-minimum_fee" align="right">{$row.minimum_fee|crmMoney}</td>
45 <td class="crmf-duration_interval_unit">{$row.duration_interval} {$row.duration_unit}</td>
46 <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>
47 <td class="crmf-relationship_type">{$row.relationshipTypeName}</td>
48 <td class="crmf-max_related" align="right">{$row.max_related}</td>
49 <td class="crmf-visibility crm-editable" data-type="select">{$row.visibility}</td>
50 <td class="nowrap crmf-weight">{$row.weight|smarty:nodefaults}</td>
51 <td class="crmf-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
52 <td>{$row.action|replace:'xx':$row.id}</td>
53 </tr>
54 {/foreach}
55 </table>
56 {/strip}
57
58 {if $action ne 1 and $action ne 2}
59 <div class="action-link">
60 {crmButton p='civicrm/admin/member/membershipType/add' q="action=add&reset=1" id="newMembershipType" icon="plus-circle"}{ts}Add Membership Type{/ts}{/crmButton}
61 </div>
62 {/if}
63 </div>
64 {else}
65 {if $action ne 1}
66 <div class="messages status no-popup">
67 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
68 {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}
69 </div>
70 {/if}
71 {/if}