From 8bf35081c80a56051037d0bc374e9fec3fb9529e Mon Sep 17 00:00:00 2001
From: =Corey Hulen <corey@hulen.com>
Date: Thu, 10 Sep 2015 14:56:37 -0700
Subject: PLT-12 UI framework for admin console

---
 .../components/admin_console/admin_controller.jsx  | 57 ++++++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 web/react/components/admin_console/admin_controller.jsx

(limited to 'web/react/components/admin_console/admin_controller.jsx')

diff --git a/web/react/components/admin_console/admin_controller.jsx b/web/react/components/admin_console/admin_controller.jsx
new file mode 100644
index 000000000..b069f6432
--- /dev/null
+++ b/web/react/components/admin_console/admin_controller.jsx
@@ -0,0 +1,57 @@
+// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+var AdminSidebar = require('./admin_sidebar.jsx');
+var EmailTab = require('./email_settings.jsx');
+var JobsTab = require('./jobs_settings.jsx');
+var Navbar = require('../../components/navbar.jsx');
+
+export default class AdminController extends React.Component {
+    constructor(props) {
+        super(props);
+
+        this.selectTab = this.selectTab.bind(this);
+
+        this.state = {
+            selected: 'email_settings'
+        };
+    }
+
+    selectTab(tab) {
+        this.setState({selected: tab});
+    }
+
+    render() {
+        var tab = '';
+
+        if (this.state.selected === 'email_settings') {
+            tab = <EmailTab />;
+        } else if (this.state.selected === 'job_settings') {
+            tab = <JobsTab />;
+        }
+
+        return (
+            <div>
+                <AdminSidebar
+                    selected={this.state.selected}
+                    selectTab={this.selectTab}
+                />
+                <div className='inner__wrap channel__wrap'>
+                    <div className='row header'>
+                        <Navbar teamDisplayName='Admin Console' />
+                    </div>
+                    <div className='row main'>
+                        <div
+                            id='app-content'
+                            className='app__content admin'
+                        >
+                            <div className='wrapper--fixed'>
+                                {tab}
+                            </div>
+                        </div>
+                    </div>
+                </div>
+            </div>
+        );
+    }
+}
\ No newline at end of file
-- 
cgit v1.2.3-1-g7c22


From 41439eb801c6c8c0a55bcada3eeba3b4a561c663 Mon Sep 17 00:00:00 2001
From: =Corey Hulen <corey@hulen.com>
Date: Thu, 10 Sep 2015 15:44:14 -0700
Subject: Cleaning up html

---
 web/react/components/admin_console/admin_controller.jsx | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'web/react/components/admin_console/admin_controller.jsx')

diff --git a/web/react/components/admin_console/admin_controller.jsx b/web/react/components/admin_console/admin_controller.jsx
index b069f6432..bb43af802 100644
--- a/web/react/components/admin_console/admin_controller.jsx
+++ b/web/react/components/admin_console/admin_controller.jsx
@@ -31,7 +31,11 @@ export default class AdminController extends React.Component {
         }
 
         return (
-            <div>
+            <div className='container-fluid'>
+                <div
+                    className='sidebar--menu'
+                    id='sidebar-menu'
+                />
                 <AdminSidebar
                     selected={this.state.selected}
                     selectTab={this.selectTab}
@@ -45,9 +49,7 @@ export default class AdminController extends React.Component {
                             id='app-content'
                             className='app__content admin'
                         >
-                            <div className='wrapper--fixed'>
-                                {tab}
-                            </div>
+                        {tab}
                         </div>
                     </div>
                 </div>
-- 
cgit v1.2.3-1-g7c22

