_dashboard_refund.html 2.14 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
{% extends "main_django.html" %}
{% load i18n %}
{% block title %}
<title>
Manual Refund
</title>
{% endblock %}
{% block headextra %}

<style type="text/css">
.errorlist,.messages {
    color: red;
}
.success {
    color: green;
}
strong {
    padding-right: 10px;
}
</style>
{% endblock %}


{% block body %}
<div class="content-wrapper" id="content">
    <div class="container about">
        <h1>{% trans "Manual Refund" %}</h1>
        {% if messages %}
        <ul class="messages">
            {% for message in messages %}
            <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
            {% endfor %}
        </ul>
        {% endif %}

        <form method="POST" id="refund_form">
            {% csrf_token %}
            {{form.as_p}}
            <p>
            <input type="button" value="Cancel" onclick="javascript:location=location"/> <input type="submit" value="{% if cert %}Refund{% else %}Confirm{% endif %}" /> 
            </p>
        </form>
        {% if cert %}
        <section class="content-wrapper">
            <h2>
                {% trans "About to refund this order:" %}
            </h2>
            <p>
                <strong>{% trans "Order Id:" %}</strong> {{cert.order.id}}
            </p>
            <p>
                <strong>{% trans "Enrollment:" %}</strong> {{enrollment.course_id}} {{enrollment.mode}} ({% if enrollment.is_active %}{% trans "enrolled" %}{% else %}{% trans "unenrolled" %}{% endif %})
            </p>
            <p>
                <strong>{% trans "Cost:" %}</strong> {{cert.unit_cost}} {{cert.currency}}
            </p>
            <p>
                <strong>{% trans "CertificateItem Status:" %}</strong> {{cert.status}}
            </p>
            <p>
                <strong>{% trans "Order Status:" %}</strong> {{cert.order.status}}
            </p>
            <p>
                <strong>{% trans "Fulfilled Time:" %}</strong> {{cert.fulfilled_time}}
            </p>
            <p>
                <strong>{% trans "Refund Request Time:" %}</strong> {{cert.refund_requested_time}}
            </p>
        </section>
        {% endif %}
    </div>
</div>
{% endblock %}