Commit ced6fb5b by Brian Jacobel Committed by Clinton Blackburn

Move manual refunds page to Mako

parent 4a9960e4
{% extends "main_django.html" %} ## mako
{% load i18n %}
{% block title %} <%!
from django.utils.translation import ugettext as _
from django.utils.html import escape
%>
<%inherit file="../main.html"/>
<%block name="title">
<title> <title>
Manual Refund Manual Refund
</title> </title>
{% endblock %} </%block>
{% block headextra %} <%block name="headextra">
<style type="text/css"> <style type="text/css">
.errorlist,.messages { .errorlist,.messages {
...@@ -18,56 +25,57 @@ strong { ...@@ -18,56 +25,57 @@ strong {
padding-right: 10px; padding-right: 10px;
} }
</style> </style>
{% endblock %} </%block>
{% block body %} <%block name="body">
<div class="content-wrapper" id="content"> <div class="content-wrapper" id="content">
<div class="container about"> <div class="container about">
<h1>{% trans "Manual Refund" %}</h1> <h1>${_("Manual Refund")}</h1>
{% if messages %} % if messages:
<ul class="messages"> <ul class="messages">
{% for message in messages %} % for message in messages:
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li> <li class="${message.tags if message.tags else ''}">${message}</li>
{% endfor %} % endfor
</ul> </ul>
{% endif %} % endif
<form method="POST" id="refund_form"> <form method="POST" id="refund_form">
{% csrf_token %} <input type="hidden" id="csrf_token" name="csrfmiddlewaretoken" value="${csrf_token}" />
{{form.as_p}} ${form.as_p()}
<p> <p>
<input type="button" value="Cancel" onclick="javascript:location=location"/> <input type="submit" value="{% if cert %}Refund{% else %}Confirm{% endif %}" /> <input type="button" value="Cancel" onclick="javascript:location=location"/> <input type="submit" value="${'Refund' if cert else 'Confirm'}" />
</p> </p>
</form> </form>
{% if cert %} % if cert:
<section class="content-wrapper"> <section class="content-wrapper">
<h2> <h2>
{% trans "About to refund this order:" %} ${_("About to refund this order:")}
</h2> </h2>
<p> <p>
<strong>{% trans "Order Id:" %}</strong> {{cert.order.id}} <strong>${_("Order Id:")}</strong> ${cert.order.id}
</p> </p>
<p> <p>
<strong>{% trans "Enrollment:" %}</strong> {{enrollment.course_id|escape}} {{enrollment.mode}} ({% if enrollment.is_active %}{% trans "enrolled" %}{% else %}{% trans "unenrolled" %}{% endif %}) <strong>${_("Enrollment:")}</strong> ${escape(enrollment.course_id)} ${enrollment.mode}
(${_("enrolled") if enrollment.is_active else _("unenrolled")})
</p> </p>
<p> <p>
<strong>{% trans "Cost:" %}</strong> {{cert.unit_cost}} {{cert.currency}} <strong>${_("Cost:")}</strong> ${cert.unit_cost} ${cert.currency}
</p> </p>
<p> <p>
<strong>{% trans "CertificateItem Status:" %}</strong> {{cert.status}} <strong>${_("CertificateItem Status:")}</strong> ${cert.status}
</p> </p>
<p> <p>
<strong>{% trans "Order Status:" %}</strong> {{cert.order.status}} <strong>${_("Order Status:")}</strong> ${cert.order.status}
</p> </p>
<p> <p>
<strong>{% trans "Fulfilled Time:" %}</strong> {{cert.fulfilled_time}} <strong>${_("Fulfilled Time:")}</strong> ${cert.fulfilled_time}
</p> </p>
<p> <p>
<strong>{% trans "Refund Request Time:" %}</strong> {{cert.refund_requested_time}} <strong>${_("Refund Request Time:")}</strong> ${cert.refund_requested_time}
</p> </p>
</section> </section>
{% endif %} % endif
</div> </div>
</div> </div>
{% endblock %} </%block>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment