Improvoe focolive, add job views

This commit is contained in:
2024-04-25 08:08:23 -06:00
parent 4e07eee0b9
commit e3682dfae6
6 changed files with 243 additions and 19 deletions

14
views/jobs/add.hbs Normal file
View File

@@ -0,0 +1,14 @@
<form
method='post'
action='/jobs/{{jobName}}/addFile'
enctype='multipart/form-data'
>
<p>File will be split on newline characters</p>
<div>
<label for='file'>Choose file to upload</label>
<input type='file' id='file' name='file' />
</div>
<div>
<button>Submit</button>
</div>
</form>

View File

@@ -0,0 +1,21 @@
<div>
<div>Job: {{jobName}}</div>
<div style='display: flex; flex-direction: row;'>
<div>
<h2>Complete</h2>
<ol>
{{#each completes as |item|}}
<li>{{name}}: {{count}}</li>
{{/each}}
</ol>
</div>
<div>
<h2>Claims</h2>
<ol>
{{#each claims as |item|}}
<li>{{name}}: {{count}}</li>
{{/each}}
</ol>
</div>
</div>
</div>

15
views/jobs/stats.hbs Normal file
View File

@@ -0,0 +1,15 @@
<div>
<div>Job: {{jobName}}</div>
<div style='display: flex; flex-direction: row;'>
<div>ToDo: </div>
<div>{{todoCount}}</div>
</div>
<div style='display: flex; flex-direction: row;'>
<div>Claimed: </div>
<div>{{claimedCount}}</div>
</div>
<div style='display: flex; flex-direction: row;'>
<div>Done: </div>
<div>{{doneCount}}</div>
</div>
</div>