Skip to content
Snippets Groups Projects
Unverified Commit d0decc3d authored by Farhanah Sheets's avatar Farhanah Sheets Committed by GitHub
Browse files

Merge pull request #23744 from edx/fsheets/contact-us-hackathon

Update wording on Contact Us page
parents 00adba69 49398566
No related merge requests found
...@@ -34,10 +34,10 @@ function LoggedInUser({ userInformation, setErrorState, zendeskApiHost, submitFo ...@@ -34,10 +34,10 @@ function LoggedInUser({ userInformation, setErrorState, zendeskApiHost, submitFo
</div>); </div>);
} }
let subjectElement; let topicElement;
subjectElement = (<div> topicElement = (<div>
<label htmlFor="subject">{gettext('Subject')}</label> <label htmlFor="topic">{gettext('Topic')}</label>
<select className="form-control select-subject" id="subject"> <select className="form-control select-subject" id="topic">
<option value="">--------</option> <option value="">--------</option>
<option value="Account Settings">{gettext('Account Settings')}</option> <option value="Account Settings">{gettext('Account Settings')}</option>
<option value="Billing/Payment Options">{gettext('Billing/Payment Options')}</option> <option value="Billing/Payment Options">{gettext('Billing/Payment Options')}</option>
...@@ -83,7 +83,7 @@ function LoggedInUser({ userInformation, setErrorState, zendeskApiHost, submitFo ...@@ -83,7 +83,7 @@ function LoggedInUser({ userInformation, setErrorState, zendeskApiHost, submitFo
<div className="row"> <div className="row">
<div className="col-sm-12"> <div className="col-sm-12">
<div className="form-group"> <div className="form-group">
{subjectElement} {topicElement}
</div> </div>
</div> </div>
</div> </div>
......
...@@ -37,7 +37,7 @@ class RenderForm extends React.Component { ...@@ -37,7 +37,7 @@ class RenderForm extends React.Component {
$userInfo = $('.user-info'), $userInfo = $('.user-info'),
request = new XMLHttpRequest(), request = new XMLHttpRequest(),
$course = $('#course'), $course = $('#course'),
$subject = $('#subject'), $topic = $('#topic'),
data = { data = {
comment: { comment: {
body: $('#message').val(), body: $('#message').val(),
...@@ -67,16 +67,16 @@ class RenderForm extends React.Component { ...@@ -67,16 +67,16 @@ class RenderForm extends React.Component {
value: course, value: course,
}]; }];
let subject; let topic;
subject = $subject.find(':selected').val(); topic = $topic.find(':selected').val();
if (!subject) { if (!topic) {
subject = $subject.val(); topic = $topic.val();
} }
if (!subject) { if (!topic) {
$('#subject').closest('.form-group').addClass('has-error'); $('#topic').closest('.form-group').addClass('has-error');
errors.push(gettext('Select a subject for your support request.')); errors.push(gettext('Select a topic for your support request.'));
} }
data.subject = subject; data.topic = topic;
if (this.validateData(data, errors)) { if (this.validateData(data, errors)) {
request.open('POST', url, true); request.open('POST', url, true);
......
...@@ -28,7 +28,7 @@ function Success({ platformName, homepageUrl, dashboardUrl, isLoggedIn }) { ...@@ -28,7 +28,7 @@ function Success({ platformName, homepageUrl, dashboardUrl, isLoggedIn }) {
<div className="row"> <div className="row">
<div className="col-sm-12"> <div className="col-sm-12">
<p>{gettext('Thank you for submitting a request!')}</p> <p>{gettext('Thank you for submitting a request! We appreciate your patience while we work to review your request.')}</p>
</div> </div>
</div> </div>
......
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