Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
ced6fb5b
Commit
ced6fb5b
authored
Apr 12, 2016
by
Brian Jacobel
Committed by
Clinton Blackburn
May 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move manual refunds page to Mako
parent
4a9960e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
27 deletions
+35
-27
lms/templates/support/refund.html
+35
-27
No files found.
lms/templates/support/refund.html
View file @
ced6fb5b
{% 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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment