Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
ced6fb5b
Commit
ced6fb5b
authored
8 years ago
by
Brian Jacobel
Committed by
Clinton Blackburn
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Move manual refunds page to Mako
parent
4a9960e4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/templates/support/refund.html
+35
-27
35 additions, 27 deletions
lms/templates/support/refund.html
with
35 additions
and
27 deletions
lms/templates/support/refund.html
+
35
−
27
View file @
ced6fb5b
{% extends "main_django.html" %}
{% load i18n %}
{% block title %}
## mako
<
%!
from
django.utils.translation
import
ugettext
as
_
from
django.utils.html
import
escape
%
>
<
%
inherit
file=
"../main.html"
/>
<
%
block
name=
"title"
>
<title>
Manual Refund
</title>
{% end
block
%}
{%
block headextra
%}
</
%
block
>
<
%
block
name=
"
headextra
"
>
<style
type=
"text/css"
>
.errorlist
,
.messages
{
...
...
@@ -18,56 +25,57 @@ strong {
padding-right
:
10px
;
}
</style>
{% end
block
%}
</
%
block
>
{%
block body
%}
<
%
block
name=
"
body
"
>
<div
class=
"content-wrapper"
id=
"content"
>
<div
class=
"container about"
>
<h1>
{% trans
"Manual Refund"
%
}
</h1>
{
% if messages
%}
<h1>
${_(
"Manual Refund"
)
}
</h1>
% if messages
:
<ul
class=
"messages"
>
{
% for message in messages
%}
<li
{%
if
message.tags
%}
class=
"{{
message.tags
}}"
{%
endif
%}
>
{{
message
}
}
</li>
{
% endfor
%}
% for message in messages
:
<li
class=
"${
message.tags
if
message.tags
else ''}"
>
${
message}
</li>
% endfor
</ul>
{
% endif
%}
% endif
<form
method=
"POST"
id=
"refund_form"
>
{% csrf_token %}
{
{form.as_p
}
}
<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=
"
{% 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>
</form>
{
% if cert
%}
% if cert
:
<section
class=
"content-wrapper"
>
<h2>
{% trans
"About to refund this order:"
%
}
${_(
"About to refund this order:"
)
}
</h2>
<p>
<strong>
{% trans
"Order Id:"
%
}
</strong>
{
{cert.order.id}
}
<strong>
${_(
"Order Id:"
)
}
</strong>
$
{cert.order.id}
</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>
<strong>
{% trans
"Cost:"
%
}
</strong>
{
{cert.unit_cost}
} {
{cert.currency}
}
<strong>
${_(
"Cost:"
)
}
</strong>
$
{cert.unit_cost}
$
{cert.currency}
</p>
<p>
<strong>
{% trans
"CertificateItem Status:"
%
}
</strong>
{
{cert.status}
}
<strong>
${_(
"CertificateItem Status:"
)
}
</strong>
$
{cert.status}
</p>
<p>
<strong>
{% trans
"Order Status:"
%
}
</strong>
{
{cert.order.status}
}
<strong>
${_(
"Order Status:"
)
}
</strong>
$
{cert.order.status}
</p>
<p>
<strong>
{% trans
"Fulfilled Time:"
%
}
</strong>
{
{cert.fulfilled_time}
}
<strong>
${_(
"Fulfilled Time:"
)
}
</strong>
$
{cert.fulfilled_time}
</p>
<p>
<strong>
{% trans
"Refund Request Time:"
%
}
</strong>
{
{cert.refund_requested_time}
}
<strong>
${_(
"Refund Request Time:"
)
}
</strong>
$
{cert.refund_requested_time}
</p>
</section>
{
% endif
%}
% endif
</div>
</div>
{% end
block
%}
</
%
block
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment