{% extends "make_payments/base.html" %}
{% load i18n %}
{% load make_payment_tags %}
{% load base_filters %}
{% load i18n %}

{% block title %}Make a Payment{% endblock %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}css/make_payments.css">
{% endblock %}

{% block body %}
<div class="t">
 {% make_payment_nav mp %}

<h1>{% trans "View a Payment" %}</h1>
<div class="make-payment-view">
<div class="label">{% trans "Payment Amount:" %}</div><div>{{ mp.payment_amount }}</div>
<div class="clear-left"></div>
<div class="label">{% trans "Invoice ID:" %}</div><div><a href="{% url invoice.view mp.invoice_id %}">{{ mp.invoice_id }}</a></div>
<div class="clear-left"></div>
{% if mp.user %}
<div class="label">{% trans "User:" %}</div><div><a href="{% url profile mp.user.username %}">{{mp.user.username }}</a></div>
<div class="clear-left"></div>
{% endif %}
<br />
<div class="label">{% trans "Name:" %}</div><div>{{ mp.first_name }} {{ mp.last_name }}</div>
<div class="clear-left"></div>
<div class="label">{% trans "Company:" %}</div><div>{{ mp.company }}</div>
<div class="clear-left"></div>
<div class="label">{% trans "Address:" %}</div><div>{{ mp.address }} {{ mp.address2 }} 
		{{ mp.city }} {{ mp.state }} {{ mp.zip_code }} {{ mp.country }}</div>
<div class="clear-left"></div>
<div class="label">{% trans "Phone:" %}</div><div>{{ mp.phone|phonenumber }}</div>
<div class="clear-left"></div>
<div class="label">{% trans "Email:" %}</div><div>{{ mp.email|obfuscate_email }}</div>
<div class="clear-left"></div>
<br />
<div class="label">{% blocktrans with mp.referral_source as mpref %}Referred By:</div><div>{{ mpref }}{% endblocktrans %}</div>
<div class="clear-left"></div>
<div class="label">{% trans "Comments:" %}</div><div>{{ mp.comments|safe }}</div>
<div class="clear-left"></div>
<br />
<div class="label">{% trans "Create Date:" %}</div><div>{{ mp.create_dt|date:'long' }}</div>
<div class="clear-left"></div>
</div>
</div>
{% endblock %}
