Commit | Line | Data |
---|---|---|
cde51233 J |
1 | {*<h3>This new page is generated by CRM/Wci/Page/ProgressBarList.php</h3> *} |
2 | ||
3 | {* Example: Display a variable directly | |
4 | <p>The current time is {$currentTime}</p> | |
5 | *} | |
6 | {* Example: Display a translated string -- which happens to include a variable | |
7 | <p>{ts 1=$currentTime}(In your native language) The current time is %1.{/ts}</p> | |
8 | *} | |
9 | ||
10 | {* | |
11 | {capture assign=newPageURL}{crmURL p='civicrm/admin/contribute/add' q='action=add&reset=1'}{/capture} | |
12 | <div id="help"> | |
13 | {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"} | |
14 | </div> | |
15 | ||
16 | {include file="CRM/Contribute/Form/SearchContribution.tpl"} | |
17 | {if NOT ($action eq 1 or $action eq 2) } | |
18 | <table class="form-layout-compressed"> | |
19 | <tr> | |
20 | <td><a href="{$newPageURL}" class="button"><span><div class="icon add-icon"></div>{ts}Add Contribution Page{/ts}</span></a></td> | |
21 | <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> | |
22 | </tr> | |
23 | </table> | |
24 | {/if} | |
25 | *} | |
26 | {if $rows} | |
27 | <div id="configure_contribution_page"> | |
28 | {strip} | |
29 | ||
30 | {include file="CRM/common/pager.tpl" location="top"} | |
31 | {include file="CRM/common/pagerAToZ.tpl"} | |
32 | {* handle enable/disable actions *} | |
33 | {include file="CRM/common/enableDisable.tpl"} | |
34 | {include file="CRM/common/jsortable.tpl"} | |
35 | <table id="options" class="display"> | |
36 | <thead> | |
37 | <tr> | |
38 | <th id="sortable">{ts}Name{/ts}</th> | |
39 | <th>{ts}Goal Amout{/ts}</th> | |
40 | {*<th>{ts}Enabled?{/ts}</th>*} | |
41 | {* | |
42 | {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))} | |
43 | <th>{ts}Campaign{/ts}</th> | |
44 | {/if} *} | |
45 | <th></th> | |
46 | </tr> | |
47 | </thead> | |
48 | {foreach from=$rows item=row} | |
49 | <tr id="row_{$row.id}" > {* class="{if NOT $row.is_active} disabled{/if}" *} | |
50 | <td><strong>{$row.name}</strong></td> | |
51 | <td>{$row.goal_amount}</td> | |
52 | {* <td id="row_{$row.id}_status">{if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}</td> | |
53 | {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))} | |
54 | <td>{$row.campaign}</td> | |
55 | {/if} *} | |
56 | <td class="crm-contribution-page-actions right nowrap"> | |
57 | ||
58 | {if $row.configureActionLinks} | |
59 | <div class="crm-contribution-page-configure-actions"> | |
60 | {$row.configureActionLinks|replace:'xx':$row.id} | |
61 | </div> | |
62 | {/if} | |
63 | ||
64 | {if $row.contributionLinks} | |
65 | <div class="crm-contribution-online-contribution-actions"> | |
66 | {$row.contributionLinks|replace:'xx':$row.id} | |
67 | </div> | |
68 | {/if} | |
69 | ||
70 | {if $row.onlineContributionLinks} | |
71 | <div class="crm-contribution-search-contribution-actions"> | |
72 | {$row.onlineContributionLinks|replace:'xx':$row.id} | |
73 | </div> | |
74 | {/if} | |
75 | ||
76 | <div class="crm-contribution-page-more"> | |
77 | {$row.action|replace:'xx':$row.id} | |
78 | </div> | |
79 | ||
80 | </td> | |
81 | ||
82 | </tr> | |
83 | {/foreach} | |
84 | </table> | |
85 | ||
86 | {/strip} | |
87 | </div> | |
88 | {else} | |
89 | {if $isSearch eq 1} | |
90 | <div class="status messages"> | |
91 | <img src="{$config->resourceBase}i/Inform.gif" alt="{ts}status{/ts}"/> | |
92 | {capture assign=browseURL}{crmURL p='civicrm/contribute/manage' q="reset=1"}{/capture} | |
93 | {ts}No available Contribution Pages match your search criteria. Suggestions:{/ts} | |
94 | <div class="spacer"></div> | |
95 | <ul> | |
96 | <li>{ts}Check your spelling.{/ts}</li> | |
97 | <li>{ts}Try a different spelling or use fewer letters.{/ts}</li> | |
98 | <li>{ts}Make sure you have enough privileges in the access control system.{/ts}</li> | |
99 | </ul> | |
100 | {ts 1=$browseURL}Or you can <a href='%1'>browse all available Contribution Pages</a>.{/ts} | |
101 | </div> | |
102 | {else} | |
103 | <div class="messages status no-popup"> | |
104 | <div class="icon inform-icon"></div> | |
105 | {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} | |
106 | </div> | |
107 | {/if} | |
108 | {/if} |