- make system messages default tab in admin panel

- add manage site tab to dropdown
This commit is contained in:
Henry Oswald 2016-06-06 16:11:26 +01:00
parent a297c07bbb
commit 4029b76d9e
2 changed files with 20 additions and 15 deletions

View file

@ -9,6 +9,22 @@ block content
.page-header .page-header
h1 Admin Panel h1 Admin Panel
tabset(ng-cloak) tabset(ng-cloak)
tab(heading="System Messages")
each message in systemMessages
.alert.alert-info.row-spaced !{message.content}
hr
form(enctype='multipart/form-data', method='post', action='/admin/messages')
input(name="_csrf", type="hidden", value=csrfToken)
.form-group
label(for="content")
input.form-control(name="content", type="text", placeholder="Message...", required)
button.btn.btn-primary(type="submit") Post Message
hr
form(enctype='multipart/form-data', method='post', action='/admin/messages/clear')
input(name="_csrf", type="hidden", value=csrfToken)
button.btn.btn-danger(type="submit") Clear all messages
tab(heading="Open Sockets") tab(heading="Open Sockets")
.row-spaced .row-spaced
ul ul
@ -66,19 +82,6 @@ block content
.form-group .form-group
button.btn-primary.btn(type='submit') Poll button.btn-primary.btn(type='submit') Poll
tab(heading="System Messages")
each message in systemMessages
.alert.alert-info.row-spaced !{message.content}
hr
form(enctype='multipart/form-data', method='post', action='/admin/messages')
input(name="_csrf", type="hidden", value=csrfToken)
.form-group
label(for="content")
input.form-control(name="content", type="text", placeholder="Message...", required)
button.btn.btn-primary(type="submit") Post Message
hr
form(enctype='multipart/form-data', method='post', action='/admin/messages/clear')
input(name="_csrf", type="hidden", value=csrfToken)
button.btn.btn-danger(type="submit") Clear all messages

View file

@ -17,6 +17,8 @@ nav.navbar.navbar-default
| Admin | Admin
b.caret b.caret
ul.dropdown-menu ul.dropdown-menu
li
a(href="/admin") Manage Site
li li
a(href="/admin/user") Manage Users a(href="/admin/user") Manage Users