+ );
+ }
+
getListingProps() {
return {
title: i18n('EMAIL_TEMPLATES'),
diff --git a/client/src/app/admin/panel/settings/admin-panel-email-templates.scss b/client/src/app/admin/panel/settings/admin-panel-email-templates.scss
new file mode 100644
index 00000000..340c7059
--- /dev/null
+++ b/client/src/app/admin/panel/settings/admin-panel-email-templates.scss
@@ -0,0 +1,21 @@
+.admin-panel-email-templates {
+
+ &__save-button {
+ display: inline-block;
+ float: left;
+ }
+
+ &__optional-buttons {
+ display: inline-block;
+ float: right;
+ }
+
+ &__discard-button {
+ display: inline-block;
+ }
+
+ &__recover-button {
+ display: inline-block;
+ margin-left: 10px;
+ }
+}
\ No newline at end of file
diff --git a/client/src/data/languages/en.js b/client/src/data/languages/en.js
index b1472eee..2fb72996 100644
--- a/client/src/data/languages/en.js
+++ b/client/src/data/languages/en.js
@@ -118,6 +118,7 @@ export default {
'COMMENTS': 'Comments',
'DELETE_STAFF_MEMBER': 'Delete staff member',
'MAINTENANCE_MODE': 'Maintenance mode',
+ 'RECOVER_DEFAULT': 'Recover default',
//VIEW DESCRIPTIONS
'CREATE_TICKET_DESCRIPTION': 'This is a form for creating tickets. Fill the form and send us your issues/doubts/suggestions. Our support system will answer it as soon as possible.',
@@ -147,6 +148,7 @@ export default {
'MY_ACCOUNT_DESCRIPTION': 'Here you can edit information about you.',
'DEPARTMENTS_DESCRIPTION': 'A department is a group where the tickets can go. They are used to categorize the tickets. You can assign them to other staff members.',
'MAINTENANCE_MODE_DESCRIPTION': 'The support system is in maintenance mode, thus unavailable at the moment. We will come back as soon as possible.',
+ 'EMAIL_TEMPLATES_DESCRIPTION': 'Here you can edit the templates of the emails that will be sent to users. Remember that the double brackets curly braces indicate a variable value. For example, \'name\' represents the user\'s name.',
//ERRORS
'EMAIL_OR_PASSWORD': 'Email or password invalid',
@@ -186,5 +188,6 @@ export default {
'DEPARTMENTS_UPDATED': 'Departments have been updated successfully.',
'FAILED_EDIT_STAFF': 'An error occurred while trying to edit staff member.',
'EMAIL_BANNED_SUCCESSFULLY': 'Email has been banned successfully',
- 'WILL_DELETE_STAFF': 'This staff member will be deleted and all its tickets will be unassigned.'
+ 'WILL_DELETE_STAFF': 'This staff member will be deleted and all its tickets will be unassigned.',
+ 'WILL_RECOVER_EMAIL_TEMPLATE': 'This email template will be recover to it\'s default value on this language.'
};
diff --git a/client/src/lib-app/i18n.js b/client/src/lib-app/i18n.js
index 731f5a7f..ecf1fe89 100644
--- a/client/src/lib-app/i18n.js
+++ b/client/src/lib-app/i18n.js
@@ -8,6 +8,7 @@ let mf = new MessageFormat('en');
let i18n = function (key, params = null) {
let i18nKey = i18nData(key, store.getState().config.language);
let message = mf.compile(i18nKey);
+ debugger;
return message(params);
};