First commit

This commit is contained in:
Theodotos Andreou 2018-01-14 13:10:16 +00:00
commit c6e2478c40
13918 changed files with 2303184 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="id-member-intro-title"}
{ts}Member Dashboard{/ts}
{/htxt}
{htxt id="id-member-intro"}
{capture assign=findContactURL}{crmURL p="civicrm/contact/search/basic" q="reset=1"}{/capture}
{capture assign=contribPagesURL}{crmURL p="civicrm/admin/contribute" q="reset=1"}{/capture}
{capture assign=memberTypesURL}{crmURL p="civicrm/admin/member/membershipType" q="reset=1"}{/capture}
{capture assign=importURL}{crmURL p="civicrm/member/import" q="reset=1"}{/capture}
<p>{ts 1=$contribPagesURL 2=$memberTypesURL}CiviMember allows you to create customized membership types as well as page(s) for online membership sign-up and renewal. Administrators can create or modify Membership Types <a href='%2'>here</a>, and configure Online Contribution Pages which include membership sign-up <a href='%1'>here</a>.{/ts}</p>
{capture assign=findMembersURL}{crmURL p="civicrm/member/search/basic" q="reset=1"}{/capture}
<p>{ts 1=$findMembersURL}This table provides a summary of <strong>Membership Signup and Renewal Activity</strong>, and includes shortcuts to view the details for these commonly used search criteria. To run your own customized searches - click <a href='%1'>Find Members</a>. You can search by Member Name, Membership Type, Status, and Signup Date Ranges.{/ts}</p>
<p>{ts 1=$findContactURL 2=$importURL}You can also input and track membership sign-ups offline. To record memberships manually for individual contacts, use <a href="%1">Find Contacts</a> to locate the contact. Then click <strong>View</strong> to go to their summary page and click on the <strong>New Membership</strong> link. You can also <a href="%2">import batches of membership records</a> from other sources.{/ts} {docURL page="user/membership/introduction-to-memberships" text="Refer to the online user guide for more information."}</p>
{/htxt}

View file

