diff --git a/src/translation/en.json b/src/translation/en.json index 278007163..0fc815133 100644 --- a/src/translation/en.json +++ b/src/translation/en.json @@ -290,7 +290,33 @@ "title": "Settings" }, "support": { - "title": "Support" + "title": "Support", + "ticket": { + "title": "Ticket", + "subscriptionRequired": "Support tickets are only available in the paid plans.", + "subscriptionRequiredDescription": "You may find answers in our documentation or ask on the Forum.", + "type": "Type", + "typeApp": "App Error", + "typeBug": "Bug Report", + "typeEmail": "Email Error", + "selectApp": "Select App", + "topic": "Topic", + "report": "Report", + "email": "Email", + "emailInfo": "(Subscription email is {{ email }})", + "sshCheckbox": "Allow support engineers to connect to this server via SSH", + "submitAction": "Submit", + "reportPlaceholder": "Describe your issue", + "emailPlaceholder": "If needed, provide an email address different from above to reach you" + }, + "remoteSupport": { + "title": "Remote Support", + "subscriptionRequired": "Remote support is only available in the paid plans.", + "description": "Enable this option to allow support engineers to connect to this server via SSH.", + "warning": "Do not enable this option unless requested by the Cloudron support team.", + "disableAction": "Disable SSH support access", + "enableAction": "Enable SSH support access" + } }, "system": { "title": "System Info", diff --git a/src/views/support.html b/src/views/support.html index 0712cf367..b3479ef04 100644 --- a/src/views/support.html +++ b/src/views/support.html @@ -5,51 +5,51 @@
-

Ticket

+

{{ 'support.ticket.title' | tr }}

-

Support tickets are only available in the paid plans.

-

You may find answers in our documentation or ask on the Forum.

+

{{ 'support.ticket.subscriptionRequired' | tr }}

+

- +
- +
- - + +
- - + +
- (Subscription email is {{ subscription.email }}) - + {{ 'support.ticket.emailInfo' | tr:subscription }} +
- + {{feedback.error}} {{feedback.result.message}}
@@ -59,20 +59,20 @@
-

Remote Support

+

{{ 'support.remoteSupport.title' | tr }}

-

Remote support is only available in the paid plans.

-

Enable this option to allow support engineers to connect to this server via SSH.

+

{{ 'support.remoteSupport.subscriptionRequired' | tr }}

+

{{ 'support.remoteSupport.description' | tr }}

- Do not enable this option unless requested by the Cloudron support team. + {{ 'support.remoteSupport.warning' | tr }}

- +
diff --git a/src/views/support.js b/src/views/support.js index f4b22b6c7..0f0c34dec 100644 --- a/src/views/support.js +++ b/src/views/support.js @@ -11,6 +11,11 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat $scope.apps = Client.getInstalledApps(); $scope.supportConfig = null; + $scope.translationLinks = { + supportViewLink: 'https://docs.cloudron.io/apps/?support_view', + forumLink: 'https://forum.cloudron.io/' + }; + $scope.feedback = { error: null, result: null,