You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
redonate/public_html/templates/dashboard.tpl

76 lines
2.5 KiB
Smarty

<h2 class="spaced">Dashboard</h2>
{%if isempty|notices == false}
{%foreach notice in notices}
<div class="notices">
{%?notice}
</div>
{%/foreach}
{%/if}
<table>
<tr>
<th>Name</th>
<th>Type</th>
<th class="icon"><img src="/static/images/icons/subscribers.png" alt="Amount of subscribers" title="Amount of subscribers"></th>
<th class="icon"><img src="/static/images/icons/rate.png" alt="Percentage of subscribed donations actually made in the past month" title="Percentage of subscribed donations actually made in the past month"></th>
<th class="icon"><img src="/static/images/icons/total.png" alt="Total amount of subscribed donations per month" title="Total amount of subscribed donations per month"></th>
<th class="icon"><img src="/static/images/icons/projected.png" alt="Estimate of real donations per month, based on donation rate" title="Estimate of real donations per month, based on donation rate"></th>
<th>Payment methods</th>
</tr>
{%if isempty|campaigns == true}
<tr>
<td colspan="7" class="placeholder">You do not currently have any campaigns.</td>
</tr>
{%else}
{%foreach campaign in campaigns}
<tr class="clickable" data-url="/dashboard/{%?campaign[urlname]}">
<td class="name">
<a href="/dashboard/{%?campaign[urlname]}" class="no-style">
{%?campaign[name]}
</a>
</td>
<td>
{%if campaign[one-off] == false}
Recurring
{%else}
Recurring &amp; One-off
{%/if}
</td>
<td class="numeric">{%?campaign[subscribers]}</td>
<td class="numeric">
{%if campaign[have-data] == true}
{%?campaign[rate]}%
{%else}
-
{%/if}
</td>
<td class="numeric">{%?campaign[total]}</td>
<td class="numeric total">{%?campaign[projection]}</td>
<td class="payment-methods">
{%foreach method in campaign[payment-methods]}
{%if isempty|method[image] == false}
<img class="logo thumb" src="{%?method[image]}" alt="{%?method[text]}">
{%else}
<div class="logo thumb">{%?method[text]}</div>
{%/if}
{%/foreach}
</td>
</tr>
{%/foreach}
{%/if}
<tr class="total">
<td class="meta" colspan="2">Total</td>
<td class="numeric">{%?total-subscribers}</td>
<td class="numeric">{%?total-rate}%</td>
<td class="numeric">{%?total-total}</td>
<td class="numeric total">{%?total-projection}</td>
<td></td>
</tr>
</table>
<div class="toolbar">
<a class="button" href="/create">Create new campaign</a>
<div class="clear"></div>
</div>