@ -0,0 +1,264 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* CiviMember DashBoard (launch page) *}
{if $membershipSummary}
<h3>{ts}Membership Summary{/ts} {help id="id-member-intro"}</h3>
<table class="report">
<tr class="columnheader-dark">
<th scope="col" rowspan="2">{ts}Members by Type{/ts}</th>
{if $preMonth}
<th scope="col" colspan="3">{$premonth} &ndash; {ts}(Last Month){/ts}</th>
{/if}
<th scope="col" colspan="3">{$month}{if $isCurrent}{ts} (MTD){/ts}{/if}</th>
<th scope="col" colspan="3">
{if $year eq $currentYear}
{$year} {ts}(YTD){/ts}
{else}
{$year} {ts 1=$month}through %1{/ts}
{/if}
</th>
<th scope="col" rowspan="2">
{if $isCurrent}
{ts}Current #{/ts}
{else}
{ts 1=$month 2=$year}Members as of %1 %2{/ts}
{/if}
</th>
</tr>
<tr class="columnheader-dark">
{if $preMonth}
<th scope="col">{ts}New{/ts}</th><th scope="col">{ts}Renew{/ts}</th><th scope="col">{ts}Total{/ts}</th>
{/if}
<th scope="col">{ts}New{/ts}</th><th scope="col">{ts}Renew{/ts}</th><th scope="col">{ts}Total{/ts}</th>
<th scope="col">{ts}New{/ts}</th><th scope="col">{ts}Renew{/ts}</th><th scope="col">{ts}Total{/ts}</th>
</tr>
{foreach from=$membershipSummary item=row}
<tr>
<td><strong>{$row.month.total.name}</strong></td>
{if $preMonth}
<td class="label">
{if $row.premonth.new.url}<a href="{$row.premonth.new.url}" title="view details">{$row.premonth.new.count}</a>
{else}{$row.premonth.new.count}{/if}
</td>
<td class="label">
{if $row.premonth.renew.url}<a href="{$row.premonth.renew.url}" title="view details">{$row.premonth.renew.count}</a>
{else}{$row.premonth.renew.count}{/if}
</td>
<td class="label">
{if $row.premonth.total.url}
<a href="{$row.premonth.total.url}" title="view details">{$row.premonth.total.count}</a>
{else}
{$row.premonth.total.count}
{/if}&nbsp;[
{if $row.premonth_owner.premonth_owner.url}
<a href="{$row.premonth_owner.premonth_owner.url}" title="view details">{$row.premonth_owner.premonth_owner.count}</a>
{else}
{$row.premonth_owner.premonth_owner.count}
{/if}]
</td>
{/if}
<td class="label">
{if $row.month.new.url}<a href="{$row.month.new.url}" title="view details">{$row.month.new.count}</a>
{else}{$row.month.new.count}{/if}
</td>
<td class="label">
{if $row.month.renew.url}<a href="{$row.month.renew.url}" title="view details">{$row.month.renew.count}</a>
{else}{$row.month.renew.count}{/if}
</td>
<td class="label">
{if $row.month.total.url}
<a href="{$row.month.total.url}" title="view details">{$row.month.total.count}</a>
{else}
{$row.month.total.count}
{/if}&nbsp;[
{if $row.month_owner.month_owner.url}
<a href="{$row.month_owner.month_owner.url}" title="view details">{$row.month_owner.month_owner.count}</a>
{else}
{$row.month_owner.month_owner.count}
{/if}]
</td>
<td class="label">
{if $row.year.new.url}<a href="{$row.year.new.url}" title="view details">{$row.year.new.count}</a>
{else}{$row.year.new.count}{/if}
</td>
<td class="label">
{if $row.year.renew.url}<a href="{$row.year.renew.url}" title="view details">{$row.year.renew.count}</a>
{else}{$row.year.renew.count}{/if}
</td>
<td class="label">
{if $row.year.total.url}
<a href="{$row.year.total.url}" title="view details">{$row.year.total.count}</a>
{else}
{$row.year.total.count}
{/if}&nbsp;[
{if $row.year_owner.year_owner.url}
<a href="{$row.year_owner.year_owner.url}" title="view details">{$row.year_owner.year_owner.count}</a>
{else}
{$row.year_owner.year_owner.count}
{/if}]
</td>
<td class="label">
{if $isCurrent}
{if $row.current.total.url}
<a href="{$row.current.total.url}" title="view details">{$row.current.total.count}</a>
{else}
{$row.current.total.count}
{/if}&nbsp;[
{if $row.current_owner.current_owner.url}
<a href="{$row.current_owner.current_owner.url}" title="view details">{$row.current_owner.current_owner.count}</a>
{else}
{$row.current_owner.current_owner.count}
{/if} ]
{else}
{if $row.total.total.url}
<a href="{$row.total.total.url}" title="view details">{$row.total.total.count}</a>
{else}
{$row.total.total.count}
{/if}&nbsp;[
{if $row.total_owner.total_owner.url}
<a href="{$row.total_owner.total_owner.url}" title="view details">{$row.total_owner.total_owner.count}</a>
{else}
{$row.total_owner.total_owner.count}
{/if} ]
{/if}
</td> {* member/search?reset=1&force=1&membership_type_id=1&current=1 *}
</tr>
{/foreach}
<tr class="columnfooter">
<td><strong>{ts}Totals (all types){/ts}</strong></td>
{if $preMonth}
<td class="label">
{if $totalCount.premonth.new.url}<a href="{$totalCount.premonth.new.url}" title="view details">{$totalCount.premonth.new.count}</a>
{else}{$totalCount.premonth.new.count}{/if}
</td>
<td class="label">
{if $totalCount.premonth.renew.url}<a href="{$totalCount.premonth.renew.url}" title="view details">{$totalCount.premonth.renew.count}</a>
{else}{$totalCount.premonth.renew.count}{/if}
</td>
<td class="label">
{if $totalCount.premonth.total.url}
<a href="{$totalCount.premonth.total.url}" title="view details">{$totalCount.premonth.total.count}</a>
{else}
{$totalCount.premonth.total.count}
{/if}&nbsp;[
{if $totalCount.premonth_owner.premonth_owner.url}
<a href="{$totalCount.premonth_owner.premonth_owner.url}" title="view details">{$totalCount.premonth_owner.premonth_owner.count}</a>
{else}
{$totalCount.premonth_owner.premonth_owner.count}
{/if}]
</td>
{/if}
<td class="label">
{if $totalCount.month.new.url}<a href="{$totalCount.month.new.url}" title="view details">{$totalCount.month.new.count}</a>
{else}{$totalCount.month.new.count}{/if}
</td>
<td class="label">
{if $totalCount.month.renew.url}<a href="{$totalCount.month.renew.url}" title="view details">{$totalCount.month.renew.count}</a>
{else}{$totalCount.month.renew.count}{/if}
</td>
<td class="label">
{if $totalCount.month.total.url}
<a href="{$totalCount.month.total.url}" title="view details">{$totalCount.month.total.count}</a>
{else}
{$totalCount.month.total.count}
{/if}&nbsp;[
{if $totalCount.month_owner.month_owner.url}
<a href="{$totalCount.month_owner.month_owner.url}" title="view details">{$totalCount.month_owner.month_owner.count}</a>
{else}
{$totalCount.month_owner.month_owner.count}
{/if}]
</td>
<td class="label">
{if $totalCount.year.new.url}<a href="{$totalCount.year.new.url}" title="view details">{$totalCount.year.new.count}</a>
{else}{$totalCount.year.new.count}{/if}
</td>
<td class="label">
{if $totalCount.year.renew.url}<a href="{$totalCount.year.renew.url}" title="view details">{$totalCount.year.renew.count}</a>
{else}{$totalCount.year.renew.count}{/if}
</td>
<td class="label">
{if $totalCount.year.total.url}
<a href="{$totalCount.year.total.url}" title="view details">{$totalCount.year.total.count}</a>
{else}
{$totalCount.year.total.count}
{/if}&nbsp;[
{if $totalCount.year_owner.year_owner.url}
<a href="{$totalCount.year_owner.year_owner.url}" title="view details">{$totalCount.year_owner.year_owner.count}</a>
{else}
{$totalCount.year_owner.year_owner.count}
{/if}]
</td>
<td class="label">
{if $isCurrent}
{if $row.total.total.url}
<a href="{$row.total.total.url}" title="view details">{$totalCount.current.total.count}</a>
{else}
{$totalCount.current.total.count}
{/if}&nbsp;[
{if $row.total_owner.total_owner.url}
<a href="{$row.total_owner.total_owner.url}" title="view details">{$totalCount.current_owner.current_owner.count}</a>
{else}
{$totalCount.current_owner.current_owner.count}
{/if} ]
{else}
{if $totalCount.total.url}
<a href="{$totalCount.total.url}" title="view details">{$totalCount.total.total.count}</a>
{else}
{$totalCount.total.total.count}
{/if}&nbsp;[
{if $totalCount.total_owner.total_owner.url}
<a href="{$totalCount.total_owner.total_owner.url}" title="view details">{$totalCount.total_owner.total_owner.count}</a>
{else}
{$totalCount.total_owner.total_owner.count}
{/if} ]
{/if}
</td>
</tr>
<tr><td colspan='11'>
{ts}Primary member counts (those who "own" the membership rather than receiving via relationship) are in [brackets].{/ts}
</td></tr>
</table>
{/if}
<div class="spacer"></div>
{if $rows}
{* if $pager->_totalItems *}
<h3>{ts}Recent Memberships{/ts}</h3>
<div class="form-item">
{ include file="CRM/Member/Form/Selector.tpl" context="dashboard" }
</div>
{* /if *}
{/if}

