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>);
}
let topicElement;
topicElement = (<div>
<label htmlFor="topic">{gettext('Topic')}</label>
<select className="form-control select-subject" id="topic">
let subjectElement;
subjectElement = (<div>
<label htmlFor="subject">{gettext('Subject')}</label>
<select className="form-control select-subject" id="subject">
<option value="">--------</option>
<option value="Account Settings">{gettext('Account Settings')}</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="col-sm-12">
<div className="form-group">
{topicElement}
{subjectElement}
</div>
</div>
</div>

View File

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

View File

@@ -28,7 +28,7 @@ function Success({ platformName, homepageUrl, dashboardUrl, isLoggedIn }) {
<div className="row">
<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>