Ignore:
Timestamp:
19/07/08 07:17:20 (4 years ago)
Author:
nigel.sim
Message:
  • Added payment history
    • Added editing capibilities
File:
1 edited

Legend:

Unmodified
Added
Removed
  • django/domainmanager/trunk/templates/domains/domain.html

    r135 r143  
    1515</form> 
    1616 
    17 <h2>Add payment</h2> 
     17<h2>Add charge</h2> 
    1818<form action='{{ request.path }}' method='POST'> 
    19 <input type='hidden' name='edit_id' value='{{ edit_id }}'> 
     19<input type='hidden' name='action' value='addCharge'> 
    2020<table> 
    2121{{ addPaymentForm }} 
    2222<tr> 
    2323  <td colspan=2 align=right> 
    24     <input type=submit name='submitAction' value='save'> 
     24    <input type=submit name='submitAction' value='add'> 
    2525  </td> 
    2626</tr> 
     
    3030<h2>History of charges</h2> 
    3131<table> 
    32 {{ paymentHistory }} 
     32<tr><th>Description</th><th>Amount</th><th>Invoice date</th><th>Payment date</th></tr> 
     33{% for charge in paymentHistory %} 
     34        <tr> 
     35                <td><a href="?edit_charge={{charge.id}}">{{charge.description}}</a></td> 
     36                <td>{{charge.amount}}</td> 
     37                <td>{{charge.invoice_date}}</td> 
     38                <td>{{charge.payment_date}}</td> 
     39        </tr> 
     40{% endfor %} 
    3341</table> 
    3442 
Note: See TracChangeset for help on using the changeset viewer.