View file

@ -0,0 +1,83 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{capture assign=crmURL}{crmURL p='civicrm/admin/member/membershipStatus' q="action=add&reset=1"}{/capture}
{if $action eq 1 or $action eq 2 or $action eq 8}
{include file="CRM/Member/Form/MembershipStatus.tpl"}
{else}
<div class="help">
<p>{ts}CiviMember automatically calculates the current status of each contact's membership based on the status names and rules configured here. The status 'rule' tells CiviMember what status to assign based on the start and end dates of a given membership. For example, the default <strong>Grace</strong> status rule says: 'assign Grace status if the membership period ended sometime within the past month.'{/ts} {docURL page="user/membership/defining-memberships/"}
<p>{ts 1=$crmURL}The status rules provided by default may be sufficient for your organization. However, you can easily change the status names and/or adjust the rules by clicking the Edit links below. Or you can <a href='%1'>add a new status and rule</a>.{/ts}
</div>
{if $rows}
<div id="ltype">
<p></p>
<div id="membership_status_id">
{strip}
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
<table cellpadding="0" cellspacing="0" border="0">
<thead class="sticky">
<th>{ts}Status{/ts}</th>
<th>{ts}Start Event{/ts}</th>
<th>{ts}End Event{/ts}</th>
<th>{ts}Member{/ts}</th>
<th>{ts}Admin{/ts}</th>
<th>{ts}Order{/ts}</th>
<th>{ts}Reserved?{/ts}</th>
<th></th>
</thead>
{foreach from=$rows item=row}
<tr id="membership_status-{$row.id}" class="crm-entity {cycle values="odd-row,even-row"} {$row.class} {if NOT $row.is_active} disabled{/if} crmf">
<td class="crmf-label crm-editable" >{$row.label}</td>
<td class="crmf-start_event crm-editable" data-type="select" data-empty-option="{ts}- none -{/ts}">{$row.start_event}</td>
<td class="crmf-end_event crm-editable" data-type="select" data-empty-option="{ts}- none -{/ts}">{$row.end_event}</td>
<td class="crmf-is_current_member crm-editable" data-type="boolean">{if $row.is_current_member eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td class="crmf-is_admin crm-editable" data-type="boolean">{if $row.is_admin eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td class="nowrap crmf-weight">{$row.weight}</td>
<td class="crmf-is_reserved">{if $row.is_reserved eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
</tr>
{/foreach}
</table>
{/strip}
{if $action ne 1 and $action ne 2}
<div class="action-link">
{crmButton q="action=add&reset=1" id="newMembershipStatus" icon="plus-circle"}{ts}Add Membership Status{/ts}{/crmButton}
{crmButton p="civicrm/admin" q="reset=1" class="cancel" icon="times"}{ts}Done{/ts}{/crmButton}
</div>
{/if}
</div>
</div>
{else}
{if $action ne 1}
<div class="messages status no-popup">
<img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>{ts 1=$crmURL}There are no custom membership status entered. You can <a href='%1'>add one</a>.{/ts}
</div>
{/if}
{/if}
{/if}

View file

@ -0,0 +1,70 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="rel-type-title"}
{ts}Relationship Type{/ts}
{/htxt}
{htxt id="rel-type"}
<p>{ts}Use this field to configure Membership Types where memberships are automatically granted to related contacts. Examples:{/ts}</p>
<table>
<tr>
<th>{ts}Relationship Type{/ts}</th>
<th>{ts}Direct member is:{/ts}</th>
<th>{ts}Membership is automatically granted to:{/ts}</th>
</tr>
<tr>
<td><strong>'{ts}Household Member is{/ts}'</strong></td>
<td>{ts}a household{/ts}</td>
<td>{ts}'Household Members' of that household{/ts}</td>
</tr>
<tr>
<td><strong>'{ts}Employer of{/ts}'</strong></td>
<td>{ts}an organization{/ts}</td>
<td>{ts}'Employees' of that organization{/ts}</td>
</tr>
<tr>
<td><strong>'{ts}Parent of{/ts}'</strong></td>
<td>{ts}an individual{/ts}</td>
<td>{ts}'Children' of that individual{/ts}</td>
</tr>
</table>
{/htxt}
{htxt id="period-type-title"}
{ts}Membership Period{/ts}
{/htxt}
{htxt id="period-type"}
<p>
{ts}Select 'rolling' if membership periods begin at date of signup. Select 'fixed' if membership periods begin on a set calendar date. If membership duration is specified in years, you will be able to specify the exact month and day for memberships to start. If membership duration is specified in months, memberships will start on the 1st of the current month and run for the number of specified months.{/ts}
</p>
<p>
<strong>{ts}EXAMPLES{/ts}</strong><br />
<ul>
<li>{ts}<strong>Fixed Membership Period - 1 Year Duration:</strong> Fixed period start date is set to January 1. A person signs up for membership on February 15th, 2008. Their membership start date is set to January 1, 2008 - and the end date is December 31, 2008.{/ts}</li>
<li>{ts}<strong>Fixed Membership - 3 Months Duration:</strong> A person signs up on February 15th, 2008. Their membership start date is set to February 1, 2008 - and the end date is April 30, 2008.{/ts}</li>
<li>{ts}<strong>Rolling Membership Period - 1 Year Duration:</strong> A person signs up on February 15th, 2008. Their membership start date is February 15th, 2008 - and the end date is February 14th, 2009.{/ts}</li>
</ul>
{/htxt}

View file

@ -0,0 +1,87 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{capture assign=reminderLink}{crmURL p='civicrm/admin/scheduleReminders' q='reset=1'}{/capture}
<div class="help">
<p><div class="icon inform-icon"></div>&nbsp;{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>
<p>{ts 1=$reminderLink}Configure membership renewal reminders using <a href="%1">Schedule Reminders</a>.{/ts} {docURL page="user/email/scheduled-reminders"}</p>
</div>
{if $rows}
<div id="membership_type">
{strip}
{* handle enable/disable actions*}
{include file="CRM/common/enableDisableApi.tpl"}
<table id="options" class="row-highlight">
<thead>
<tr>
<th>{ts}Membership{/ts}</th>
<th>{ts}Period{/ts}</th>
<th>{ts}Fixed Start{/ts}</th>
<th>{ts}Minimum Fee{/ts}</th>
<th>{ts}Duration{/ts}</th>
<th>{ts}Auto-renew Option{/ts}</th>
<th>{ts}Related{/ts}</th>
<th>{ts}Max{/ts}</th>
<th>{ts}Visibility{/ts}</th>
<th>{ts}Order{/ts}</th>
<th>{ts}Enabled?{/ts}</th>
<th></th>
</tr>
</thead>
{foreach from=$rows item=row}
<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}">
<td class="crmf-name crm-editable" data-field="name">{$row.name}</td>
<td class="crmf-period_type crm-editable" data-type="select">{$row.period_type}</td>
<td class="crmf-fixed_period_start_day">{$row.fixed_period_start_day}</td>
<td class="crmf-minimum_fee" align="right">{$row.minimum_fee|crmMoney}</td>
<td class="crmf-duration_interval_unit">{$row.duration_interval} {$row.duration_unit}</td>
<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>
<td class="crmf-relationship_type">{$row.relationshipTypeName}</td>
<td class="crmf-max_related" align="right">{$row.maxRelated}</td>
<td class="crmf-visibility crm-editable" data-type="select">{$row.visibility}</td>
<td class="nowrap crmf-weight">{$row.weight}</td>
<td class="crmf-is_active">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
</tr>
{/foreach}
</table>
{/strip}
{if $action ne 1 and $action ne 2}
<div class="action-link">
{crmButton p='civicrm/admin/member/membershipType/add' q="action=add&reset=1" id="newMembershipType" icon="plus-circle"}{ts}Add Membership Type{/ts}{/crmButton}
</div>
{/if}
</div>
{else}
{if $action ne 1}
<div class="messages status no-popup">
<img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
{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}
</div>
{/if}
{/if}

View file

@ -0,0 +1,46 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="id-status-override-title"}
{ts}Override Status{/ts}
{/htxt}
{htxt id="id-status-override"}
<p>{ts}Membership status is normally assigned and updated automatically based on your configured membership status rules. However, if you want to assign a status manually and bypass automated status setting, check this box. Then you can select from the available status options.{/ts}</p>
<p>{ts}The status you assign will remain in force, unless it is again modified on this screen. As long as the Status Override flag is checked, the automated membership status update script will NOT update this membership record.{/ts}</p>
{/htxt}
{htxt id="id-contribution_contact-title"}
{ts}Contributor{/ts}
{/htxt}
{htxt id="id-contribution_contact"}
<p>{ts}Check this box if someone other than the member is paying for this membership (i.e. a gift membership or gift subscription), and you want to link the payment to the person who is actually paying. You will be able to select an existing contact or enter a new one. The resulting contribution record will be linked to the payer, and a soft credit for that contribution will be linked to this contact (the member).{/ts}</p>
{/htxt}
{htxt id="override_end_date-title"}
{ts}Override End Date for Auto-renew Memberships{/ts}
{/htxt}
{htxt id="override_end_date"}
<p>{ts}If CiviCRM's membership end-date is different from when the payment processor will next collect a payment, various problems can occur. Members may experience a gap in their membership, and the renewal date may get changed from what is manually entered. Use care when modifying the End Date value, and check the associated recurring payment in your payment processor system so they always match.{/ts}</p>
{/htxt}

View file

@ -0,0 +1,192 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="view-content">
{if $action eq 1 or $action eq 2 or $action eq 8} {* add, update or delete *}
{include file="CRM/Member/Form/Membership.tpl"}
{elseif $action eq 4}
{include file="CRM/Member/Form/MembershipView.tpl"}
{elseif $action eq 32768} {* renew *}
{include file="CRM/Member/Form/MembershipRenewal.tpl"}
{elseif $action eq 16} {* Browse memberships for a contact *}
{if $permission EQ 'edit'}
{capture assign=newURL}{crmURL p="civicrm/contact/view/membership" q="reset=1&action=add&cid=`$contactId`&context=membership"}{/capture}{/if}
{if $action ne 1 and $action ne 2 and $permission EQ 'edit'}
<div class="help">
{if $permission EQ 'edit'}
{capture assign="link"}class="action-item" href="{$newURL}"{/capture}
{ts 1=$link}Click <a %1>Add Membership</a> to record a new membership.{/ts}
{if $newCredit}
{capture assign=newCreditURL}{crmURL p="civicrm/contact/view/membership" q="reset=1&action=add&cid=`$contactId`&context=membership&mode=live"}{/capture}
{capture assign="link"}class="action-item" href="{$newCreditURL}"{/capture}
{ts 1=$link}Click <a %1>Submit Credit Card Membership</a> to process a Membership on behalf of the member using their credit card.{/ts}
{/if}
{else}
{ts 1=$displayName}Current and inactive memberships for %1 are listed below.{/ts}
{/if}
</div>
<div class="action-link">
<a accesskey="N" href="{$newURL}" class="button"><span><i class="crm-i fa-plus-circle"></i> {ts}Add Membership{/ts}</span></a>
{if $accessContribution and $newCredit}
<a accesskey="N" href="{$newCreditURL}" class="button"><span><i class="crm-i fa-credit-card"></i> {ts}Submit Credit Card Membership{/ts}</span></a><br /><br />
{else}
<br/ ><br/ >
{/if}
</div>
{/if}
{if NOT ($activeMembers or $inActiveMembers) and $action ne 2 and $action ne 1 and $action ne 8 and $action ne 4 and $action ne 32768}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}No memberships have been recorded for this contact.{/ts}
</div>
{/if}
{include file="CRM/common/jsortable.tpl"}
{if $activeMembers}
<div id="memberships">
<h3>{ts}Active Memberships{/ts}</h3>
{strip}
<table id="active_membership" class="display">
<thead>
<tr>
<th>{ts}Membership{/ts}</th>
<th>{ts}Member Since{/ts}</th>
<th>{ts}Start Date{/ts}</th>
<th>{ts}End Date{/ts}</th>
<th>{ts}Status{/ts}</th>
<th>{ts}Source{/ts}</th>
<th>{ts}Auto-renew{/ts}</th>
<th>{ts}Related{/ts}</th>
<th></th>
</tr>
</thead>
{foreach from=$activeMembers item=activeMember}
<tr id="crm-membership_{$activeMember.id}" class="{cycle values="odd-row,even-row"} {$activeMember.class} crm-membership">
<td class="crm-membership-membership_type">
{$activeMember.membership_type}
{if $activeMember.owner_membership_id}<br />({ts}by relationship{/ts}){/if}
</td>
<td class="crm-membership-join_date" data-order="{$activeMember.join_date}">{$activeMember.join_date|crmDate}</td>
<td class="crm-membership-start_date" data-order="{$activeMember.start_date}">{$activeMember.start_date|crmDate}</td>
<td class="crm-membership-end_date" data-order="{$activeMember.end_date}">{$activeMember.end_date|crmDate}</td>
<td class="crm-membership-status">{$activeMember.status}</td>
<td class="crm-membership-source">{$activeMember.source}</td>
<td class="crm-membership-auto_renew">{if $activeMember.auto_renew}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Auto-renew{/ts}" /> {/if}</td>
<td class="crm-membership-related_count">{$activeMember.related_count}</td>
<td>
{$activeMember.action|replace:'xx':$activeMember.id}
{if $activeMember.owner_membership_id}
<a href="{crmURL p='civicrm/membership/view' q="reset=1&id=`$activeMember.owner_membership_id`&action=view&context=membership&selectedChild=member"}" title="{ts}View Primary member record{/ts}" class="crm-hover-button action-item">{ts}View Primary{/ts}</a>
{/if}
</td>
</tr>
{/foreach}
</table>
{/strip}
</div>
{/if}
{if $inActiveMembers}
<div id="inactive-memberships">
<p></p>
<h3 class="font-red">{ts}Pending and Inactive Memberships{/ts}</h3>
{strip}
<table id="pending_membership" class="display">
<thead>
<tr>
<th>{ts}Membership{/ts}</th>
<th>{ts}Member Since{/ts}</th>
<th>{ts}Start Date{/ts}</th>
<th>{ts}End Date{/ts}</th>
<th>{ts}Status{/ts}</th>
<th>{ts}Source{/ts}</th>
<th>{ts}Auto-renew{/ts}</th>
<th></th>
</tr>
</thead>
{foreach from=$inActiveMembers item=inActiveMember}
<tr id="crm-membership_{$inActiveMember.id}" class="{cycle values="odd-row,even-row"} {$inActiveMember.class} crm-membership">
<td class="crm-membership-membership_type">{$inActiveMember.membership_type}
{if $inActiveMember.owner_membership_id}<br />({ts}by relationship{/ts}){/if}
</td>
<td class="crm-membership-join_date" data-order="{$inActiveMember.join_date}">{$inActiveMember.join_date|crmDate}</td>
<td class="crm-membership-start_date" data-order="{$inActiveMember.start_date}">{$inActiveMember.start_date|crmDate}</td>
<td class="crm-membership-end_date" data-order="{$inActiveMember.end_date}">{$inActiveMember.end_date|crmDate}</td>
<td class="crm-membership-status">{$inActiveMember.status}</td>
<td class="crm-membership-source">{$inActiveMember.source}</td>
<td class="crm-membership-auto_renew">{if $inActiveMember.auto_renew}<img src="{$config->resourceBase}i/check.gif" alt="{ts}Auto-renew{/ts}" /> {/if}</td>
<td>{$inActiveMember.action|replace:'xx':$inActiveMember.id}
{if $inActiveMember.owner_membership_id}
<a href="{crmURL p='civicrm/membership/view' q="reset=1&id=`$inActiveMember.owner_membership_id`&action=view&context=membership&selectedChild=member"}" title="{ts}View Primary member record{/ts}" class="crm-hover-button action-item">{ts}View Primary{/ts}
</a>
{/if}
</td>
</tr>
{/foreach}
</table>
{/strip}
</div>
{/if}
{if $membershipTypes}
<div class="solid-border-bottom">&nbsp;</div>
<div id="membership-types">
<div><label>{ts}Membership Types{/ts}</label></div>
<div class="help">
{ts}The following Membership Types are associated with this organization. Click <strong>Members</strong> for a listing of all contacts who have memberships of that type. Click <strong>Edit</strong> to modify the settings for that type.{/ts}
<div class="form-item">
{strip}
<table id="membership_type" class="display">
<thead>
<tr>
<th>{ts}Name{/ts}</th>
<th>{ts}Period{/ts}</th>
<th>{ts}Fixed Start{/ts}</th>
<th>{ts}Minimum Fee{/ts}</th>
<th>{ts}Duration{/ts}</th>
<th>{ts}Visibility{/ts}</th>
<th></th>
</tr>
</thead>
{foreach from=$membershipTypes item=membershipType}
<tr class="{cycle values="odd-row,even-row"} {$membershipType.class} crm-membership">
<td class="crm-membership-name">{$membershipType.name}</td>
<td class="crm-membership-period_type">{$membershipType.period_type}</td>
<td class="crm-membership-fixed_period_start_day">{$membershipType.fixed_period_start_day}</td>
<td class="crm-membership-minimum_fee">{$membershipType.minimum_fee}</td>
<td class="crm-membership-duration_unit">{$membershipType.duration_unit}</td>
<td class="crm-membership-visibility">{$membershipType.visibility}</td>
<td>{$membershipType.action|replace:xx:$membershipType.id}</td>
</tr>
{/foreach}
</table>
{/strip}
</div>
</div>
{/if}
{/if} {* End of $action eq 16 - browse memberships. *}
</div>

