clean up
This commit is contained in:
parent
4de066e505
commit
8b3cb159ae
|
|
@ -7,9 +7,20 @@ window.SupportPage = React.createClass({
|
|||
var support_warning = null;
|
||||
|
||||
if(gon.has_support) {
|
||||
var src = `https://jamkazam.freshdesk.com/widgets/feedback_widget/new?&helpdesk_ticket[requester]=${encodeURIComponent(gon.email)}&widgetType=embedded&formTitle=JamKazam+Support&submitTitle=Send+Feedback&submitThanks=Thank+you+for+your+message.+We+will+use+our+best+efforts+to+reply+within+24+hours.`
|
||||
var display = 'Unknown'
|
||||
for (var plan in gon.global.subscription_codes) {
|
||||
if ( gon.global.subscription_codes[plan].id == gon.plan_code ) {
|
||||
display = gon.global.subscription_codes[plan].name
|
||||
}
|
||||
}
|
||||
|
||||
support_space = <div className="buffer"><iframe title="Get Help Form" class="freshwidget-embedded-form" id="freshwidget-embedded-form" src={src} scrolling="no" height="700px" width="100%" frameBorder="0" >
|
||||
// You just need to add '&disable[fieldName]=true' or '&disable[custom_field][fieldName]=true' depending on whether the field is default or custom.
|
||||
|
||||
var src = `https://jamkazam.freshdesk.com/widgets/feedback_widget/new?&helpdesk_ticket[requester]=${encodeURIComponent(gon.email)}&disable[requester]=true&helpdesk_ticket[custom_field][cf_plan_1596882]=${encodeURIComponent(display)}&disable[custom_field][cf_plan_1596882]=true&widgetType=embedded&formTitle=JamKazam+Support&submitTitle=Send+Feedback&submitThanks=Thank+you+for+your+message.+We+will+use+our+best+efforts+to+reply+within+24+hours.`
|
||||
|
||||
// helpdesk_ticket_cf_plan_1596882
|
||||
|
||||
support_space = <div className="buffer"><iframe title="Get Help Form" class="freshwidget-embedded-form" id="freshwidget-embedded-form" src={src} scrolling="no" height="650px" width="100%" frameBorder="0" >
|
||||
</iframe></div>
|
||||
}
|
||||
else {
|
||||
|
|
@ -29,9 +40,9 @@ window.SupportPage = React.createClass({
|
|||
{support_warning}
|
||||
<div className="description">
|
||||
The JamKazam help desk offers 1:1 help desk support only to our Gold and Platinum plan
|
||||
subscribers. <a href="https://jamkazam.freshdesk.com/support/solutions/articles/66000122535-what-are-jamkazam-s-free-vs-premium-features-"
|
||||
target="_blank">More information on subscription plans can be found here</a>.<br/><br/> If you are not a Gold or Platinum subscriber,
|
||||
we'd suggest that you look for help in our <a href="https://jamkazam.freshdesk.com/support/home" target="_blank">extensive knowledge base of
|
||||
subscribers. More information on subscription plans <a href="https://jamkazam.freshdesk.com/support/solutions/articles/66000122535-what-are-jamkazam-s-free-vs-premium-features-"
|
||||
target="_blank">can be found here</a>. If you are not a Gold or Platinum subscriber,
|
||||
we'd suggest that you look for help in our <a href="https://jamkazam.freshdesk.com/support/home" target="_blank"> extensive knowledge base of
|
||||
help articles</a>,
|
||||
or check out our <a href="https://forum.jamkazam.com/" target="_blank">user forum</a> to see if
|
||||
other JamKazam users can help you.
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ $checkbox-label-width:14rem;
|
|||
$create-account-width:10rem;
|
||||
$start-promo-btn-width:13rem;
|
||||
$jamkazam-background:#323232;
|
||||
$jamkazam-background2:#2c2c2c;
|
||||
$jamkazam-background2:#323232;
|
||||
|
||||
$copy-color-on-dark: #b9b9b9;
|
||||
$copy-color-on-white: #575757;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ class SupportsController < ApplicationController
|
|||
gon.has_support = current_user.has_support?
|
||||
gon.email = current_user.email
|
||||
gon.in_trial = !current_user.subscription_trial_ended?
|
||||
gon.plan_code = current_user.subscription_plan_code
|
||||
|
||||
@title = "Help Desk"
|
||||
@description = "The JamKazam help desk offers 1:1 help desk support only to our Gold and Platinum plan subscribers."
|
||||
|
|
|
|||
Loading…
Reference in New Issue