Changeset - bc2187e280f2
[Not reviewed]
0 1 0
Joel Addison - 4 years ago 2020-01-05 04:06:22
joel@addison.net.au
Update manual payment page

Add title to page. Adjust spacing of sections.
1 file changed with 23 insertions and 19 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/registrasion/manual_payment.html
Show inline comments
 
{% extends "registrasion/base.html" %}
 
{% load bootstrap %}
 

	
 
{% block proposals_body %}
 

	
 
  <h1>Invoice {{ invoice.id }} - {{ invoice.get_status_display }}</h1>
 
{% block head_title %}Manual Payment{% endblock %}
 
{% block page_title %}Manual Payment{% endblock %}
 

	
 
  <h2>Past payments</h2>
 

	
 
  {% include "registrasion/payment_list.html" with payments=invoice.paymentbase_set.all %}
 
{% block proposals_body %}
 
  <h2>Invoice {{ invoice.id }} - {{ invoice.get_status_display }}</h2>
 

	
 
  <h2>Apply manual payment</h2>
 
  <div class="mb-3">
 
    <h3>Past payments</h3>
 

	
 
  <p>Enter a reference and the amount of the payment. A refund is a negative
 
  payment.</p>
 
    {% include "registrasion/payment_list.html" with payments=invoice.paymentbase_set.all %}
 
  </div>
 

	
 
  <form class="form-horizontal" method="post" action="">
 
    {% csrf_token %}
 
  <div class="mb-3">
 
    <h3>Apply manual payment</h3>
 

	
 
    <table>
 
        {{ form|bootstrap }}
 
    </table>
 
    <p>Enter a reference and the amount of the payment. A refund is a negative
 
    payment.</p>
 

	
 
    <div class="form-actions">
 
        <input class="btn btn-primary" type="submit" value="Apply payment" />
 
        <a class="btn btn-secondary" href="{% url "invoice" invoice.id %}">Return to invoice</a>
 
    </div>
 
  </form>
 
    <form class="form-horizontal" method="post" action="">
 
      {% csrf_token %}
 

	
 
      <table>
 
          {{ form|bootstrap }}
 
      </table>
 

	
 
      <div class="form-actions">
 
          <input class="btn btn-primary" type="submit" value="Apply payment" />
 
          <a class="btn btn-link" href="{% url "invoice" invoice.id %}">Return to invoice</a>
 
      </div>
 
    </form>
 
  </div>
 
{% endblock %}
0 comments (0 inline, 0 general)