Commit 0f9b501d by Sylvia Pearce

Update UI text for enrollment codes

parent 93a3bf55
......@@ -13,32 +13,32 @@
<h2>${_('Registration Codes')}</h2>
<div>
%if section_data['sales_admin']:
<span class="code_tip">${_('Click to generate Registration Codes')}
<a id="registration_code_generation_link" href="#reg_code_generation_modal" class="add blue-button">${_('Generate Registration Codes')}</a>
<span class="code_tip">${_('Create one or more pre-paid course enrollment codes. Students can use these codes to enroll in the course.')}
<a id="registration_code_generation_link" href="#reg_code_generation_modal" class="add blue-button">${_('Create Enrollment Codes')}</a>
</span>
%endif
<p>${_('Click to generate a CSV file of all Course Registrations Codes:')}</p>
<p>${_('Download a .csv file of all enrollment codes for this course')}</p>
<p>
<form action="${ section_data['get_registration_code_csv_url'] }" id="download_registration_codes" method="post">
<input type="hidden" name="csrfmiddlewaretoken" value="${ csrf_token }">
<input type="text" name="download_company_name" placeholder="Company Name (Optional)"/>
<input type="submit" name="list-registration-codes-csv" value="${_("Download Registration Codes")}" data-csv="true">
<input type="text" name="download_company_name" placeholder="Company Name (optional)"/>
<input type="submit" name="list-registration-codes-csv" value="${_("Download All Enrollment Codes")}" data-csv="true">
</form>
</p>
<p>${_('Click to generate a CSV file of all Active Course Registrations Codes:')}</p>
<p>${_('Download a .csv file of all unused enrollment codes for this course')}</p>
<p>
<form action="${ section_data['active_registration_code_csv_url'] }" id="active_registration_codes" method="post">
<input type="hidden" name="csrfmiddlewaretoken" value="${ csrf_token }">
<input type="text" name="active_company_name" placeholder="Company Name (Optional)"/>
<input type="submit" name="active-registration-codes-csv" value="${_("Active Registration Codes")}" data-csv="true">
<input type="text" name="active_company_name" placeholder="Company Name (optional)"/>
<input type="submit" name="active-registration-codes-csv" value="${_("Download Unused Enrollment Codes")}" data-csv="true">
</form>
</p>
<p>${_('Click to generate a CSV file of all Spent Course Registrations Codes:')}</p>
<p>${_('Download a .csv file of all used enrollment codes for this course')}</p>
<p>
<form action="${ section_data['spent_registration_code_csv_url'] }" id="spent_registration_codes" method="post">
<input type="hidden" name="csrfmiddlewaretoken" value="${ csrf_token }">
<input type="text" name="spent_company_name" placeholder="Company Name (Optional)"/>
<input type="submit" name="spent-registration-codes-csv" value="${_("Spent Registration Codes")}" data-csv="true">
<input type="text" name="spent_company_name" placeholder="Company Name (optional)"/>
<input type="submit" name="spent-registration-codes-csv" value="${_("Download Used Enrollment Codes")}" data-csv="true">
</form>
</p>
<a id="registration_code_generation_link-trigger" href="#registration_code_generation_modal" rel="leanModal"></a>
......@@ -63,21 +63,21 @@
<h2>${_("Sales")}</h2>
<div>
%if section_data['total_amount'] is not None:
<span><strong>${_("Total CC Amount: ")}</strong></span><span>$${section_data['total_amount']}</span>
<span><strong>${_("Total Credit Card Purchases: ")}</strong></span><span>$${section_data['total_amount']}</span>
%endif
<span class="csv_tip">
<div >
${_("Click to generate a CSV file for all sales records in this course")}
<input type="button" class="add blue-button" name="list-sale-csv" value="${_("Download All Invoice Sales")}" data-endpoint="${ section_data['get_sale_records_url'] }" data-csv="true">
<input type="button" class="add blue-button" name="list-order-sale-csv" value="${_("Download All CC Sales")}" data-endpoint="${ section_data['get_sale_order_records_url'] }" data-csv="true">
${_("Download a .csv file for all credit card purchases or for all invoices, regardless of status")}
<input type="button" class="add blue-button" name="list-sale-csv" value="${_("Download All Invoices")}" data-endpoint="${ section_data['get_sale_records_url'] }" data-csv="true">
<input type="button" class="add blue-button" name="list-order-sale-csv" value="${_("Download All Credit Card Purchases")}" data-endpoint="${ section_data['get_sale_order_records_url'] }" data-csv="true">
</div>
</span>
<hr>
<p>${_("Enter the invoice number to invalidate or re-validate sale")}</p>
<p>${_("To cancel or resubmit an invoice, enter the invoice number below.")}</p>
<span class="invalid_sale">
<input type="number" id="invoice_number" placeholder= "${_("Enter Invoice Number")}"/>
<input type="button" class="add blue-button" id="invalidate_invoice" value="${_("Invalidate Sale")}">
<input type="button" class="add blue-button" id="re_validate_invoice" value="${_("Revalidate Sale")}">
<input type="number" id="invoice_number" placeholder= "${_("Invoice Number")}"/>
<input type="button" class="add blue-button" id="invalidate_invoice" value="${_("Cancel Invoice")}">
<input type="button" class="add blue-button" id="re_validate_invoice" value="${_("Resubmit Invoice")}">
</span>
</div>
......
......@@ -13,12 +13,12 @@
<div id="registration-content">
<header>
<h2>${_("Generate Registration Codes")}</h2>
<h2>${_("Create Enrollment Codes")}</h2>
</header>
<div class="instructions">
<p>
${_("Please enter the details below")}</p>
${_("* Required Information")}</p>
</div>
<form id="generate_codes" action="${section_data['generate_registration_code_csv_url']}" method="post">
......@@ -33,15 +33,15 @@
<input class="field required" id="id_company_name" type="text" name="company_name"
placeholder="${_('Organization Name')}" aria-required="true" />
<span class="tip-text">
${_("What is the company the seats were sold to?")}
${_("The organization that purchased enrollments in the course")}
</span>
</li>
<li class="field required text" id="generate-registration-modal-field-company-contact-name">
<label for="id_company_contact_name" class="required text">${_("Organization Contact")}</label>
<input class="field required" id="id_company_contact_name" type="text" name="company_contact_name"
placeholder="${_('Name')}" aria-required="true" />
placeholder="${_('Organization Contact Name')}" aria-required="true" />
<span class="tip-text">
${_("Who is the key contact at the company the sale was made to? ")}
${_("The primary contact at the organization")}
</span>
</li>
<li class="field text" id="generate-registration-modal-field-company-email">
......@@ -55,7 +55,7 @@
<input class="field required" id="id_recipient_name" type="text" name="recipient_name"
placeholder="${_('Name')}" aria-required="true"/>
<span class="tip-text">
${_("Who at the company should the invoice be sent to?")}
${_("The contact who should receive the invoice")}
</span>
</li>
<li class="field text" id="generate-registration-modal-field-recipient-email">
......@@ -103,36 +103,36 @@
</li>
<div class="clearfix"></div>
<li class="field required text" id="generate-registration-modal-field-total-price">
<label for="id_sale_price" class="required text">${_("Price of Sale")}</label>
<label for="id_sale_price" class="required text">${_("Sale Price")}</label>
<input class="field required" id="id_sale_price" type="text" name="sale_price"
aria-required="true" />
<span class="tip-text">
${_("What was the total sale price for all seats sold?")}
${_("The total price for all enrollments purchased")}
</span>
</li>
<li class="field required text" id="generate-registration-modal-field-total-codes">
<label for="id_total_registration_codes" class="required text">${_("Number of registrations")}</label>
<label for="id_total_registration_codes" class="required text">${_("Number of Enrollment Codes")}</label>
<input class="field required" id="id_total_registration_codes" type="text" name="total_registration_codes"
aria-required="true"/>
<span class="tip-text">
${_("Number of codes to generate for the Invoice")}
${_("The total number of enrollment codes to create")}
</span>
</li>
<div class="clearfix"></div>
<li class="field text" id="generate-registration-modal-field-internal-reference">
<label for="id_internal_reference" >${_("(Optional) Sale Label")}</label>
<label for="id_internal_reference" >${_("Course Team Internal Reference")}</label>
<input class="field" id="id_internal_reference" type="text" name="internal_reference"
aria-required="true" placeholder="BigCorp-IT-Department-1"/>
aria-required="true" placeholder=""/>
<span class="tip-text">
${_("Internal tag to associate with the sale")}
${_("Internal reference information for the sale")}
</span>
</li>
<li class="field text" id="generate-registration-modal-field-custom-reference-number">
<label for="id_customer_reference_number" >${_("(Optional) Customer Reference Number")}</label>
<label for="id_customer_reference_number" >${_("Customer Reference")}</label>
<input class="field" id="id_customer_reference_number" type="text" name="customer_reference_number"
aria-required="true" placeholder="PO #"/>
<span class="tip-text">
${_("Any reference specific to the purchasing company, e.g. PO #")}
${_("Customer's purchase order or other reference information")}
</span>
</li>
<div class="clearfix"></div>
......@@ -144,7 +144,7 @@
</ol>
</fieldset>
<div class="submit">
<input name="generate-registration-codes-csv" type="submit" value="${_('Generate Registration Codes')}" data-csv="true"/>
<input name="generate-registration-codes-csv" type="submit" value="${_('Create Enrollment Codes')}" data-csv="true"/>
</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