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

Revert "Update wording on Contact Us page"
This commit is contained in:
Farhanah Sheets
2020-04-17 11:37:12 -04:00
committed by GitHub
3 changed files with 15 additions and 15 deletions

View File

@@ -34,10 +34,10 @@ function LoggedInUser({ userInformation, setErrorState, zendeskApiHost, submitFo
</div>); </div>);
} }
let topicElement; let subjectElement;
topicElement = (<div> subjectElement = (<div>
<label htmlFor="topic">{gettext('Topic')}</label> <label htmlFor="subject">{gettext('Subject')}</label>
<select className="form-control select-subject" id="topic"> <select className="form-control select-subject" id="subject">
<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
<div className="row"> <div className="row">
<div className="col-sm-12"> <div className="col-sm-12">
<div className="form-group"> <div className="form-group">
{topicElement} {subjectElement}
</div> </div>
</div> </div>
</div> </div>

View File

@@ -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'),
$topic = $('#topic'), $subject = $('#subject'),
data = { data = {
comment: { comment: {
body: $('#message').val(), body: $('#message').val(),
@@ -67,16 +67,16 @@ class RenderForm extends React.Component {
value: course, value: course,
}]; }];
let topic; let subject;
topic = $topic.find(':selected').val(); subject = $subject.find(':selected').val();
if (!topic) { if (!subject) {
topic = $topic.val(); subject = $subject.val();
} }
if (!topic) { if (!subject) {
$('#topic').closest('.form-group').addClass('has-error'); $('#subject').closest('.form-group').addClass('has-error');
errors.push(gettext('Select a topic for your support request.')); errors.push(gettext('Select a subject for your support request.'));
} }
data.topic = topic; data.subject = subject;
if (this.validateData(data, errors)) { if (this.validateData(data, errors)) {
request.open('POST', url, true); request.open('POST', url, true);

View File

@@ -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! We appreciate your patience while we work to review your request.')}</p> <p>{gettext('Thank you for submitting a request!')}</p>
</div> </div>
</div> </div>