DTP Base provides a scalable and secure Node.js application development harness ready for production service.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
1.3 KiB

extends ../../layout/main
block view-content
include ../../task/components/grid
section.uk-section.uk-section-default.uk-section-small
.uk-container
.uk-margin
div(uk-grid).uk-grid-small.uk-flex-middle
.uk-width-expand
h1.uk-margin-remove= project.name
.uk-width-auto
.uk-text-bold= client.name
.uk-text-small #{numeral(project.hourlyRate).format('$0,0.00')}/hr
if project.description
div= project.description
.uk-margin-medium
form(method="POST", action="/task").uk-form
input(type="hidden", name="clientId", value= client._id)
input(type="hidden", name="projectId", value= project._id)
.uk-card.uk-card-secondary.uk-card-small.uk-border-rounded
.uk-card-body.uk-border-rounded
label(for="note").uk-form-label.sr-only Task note
div(uk-grid).uk-grid-small
.uk-width-expand
input(id="note", name="note", placeholder="What will you be working on?").uk-input.uk-border-rounded
.uk-width-auto
button(type="submit").uk-button.uk-button-default.uk-border-rounded Create Task
.uk-margin-medium
+renderTaskGrid(taskGrid.pendingTasks, taskGrid.activeTasks, taskGrid.finishedTasks)