Blame view
imports/client/views/org/app/module/AppLayout.js
9.46 KB
39d8f536d
|
1 2 3 4 5 6 7 |
import _ from 'lodash'; import { Meteor } from 'meteor/meteor'; import React, { Component } from 'react'; import { Link } from 'react-router'; import { Avatar } from '/imports/client/components/Avatar'; import { Icon } from '/imports/client/components/Icon'; import classNames from 'classnames'; |
c4d3e07d0
|
8 9 |
import { EnterModule } from '/imports/client/views/org/enter/module/index'; // import { VerifyModule } from '/imports/client/views/verify/module/index'; |
9fc4b8983
|
10 |
import { Navbar,Modal, Nav, NavItem, |
b02441289
|
11 |
Glyphicon, Collapse, |
9fc4b8983
|
12 13 |
NavbarToggler, NavbarBrand, NavLink, DropdownItem, DropdownToggle, DropdownMenu, |
ca09f1493
|
14 |
NavDropdown, MenuItem, Breadcrumb } from 'react-bootstrap'; |
b02441289
|
15 |
import { VerifyModule } from '/imports/client/views/verify/module/index' |
9fc4b8983
|
16 17 |
var Accordion = require('react-bootstrap').Accordion; var Panel = require('react-bootstrap').Panel; |
39d8f536d
|
18 |
export class AppLayout extends Component { |
39d8f536d
|
19 |
render() { |
c4d3e07d0
|
20 |
console.log(this.props); |
39d8f536d
|
21 22 23 24 |
const {user} = this.props.data; if(!user) { return ( |
c4d3e07d0
|
25 26 27 28 |
<EnterModule pane = {this.props.location.query.enter} location = {this.props.location} /> |
39d8f536d
|
29 30 |
); } |
b02441289
|
31 32 33 34 35 36 37 38 |
if(!user.isEmailVerified()) { return ( <VerifyModule pane = {this.props.location.query.verify} location = {this.props.location} /> ); } |
39d8f536d
|
39 |
return ( |
b02441289
|
40 |
|
39d8f536d
|
41 |
<div className = "appLayout-box"> |
9fc4b8983
|
42 43 44 45 |
<div className="page-container"> <div className="page-content"> <div className="sidebar sidebar-main sidebar-default"> <div className="sidebar-content"> |
b02441289
|
46 |
|
9fc4b8983
|
47 48 49 50 51 |
<div className="sidebar-category sidebar-category-visible"> <div className="category-content no-padding"> <Nav className="navigation navigation-main navigation-accordion"> <NavItem className="navigation-header"><span>#schoolname</span> <i className="icon-menu" title="Main pages"></i></NavItem> <NavItem className="active" eventKey={1} href="#"><i className="icon-home4"></i> <span>Dashboard</span></NavItem> |
b02441289
|
52 |
|
ca09f1493
|
53 |
<NavDropdown eventKey={2} title="Settings" name="Settings" id="setting"> |
9fc4b8983
|
54 55 56 57 58 |
<MenuItem eventKey={2.1}>Information</MenuItem> <MenuItem eventKey={2.2}>Infrastructure</MenuItem> <MenuItem eventKey={2.3}>Users</MenuItem> <MenuItem eventKey={2.4}>Academic Settings</MenuItem> <MenuItem eventKey={2.5}>Account Configuration</MenuItem> |
9fc4b8983
|
59 |
</NavDropdown> |
ca09f1493
|
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
<NavDropdown eventKey={3} title="Academic" name="Academic" id="academic"> <MenuItem eventKey={3.1}>Layout 1</MenuItem> <MenuItem eventKey={3.2}>Layout 2</MenuItem> <MenuItem eventKey={3.3}>Layout 3</MenuItem> <MenuItem eventKey={3.4}>Layout 4</MenuItem> <MenuItem eventKey={3.5}>Layout 5</MenuItem> </NavDropdown> <NavDropdown eventKey={4} title="Communication" name="Communication" id="communication"> <MenuItem eventKey={4.1}>Primary palett</MenuItem> <MenuItem eventKey={4.2}>Danger palett</MenuItem> <MenuItem eventKey={4.3}>Success palett</MenuItem> <MenuItem eventKey={4.4}>Warning palett</MenuItem> <MenuItem divider /> <MenuItem eventKey={4.5}>Info palett</MenuItem> <MenuItem eventKey={4.6}>Info palett</MenuItem> <MenuItem eventKey={4.7}>Info palett</MenuItem> <MenuItem eventKey={4.8}>Info palett</MenuItem> </NavDropdown> <NavDropdown eventKey={5} title="Finance" name="Finance" id="finance"> <MenuItem eventKey={5.1}>Primary palett</MenuItem> <MenuItem eventKey={5.2}>Danger palett</MenuItem> <MenuItem eventKey={5.3}>Success palett</MenuItem> <MenuItem eventKey={5.4}>Warning palett</MenuItem> <NavDropdown eventKey={5.5} title="Calumns" id="calumns"> <MenuItem>Success palett</MenuItem> <MenuItem>Warning palett</MenuItem> </NavDropdown> </NavDropdown> <NavItem eventKey={6} href="#"><i className="icon-file-stats"></i><span> Reports </span></NavItem> <NavItem eventKey={7} href="#"><i className="icon-design"></i> <span>Examinations</span></NavItem> |
9fc4b8983
|
91 92 93 94 95 96 97 98 |
</Nav> </div> </div> </div> </div> {/*end sidebar*/} <div className="content-wrapper"> |
e0cc9d5d7
|
99 100 |
<div className="page-header page-header-default"> <div className="breadcrumb-line"> |
ca09f1493
|
101 102 103 104 105 106 107 108 |
<Breadcrumb> <Breadcrumb.Item href="#"> <i className="icon-home2 position-left"></i> Users </Breadcrumb.Item> <Breadcrumb.Item active href="#"> Setup </Breadcrumb.Item> </Breadcrumb> |
9fc4b8983
|
109 |
|
e0cc9d5d7
|
110 |
<ul className="breadcrumb-elements"> |
ca09f1493
|
111 112 113 114 115 116 117 118 119 |
<NavItem href="#"><i className="icon-comment-discussion position-left"></i> Support</NavItem> <NavDropdown title="Settings" id="setting"> <MenuItem><i className="icon-user-lock"></i> Account security</MenuItem> <MenuItem><i className="icon-statistics"></i> Analytics</MenuItem> <MenuItem><i className="icon-accessibility"></i> Accessibility</MenuItem> <MenuItem divider/> <MenuItem><i className="icon-gear"></i> All settings</MenuItem> </NavDropdown> |
e0cc9d5d7
|
120 |
</ul> |
9fc4b8983
|
121 122 |
</div> </div> |
e0cc9d5d7
|
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
<div className="content"> <div className="row"> <div className="col-lg-3 col-md-6"> <div className="thumbnail"> <Link to="/students" > <div className="thumb thumb-rounded"> <img src="assets/images/download2.png" alt="" /> </div> <div className="caption text-center"> <h6 className="text-semibold no-margin">Students <small className="display-block">Click to view</small></h6> </div> </Link> </div> </div> <div className="col-lg-3 col-md-6"> <div className="thumbnail"> <Link to="/students" > <div className="thumb thumb-rounded"> <img src="assets/images/download.png" alt="" /> </div> |
b02441289
|
148 |
|
e0cc9d5d7
|
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
<div className="caption text-center"> <h6 className="text-semibold no-margin">Teachers <small className="display-block">Click to view</small></h6> </div> </Link> </div> </div> <div className="col-lg-3 col-md-6"> <div className="thumbnail"> <a href="userprofileparents.html"> <div className="thumb thumb-rounded"> <img src="assets/images/download3.png" alt=""/> </div> <div className="caption text-center"> <h6 className="text-semibold no-margin">Parents <small className="display-block">Click to view</small></h6> </div> </a> </div> </div> <div className="col-lg-3 col-md-6"> <div className="thumbnail"> <a href="#"> <div className="thumb thumb-rounded"> <img src="assets/images/download1.png" alt="" /> </div> <div className="caption text-center"> <h6 className="text-semibold no-margin">Non-Teaching Staff <small className="display-block">Click to view</small></h6> </div> </a> </div> </div> </div> </div> |
9fc4b8983
|
186 |
</div> |
e0cc9d5d7
|
187 |
</div> |
9fc4b8983
|
188 |
</div> |
39d8f536d
|
189 190 191 192 193 194 195 196 |
<div className = "appLayout-wrapOuter"> <div className = "appLayout-wrapInner"> <div className = "appLayout-menuWrap"> </div> <div className = "appLayout-contentWrap"> <div className = "appLayout-content"> |
e0cc9d5d7
|
197 |
|
39d8f536d
|
198 199 200 201 202 203 204 205 206 |
</div> </div> </div> </div> </div> ); }; }; |