Files
edx-platform/lms/templates/support/refund.html
2016-04-25 15:08:16 -04:00

84 lines
2.2 KiB
HTML

## mako
<%page expression_filter="h"/>
<%!
from django.utils.translation import ugettext as _
from django.utils.html import escape
%>
<%inherit file="../main.html"/>
<%block name="title">
<title>
Manual Refund
</title>
</%block>
<%block name="headextra">
<style type="text/css">
.errorlist,.messages {
color: red;
}
.success {
color: green;
}
strong {
padding-right: 10px;
}
</style>
</%block>
<%block name="body">
<div class="content-wrapper" id="content">
<div class="container about">
<h1>${_("Manual Refund")}</h1>
% if messages:
<ul class="messages">
% for message in messages:
<li class="${message.tags if message.tags else ''}">${message}</li>
% endfor
</ul>
% endif
<form method="POST" id="refund_form">
<input type="hidden" id="csrf_token" name="csrfmiddlewaretoken" value="${csrf_token}" />
${form.as_p()}
<p>
<input type="button" value="Cancel" onclick="javascript:location=location"/> <input type="submit" value="${'Refund' if cert else 'Confirm'}" />
</p>
</form>
% if cert:
<section class="content-wrapper">
<h2>
${_("About to refund this order:")}
</h2>
<p>
<strong>${_("Order Id:")}</strong> ${cert.order.id}
</p>
<p>
<strong>${_("Enrollment:")}</strong> ${escape(enrollment.course_id)} ${enrollment.mode}
(${_("enrolled") if enrollment.is_active else _("unenrolled")})
</p>
<p>
<strong>${_("Cost:")}</strong> ${cert.unit_cost} ${cert.currency}
</p>
<p>
<strong>${_("CertificateItem Status:")}</strong> ${cert.status}
</p>
<p>
<strong>${_("Order Status:")}</strong> ${cert.order.status}
</p>
<p>
<strong>${_("Fulfilled Time:")}</strong> ${cert.fulfilled_time}
</p>
<p>
<strong>${_("Refund Request Time:")}</strong> ${cert.refund_requested_time}
</p>
</section>
% endif
</div>
</div>
</%block>