sum7/warehost-frontend
sum7
/
warehost-frontend
Archived
1
0
Fork 0
This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
warehost-frontend/public/app/main.jade

48 lines
2.0 KiB
Plaintext

.navbar.navbar-default.navbar-fixed-top
.container-fluid
.navbar-header
a.navbar-brand(ui-sref="app.index")
img(src="/favicon.ico")
| Warehost
button.navbar-toggle.collapsed(ng-click="toggleOpen()")
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
.navbar-collapse.collapse(uib-collapse="!isOpen")
ui.nav.navbar-nav
li(ng-if="session.profil.shift",ui-sref="app.shift.index",ng-class="{ active: $state.includes('app.shift') }")
a(nav navbar-nav) Shift
li(ng-if="session.profil.host",ui-sref="app.host.index",ng-class="{ active: $state.includes('app.host') }")
a(nav navbar-nav) Hosting
ui.nav.navbar-nav.navbar-right(ng-if="session.login.active")
li
a(ui-sref="app.L.invites",ui-sref-active="active")
span.glyphicon.glyphicon-send
|  Invites
li(ng-if="session.login.superadmin")
a(ui-sref="app.A.admin",ui-sref-active="active")
span.glyphicon.glyphicon-cog
|  Admin
.navbar-text(ng-class="{ 'active': $state.includes('app.L.settings') }")
| Welcome
a(ui-sref="app.L.settings",ui-sref-active="active") {{session.login.username}}
|  
span.glyphicon.glyphicon-user
.navbar-text
span.glyphicon.glyphicon-log-out(ng-click="logout()")
form.navbar-form.navbar-right(ng-if="!session.login.active",ng-submit="login()")
.form-group(ng-class="{'has-error': (error.fields.indexOf('username') >= 0)}")
input.form-control(ng-model="obj.username",placeholder="Username",pattern=".{3,}")
.form-group(ng-class="{'has-error': (error.fields.indexOf('password') >= 0)}")
.input-group
input.form-control(type="password",ng-model="obj.password",placeholder="Password")
.input-group-btn
button.btn.btn-default(type="submit")
span.glyphicon.glyphicon-log-in
div(style="margin-top:53px;")
.container(ng-if="error.msg")
.alert.alert-danger(style="margin-top:20px;")
{{error.msg}}
div(ui-view="")