2016-08-14 13:37:26 +02:00
|
|
|
.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.navbar-right(ng-if="session.login.active")
|
2016-09-03 13:24:54 +02:00
|
|
|
li.dropdown
|
|
|
|
a.dropdown-toggle(data-toggle="dropdown",role="button",aria-haspopup="true",aria-expanded="false")
|
|
|
|
span.glyphicon.glyphicon-user
|
|
|
|
| {{session.login.username}}
|
|
|
|
span.caret
|
|
|
|
ul.dropdown-menu
|
|
|
|
li
|
2016-09-11 18:40:03 +02:00
|
|
|
a(ui-sref="app.L.invite",ui-sref-active="active")
|
2016-09-03 13:24:54 +02:00
|
|
|
span.glyphicon.glyphicon-send
|
|
|
|
| Invites
|
|
|
|
li(ng-if="session.login.superadmin")
|
2016-09-11 18:40:03 +02:00
|
|
|
a(ui-sref="app.A.user",ui-sref-active="active")
|
2016-09-03 13:24:54 +02:00
|
|
|
span.glyphicon.glyphicon-tasks
|
|
|
|
| User Managment
|
|
|
|
li
|
2016-09-11 18:40:03 +02:00
|
|
|
a(ui-sref="app.L.setting",ui-sref-active="active")
|
2016-09-03 13:24:54 +02:00
|
|
|
span.glyphicon.glyphicon-cog
|
|
|
|
| Settings
|
|
|
|
li
|
2016-09-03 16:30:05 +02:00
|
|
|
a(href="",ng-click="logout()")
|
2016-09-03 13:24:54 +02:00
|
|
|
span.glyphicon.glyphicon-log-out
|
|
|
|
| Logout
|
2016-08-17 22:35:25 +02:00
|
|
|
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
|
2017-10-04 10:18:09 +02:00
|
|
|
div(ui-view="menu",ng-controller="MenuHostCtrl")
|
|
|
|
ui.nav.navbar-nav
|
|
|
|
.navbar-text Hosting
|
|
|
|
li
|
|
|
|
a(ui-sref="app.host.index",ui-sref-active="active") Home
|
|
|
|
li(ng-if='!profil.ID')
|
|
|
|
a(ui-sref="app.host.signup",ui-sref-active="active") Signup
|
|
|
|
li(ng-if='profil.ID')
|
|
|
|
a(ui-sref="app.host.domain",ui-sref-active="active") Domains
|
|
|
|
li(ng-if='profil.ID')
|
|
|
|
a(ui-sref="app.host.database",ui-sref-active="active") Databases
|
|
|
|
|
|
|
|
ui.nav.navbar-nav.navbar-right
|
|
|
|
li.dropdown(ng-if="session.login.superadmin")
|
|
|
|
a.dropdown-toggle(data-toggle="dropdown",role="button",aria-haspopup="true",aria-expanded="false")
|
|
|
|
span.glyphicon.glyphicon-console
|
|
|
|
| Admin
|
|
|
|
span.caret
|
|
|
|
ul.dropdown-menu
|
|
|
|
li
|
|
|
|
a(ui-sref="app.host.A.profil") Profiles
|
|
|
|
li
|
|
|
|
a(ui-sref="app.host.A.domain") Domains
|
|
|
|
li
|
|
|
|
a(ui-sref="app.host.A.database") Databases
|
2016-08-17 22:35:25 +02:00
|
|
|
div(style="margin-top:53px;")
|
|
|
|
.container(ng-if="error.msg")
|
2016-09-27 10:02:50 +02:00
|
|
|
.alert.alert-danger(style="margin-top:20px;") {{error.msg}}
|
2016-08-17 22:35:25 +02:00
|
|
|
div(ui-view="")
|