Commit 99dfe98a by Sylvia Pearce Committed by Chris Dodge

Update Instructor Dashboard UI text for enrollment codes

parent c482fce9
......@@ -3,7 +3,7 @@ from django.utils.translation import ugettext as _
from django.core.urlresolvers import reverse
%>
<%page args="section_data"/>
<section id="add-coupon-modal" class="modal" role="dialog" tabindex="-1" aria-label="${_('Add Coupon')}">
<section id="add-coupon-modal" class="modal" role="dialog" tabindex="-1" aria-label="${_('Add Coupon Code')}">
<div class="inner-wrapper">
<button class="close-modal">
<i class="icon fa fa-remove"></i>
......@@ -15,12 +15,12 @@ from django.core.urlresolvers import reverse
<div id="coupon-content">
<header>
<h2>${_("Add Coupon")}</h2>
<h2>${_("Add Coupon Code")}</h2>
</header>
<div class="instructions">
<p>
${_("Please enter Coupon detail below")}</p>
${_("Enter information about the coupon code below.")}</p>
</div>
<form id="add_coupon_form">
......@@ -30,12 +30,12 @@ from django.core.urlresolvers import reverse
<ol class="list-input">
<li class="field required text" id="add-coupon-modal-field-code">
<label for="coupon_code" class="required">${_("Code")}</label>
<label for="coupon_code" class="required">${_("Coupon Code")}</label>
<input class="" id="coupon_code" type="text" name="code" maxlength="16" value="" placeholder="example: A123DS"
aria-required="true"/>
</li>
<li class="field required text" id="add-coupon-modal-field-discount">
<label for="coupon_discount" class="required text">${_("Percentage Discount")}</label>
<label for="coupon_discount" class="required text">${_("Discount Percentage")}</label>
<input class="field required" id="coupon_discount" type="text" name="discount" value="" maxlength="3"
aria-required="true"/>
</li>
......@@ -62,7 +62,7 @@ from django.core.urlresolvers import reverse
</fieldset>
<div class="submit">
<input name="submit" type="button" id="add_coupon_button" value="${_('Add Coupon')}"/>
<input name="submit" type="button" id="add_coupon_button" value="${_('Add Coupon Code')}"/>
</div>
</form>
</div>
......
......@@ -131,25 +131,25 @@ import pytz
%endif
%if section_data['coupons_enabled']:
<div class="wrap">
<h2>${_("Discount Code List")}</h2>
<h2>${_("Coupon Code List")}</h2>
<div>
<span class="csv_tip">${_("Download a .csv file of all discount codes for this course.")}
<input class="add blue-button" type="button" name="download-coupon-codes-csv" value="${_("Download Discount Codes")}" data-endpoint="${ section_data['download_coupon_codes_url'] }" data-csv="true">
<span class="csv_tip">${_("Download a .csv file of all coupon codes for this course.")}
<input class="add blue-button" type="button" name="download-coupon-codes-csv" value="${_("Download Coupon Codes")}" data-endpoint="${ section_data['download_coupon_codes_url'] }" data-csv="true">
</span>
<span class="tip">${_("Discount Codes")} <a id="add_coupon_link" href="#add-coupon-modal" rel="leanModal"
class="add blue-button">+ ${_("Add Discount Code")}</a></span>
<span class="tip">${_("Coupon Codes")} <a id="add_coupon_link" href="#add-coupon-modal" rel="leanModal"
class="add blue-button">+ ${_("Add Coupon Code")}</a></span>
<div class="wrapper-content wrapper">
<section class="content">
%if len(section_data['coupons']):
<table class="coupons-table">
<thead>
<tr class="coupons-headings">
<th class="c_code">${_("Discount Code")}</th>
<th class="c_code">${_("Coupon Code")}</th>
<th class="c_dsc">${_("Description")}</th>
<th class="c_expiry">${_("Expiration Date")}</th>
<th class="c_discount">${_("Discount (%)")}</th>
<th class="c_discount">${_("Coupon (%)")}</th>
<th class="c_count">${_("Number Redeemed")}</th>
<th class="c_action">${_("Actions")}</th>
</tr>
......@@ -536,7 +536,7 @@ import pytz
if (code === '') {
$("#add_coupon_button").removeAttr('disabled');
$('#add_coupon_form #coupon_form_error').attr('style', 'display: block !important');
$('#add_coupon_form #coupon_form_error').text("${_('Enter a discount code.')}");
$('#add_coupon_form #coupon_form_error').text("${_('Enter a coupon code.')}");
return false;
}
if (parseInt(coupon_discount) > 100) {
......
......@@ -3,7 +3,7 @@ from django.utils.translation import ugettext as _
from django.core.urlresolvers import reverse
%>
<%page args="section_data"/>
<section id="edit-coupon-modal" class="modal" role="dialog" tabindex="-1" aria-label="${_('Edit Coupon')}">
<section id="edit-coupon-modal" class="modal" role="dialog" tabindex="-1" aria-label="${_('Edit Coupon Code')}">
<div class="inner-wrapper">
<button class="close-modal">
<i class="icon fa fa-remove"></i>
......@@ -15,12 +15,12 @@ from django.core.urlresolvers import reverse
<div id="coupon-content">
<header>
<h2>${_("Update Coupon")}</h2>
<h2>${_("Edit Coupon Code")}</h2>
</header>
<div class="instructions">
<p>
${_("Update Coupon Information")}</p>
${_("Edit Coupon Code Information")}</p>
</div>
<form id="edit_coupon_form" action="${section_data['ajax_update_coupon']}" method="post" data-remote="true">
......@@ -62,7 +62,7 @@ from django.core.urlresolvers import reverse
<div class="submit">
<input type="hidden" name="coupon_id" id="coupon_id"/>
<input name="submit" type="button" id="update_coupon_button" value="${_('Update Coupon')}"/>
<input name="submit" type="button" id="update_coupon_button" value="${_('Update Coupon Code')}"/>
</div>
</form>
</div>
......
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