From 8a78daa8c8f8d28701ae9f694fb0bcaf7bc15e88 Mon Sep 17 00:00:00 2001 From: Tasawer Nawaz Date: Wed, 22 Nov 2017 17:25:33 +0500 Subject: [PATCH] update design of support form + form will be shown only to logged in users LEARNER-3288 --- .../static/support/jsx/logged_in_user.jsx | 87 +++++++++++++++---- .../static/support/jsx/logged_out_user.jsx | 22 +---- .../support/jsx/single_support_form.jsx | 67 +++----------- lms/static/sass/views/_support.scss | 8 +- lms/templates/support/contact_us.html | 4 +- 5 files changed, 94 insertions(+), 94 deletions(-) diff --git a/lms/djangoapps/support/static/support/jsx/logged_in_user.jsx b/lms/djangoapps/support/static/support/jsx/logged_in_user.jsx index 7cd223476c..3e6ab0fa88 100644 --- a/lms/djangoapps/support/static/support/jsx/logged_in_user.jsx +++ b/lms/djangoapps/support/static/support/jsx/logged_in_user.jsx @@ -3,7 +3,28 @@ import React from 'react'; import PropTypes from 'prop-types'; -function LoggedInUser({ userInformation }) { +import FileUpload from './file_upload'; + +function LoggedInUser({ userInformation, setErrorState, zendeskApiHost, accessToken, submitForm }) { + let courseElement; + if (userInformation.enrollments) { + courseElement = (
+ + +
); + } else { + courseElement = (
+ + +
); + } + return (
- {userInformation.enrollments.length === 0 && -
- - -
- } - {userInformation.enrollments.length > 0 && -
- - -
- } + {courseElement}
+ +
+
+
+ + +
+
+
+ +
+
+
+ +

{gettext('The more you tell us, the more quickly and helpfully we can respond!')}

+