UI improvements

This commit is contained in:
2019-06-22 12:51:29 -05:00
parent 15087ca30f
commit 1bd6ad1830
8 changed files with 135 additions and 91 deletions

View File

@@ -0,0 +1,5 @@
extends ./template
block content
p #{text}
form(method='post' action=destination)
button(type='submit') Yes, I'm sure.

View File

@@ -1,30 +1,23 @@
html
head
title DevBug Dashboard
link(rel='stylesheet' href='/assets/dash_v1.css')
body
h1 DevBug Dashboard
ul.navul
li.navli
a.nava(href='/auth/logout') Logout
h3 My Projects
ul(style='list-style-type: none;')
li
a(href='/dash/v1/project/new') Create New Project
table
thead
extends ./template
block content
h3 My Projects
ul(style='list-style-type: none;')
li
a(href='/dash/v1/project/new') Create New Project
table
thead
tr
th(scope='col' style='min-width: 250px') Name
th(scope='col') Actions
tbody
each project in projects
tr
th(scope='col' style='min-width: 250px') Name
th(scope='col') Actions
tbody
each project in projects
tr
td #{project.name}
td
ul(style='list-style-type: none; margin: 0; padding: 0;')
li
a.action(href='/dash/v1/project/view/'+project.id) View
li
a.action(href='/dash/v1/project/delete/'+project.id) Delete
li
a.action(href='/dash/v1/project/edit/'+project.id) Edit
td #{project.name}
td
ul(style='list-style-type: none; margin: 0; padding: 0;')
li
a.action(href='/dash/v1/project/view/'+project.id) View
li
a.action(href='/dash/v1/project/delete/'+project.id) Delete
li
a.action(href='/dash/v1/project/edit/'+project.id) Edit

View File

@@ -1,16 +1,5 @@
html
head
title #{out.brief}
link(rel='stylesheet' href='/assets/dash_v1.css')
body
h2 #{out.brief}
ul.navul
li.navli
a.nava(href='/dash/v1') Dashboard
li.navli
a.nava(href='javascript:window.history.back()') Back
li.navli
a.nava(href='/auth/logout') Logout
pre
code
div #{prettyd}
extends ./template
block content
pre
code
div #{prettyd}

View File

@@ -1,15 +1,11 @@
html
head
title #{(update ? 'Update Project' : 'Create New Project')} | DevBug
link(rel='stylesheet' href='/assets/dash_v1.css')
body
h2 #{(update ? 'Update Project' : 'Create New Project')}
if errors
each error in errors
p(style='color: red; font-weight: bold;') #{error}
form(method='post', enctype='multipart/form-data')
label(for='project_name') Project Name:
input#project_name(type='text', name='name' required autofocus)
br
br
button(type='submit') Create Project
extends ./template
block content
if errors
each error in errors
p(style='color: red; font-weight: bold;') #{error}
form(method='post', enctype='multipart/form-data')
label(for='project_name') Project Name:
input#project_name(type='text', name='name' value=(project_name ? project_name : '') required autofocus)
br
br
button(type='submit') #{project_name ? 'Update Project' : 'Create Project'}

View File

@@ -0,0 +1,18 @@
html
head
title #{(title ? title+' | DevBug' : 'DevBug Dashboard')}
link(rel='stylesheet' href='/assets/dash_v1.css')
body
if title_small
h3 #{(title ? title+' | DevBug' : 'DevBug Dashboard')}
else
h1 #{(title ? title+' | DevBug' : 'DevBug Dashboard')}
ul.navul
li.navli
a.nava(href='/dash/v1') Home
li.navli
a.nava(href='/auth/logout') Logout
if show_back
li.navli
a.nava(href='javascript:window.history.back()') Back
block content

View File

@@ -1,27 +1,20 @@
html
head
title View: #{project.name} | Devbug
link(rel='stylesheet' href='/assets/dash_v1.css')
body
h2 View: #{project.name}
h4 API Key: #{ project.uuid }
ul.navul
li.navli
a.nava(href='/dash/v1') Dashboard
li.navli
a.nava(href='/auth/logout') Logout
table
thead
extends ./template
block content
h3 Project API Key: #{project.uuid}
table
thead
tr
th(scope='col' style='min-width: 250px') Brief
th(scope='col' style='min-width: 250px') Created On
th(scope='col') Actions
tbody
each out in outs
tr
th(scope='col' style='min-width: 250px') Brief
th(scope='col' style='min-width: 250px') Created On
th(scope='col') Actions
tbody
each out in outs
tr
td #{out.brief}
td #{ out.created.toLocaleString({timeZone: 'America/Chicago'}) }
td
ul(style='list-style-type: none; margin: 0; padding: 0;')
li
a.action(href='/dash/v1/out/view/'+out.id) View
td #{out.brief}
td #{ out.created.toLocaleString({timeZone: 'America/Chicago'}) }
td
ul(style='list-style-type: none; margin: 0; padding: 0;')
li
a.action(href='/dash/v1/out/view/'+out.id) View
li
a.action(href='/dash/v1/out/delete/'+out.id) Delete