View file

@ -0,0 +1,94 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="view-content">
{if $activeMembers}
<div id="memberships">
<div class="form-item">
{strip}
<table>
<tr class="columnheader">
<th>{ts}Membership{/ts}</th>
<th>{ts}Member Since{/ts}</th>
<th>{ts}Start Date{/ts}</th>
<th>{ts}End Date{/ts}</th>
<th>{ts}Status{/ts}</th>
<th></th>
</tr>
{foreach from=$activeMembers item=activeMember}
<tr class="{cycle values="odd-row,even-row"} {$activeMember.class}">
<td>{$activeMember.membership_type}</td>
<td>{$activeMember.join_date|crmDate}</td>
<td>{$activeMember.start_date|crmDate}</td>
<td>{$activeMember.end_date|crmDate}</td>
<td>{$activeMember.status}</td>
<td>{if $activeMember.renewPageId}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$activeMember.renewPageId`&mid=`$activeMember.id`&reset=1"}">[ {ts}Renew Now{/ts} ]</a>{/if}</td>
</tr>
{/foreach}
</table>
{/strip}
</div>
</div>
{/if}
{if $inActiveMembers}
<div id="ltype">
<p></p>
<div class="label font-red">{ts}Expired / Inactive Memberships{/ts}</div>
<div class="form-item">
{strip}
<table>
<tr class="columnheader">
<th>{ts}Membership{/ts}</th>
<th>{ts}Start Date{/ts}</th>
<th>{ts}End Date{/ts}</th>
<th>{ts}Status{/ts}</th>
<th></th>
</tr>
{foreach from=$inActiveMembers item=inActiveMember}
<tr class="{cycle values="odd-row,even-row"} {$inActiveMember.class}">
<td>{$inActiveMember.membership_type}</td>
<td>{$inActiveMember.start_date|crmDate}</td>
<td>{$inActiveMember.end_date|crmDate}</td>
<td>{$inActiveMember.status}</td>
<td>{if $inActiveMember.renewPageId}<a href="{crmURL p='civicrm/contribute/transact' q="id=`$inActiveMember.renewPageId`&mid=`$inActiveMember.id`&reset=1"}">[ {ts}Renew Now{/ts} ]</a>{/if}</td>
</tr>
{/foreach}
</table>
{/strip}
</div>
</div>
{/if}
{if NOT ($activeMembers or $inActiveMembers)}
<div class="messages status no-popup">
<div class="icon inform-icon"></div></dt>
{ts}There are no memberships on record for you.{/ts}
</div>
{/if}
</div>