Show placeholder when no payment methods have been added yet.

master
Sven Slootweg 11 years ago
parent c8245bdcfe
commit ea90903198

@ -51,25 +51,29 @@
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<table class="payment-methods"> {%if isempty|payment-methods == false}
{%foreach method in payment-methods} <table class="payment-methods">
<tr> {%foreach method in payment-methods}
<td class="logo"> <tr>
{%if isempty|method[image] == false} <td class="logo">
<img class="logo" src="{%?method[image]}" alt="{%?method[text]}"> {%if isempty|method[image] == false}
{%else} <img class="logo" src="{%?method[image]}" alt="{%?method[text]}">
<div class="logo">{%?method[text]}</div> {%else}
{%/if} <div class="logo">{%?method[text]}</div>
</td> {%/if}
<td class="address"> </td>
{%?method[address]} <td class="address">
</td> {%?method[address]}
<td class="remove"> </td>
<form method="post" action="/dashboard/{%?urlname}/remove-payment-method/{%?method[id]}"> <td class="remove">
<button type="submit">Remove</button> <form method="post" action="/dashboard/{%?urlname}/remove-payment-method/{%?method[id]}">
</form> <button type="submit">Remove</button>
</td> </form>
</tr> </td>
{%/foreach} </tr>
</table> {%/foreach}
</table>
{%else}
<p>No payment methods have been added yet.</p>
{%/if}
</div> </div>

Loading…
Cancel
Save