Merge pull request #4737 from eileenmcnaughton/master
[civicrm-core.git] / templates / CRM / Contribute / Page / ContributionPage.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.5 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2014 |
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 {capture assign=newPageURL}{crmURL p='civicrm/admin/contribute/add' q='action=add&reset=1'}{/capture}
27 <div id="help">
28 {ts}CiviContribute allows you to create and maintain any number of Online Contribution Pages. You can create different pages for different programs or campaigns - and customize text, amounts, types of information collected from contributors, etc.{/ts} {help id="id-intro"}
29 </div>
30
31 {include file="CRM/Contribute/Form/SearchContribution.tpl"}
32 {if NOT ($action eq 1 or $action eq 2) }
33 <table class="form-layout-compressed">
34 <tr>
35 <td><a href="{$newPageURL}" class="button"><span><div class="icon add-icon"></div>{ts}Add Contribution Page{/ts}</span></a></td>
36 <td style="vertical-align: top"><a class="button" href="{crmURL p="civicrm/admin/pcp" q="reset=1"}"><span>{ts}Manage Personal Campaign Pages{/ts}</span></a> {help id="id-pcp-intro" file="CRM/PCP/Page/PCP.hlp"}</td>
37 </tr>
38 </table>
39 {/if}
40
41 {if $rows}
42 <div id="configure_contribution_page">
43 {strip}
44
45 {include file="CRM/common/pager.tpl" location="top"}
46 {include file="CRM/common/pagerAToZ.tpl"}
47 {* handle enable/disable actions *}
48 {include file="CRM/common/enableDisableApi.tpl"}
49 {include file="CRM/common/crmeditable.tpl"}
50 {include file="CRM/common/jsortable.tpl"}
51 <table id="options" class="display">
52 <thead>
53 <tr>
54 <th id="sortable">{ts}Title{/ts}</th>
55 <th>{ts}ID{/ts}</th>
56 <th>{ts}Enabled?{/ts}</th>
57 {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))}
58 <th>{ts}Campaign{/ts}</th>
59 {/if}
60 <th></th>
61 </tr>
62 </thead>
63 {foreach from=$rows item=row}
64 <tr id="contribution_page-{$row.id}" class="crm-entity {if NOT $row.is_active} disabled{/if}">
65 <td><strong>{$row.title}</strong></td>
66 <td>{$row.id}</td>
67 <td id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td>
68 {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))}
69 <td>{$row.campaign}</td>
70 {/if}
71 <td class="crm-contribution-page-actions right nowrap">
72
73 {if $row.configureActionLinks}
74 <div class="crm-contribution-page-configure-actions">
75 {$row.configureActionLinks|replace:'xx':$row.id}
76 </div>
77 {/if}
78
79 {if $row.contributionLinks}
80 <div class="crm-contribution-online-contribution-actions">
81 {$row.contributionLinks|replace:'xx':$row.id}
82 </div>
83 {/if}
84
85 {if $row.onlineContributionLinks}
86 <div class="crm-contribution-search-contribution-actions">
87 {$row.onlineContributionLinks|replace:'xx':$row.id}
88 </div>
89 {/if}
90
91 <div class="crm-contribution-page-more">
92 {$row.action|replace:'xx':$row.id}
93 </div>
94
95 </td>
96
97 </tr>
98 {/foreach}
99 </table>
100
101 {/strip}
102 </div>
103 {else}
104 {if $isSearch eq 1}
105 <div class="status messages">
106 <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/>
107 {capture assign=browseURL}{crmURL p='civicrm/contribute/manage' q="reset=1"}{/capture}
108 {ts}No available Contribution Pages match your search criteria. Suggestions:{/ts}
109 <div class="spacer"></div>
110 <ul>
111 <li>{ts}Check your spelling.{/ts}</li>
112 <li>{ts}Try a different spelling or use fewer letters.{/ts}</li>
113 <li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li>
114 </ul>
115 {ts 1=$browseURL}Or you can <a href='%1'>browse all available Contribution Pages</a>.{/ts}
116 </div>
117 {else}
118 <div class="messages status no-popup">
119 <div class="icon inform-icon"></div> &nbsp;
120 {ts 1=$newPageURL}No contribution pages have been created yet. Click <a accesskey="N" href='%1'>here</a> to create a new contribution page.{/ts}
121 </div>
122 {/if}
123 {/if}