diff --git a/client/src/app-components/toggle-button.js b/client/src/app-components/toggle-button.js
index dda2a00d..ee32845b 100644
--- a/client/src/app-components/toggle-button.js
+++ b/client/src/app-components/toggle-button.js
@@ -1,5 +1,6 @@
import React from 'react';
+import classNames from 'classnames';
import i18n from 'lib-app/i18n';
class ToggleButton extends React.Component {
@@ -12,12 +13,22 @@ class ToggleButton extends React.Component {
render() {
return (
-
+
{this.props.value ? i18n('ON') : i18n('OFF')}
);
}
+ getClass() {
+ let classes = {
+ 'toggle-button': true,
+ [this.props.className]: (this.props.className)
+ };
+
+ return classNames(classes);
+ }
+
+
onClick() {
if (this.props.onChange) {
this.props.onChange({
diff --git a/client/src/app/admin/panel/settings/admin-panel-advanced-settings.js b/client/src/app/admin/panel/settings/admin-panel-advanced-settings.js
index 5a38038b..63b9e522 100644
--- a/client/src/app/admin/panel/settings/admin-panel-advanced-settings.js
+++ b/client/src/app/admin/panel/settings/admin-panel-advanced-settings.js
@@ -3,9 +3,10 @@ import {connect} from 'react-redux';
import ConfigActions from 'actions/config-actions';
import i18n from 'lib-app/i18n';
-import API from 'lib-app/api-call';
import ToggleButton from 'app-components/toggle-button';
+import Button from 'core-components/button';
+import FileUploader from 'core-components/file-uploader';
import Header from 'core-components/header';
class AdminPanelAdvancedSettings extends React.Component {
@@ -25,20 +26,41 @@ class AdminPanelAdvancedSettings extends React.Component {
-
- {i18n('USER_SYSTEM_ENABLED')}
+ {i18n('USER_SYSTEM_ENABLED')}
+
-
- {i18n('REGISTRATION')}
+ {i18n('REGISTRATION')}
+
+
+
+
{i18n('INCLUDE_USERS_VIA_CSV')}
+
+
+
+
{i18n('INCLUDE_DATABASE_VIA_SQL')}
+
+
+
+
{i18n('BACKUP_DATABASE')}
+
+
+
+
{i18n('DELETE_ALL_USERS')}
+
+
+
+
+
+
);
diff --git a/client/src/app/admin/panel/settings/admin-panel-advanced-settings.scss b/client/src/app/admin/panel/settings/admin-panel-advanced-settings.scss
index b7ac1dcd..cc27227e 100644
--- a/client/src/app/admin/panel/settings/admin-panel-advanced-settings.scss
+++ b/client/src/app/admin/panel/settings/admin-panel-advanced-settings.scss
@@ -1,3 +1,18 @@
.admin-panel-system-settings {
+ &__user-system-enabled {
-}
\ No newline at end of file
+ }
+
+ &__registration {
+
+ }
+
+ &__toggle-button {
+ display: inline-block;
+ margin-left: 20px;
+ }
+
+ &__text {
+ margin-bottom: 20px;
+ }
+}
diff --git a/client/src/data/languages/en.js b/client/src/data/languages/en.js
index 457784da..53f6018a 100644
--- a/client/src/data/languages/en.js
+++ b/client/src/data/languages/en.js
@@ -154,6 +154,10 @@ export default {
'VERIFY_FAILED': 'Could not verify',
'USER_SYSTEM_ENABLED': 'Use user system for customers',
'REGISTRATION': 'Enable user registration',
+ 'INCLUDE_USERS_VIA_CSV': 'Include users via CSV file',
+ 'INCLUDE_DATABASE_VIA_SQL': 'Include database via SQL file',
+ 'BACKUP_DATABASE': 'Backup database',
+ 'DELETE_ALL_USERS': 'Delete all users',
//ACTIVITIES
'ACTIVITY_COMMENT': 'commented ticket',