1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 15:59:25 +00:00
Files
stratos/views/addTestResult.hbs
2022-04-18 20:21:45 +00:00

25 lines
713 B
Handlebars

<section class='adminSection'>
<div class="adminItem">
<h2>Add test result - {{testName}}</h2>
{{#if students.length}}
<div class='formContainer'>
<form action='{{linkRoot}}/add' method='post'>
<select name='student' id='student' required>
<option disabled hidden selected value=''>Select student</option>
{{#each students}}
<option value='{{id}}'>{{shortName}}</option>
{{/each}}
</select>
<input type='number' name='mark' id='mark' min=0 max={{maxMark}} placeholder='Mark' />
<input type='submit' class='btn btn--primary btn--full' value='Add result'/>
</form>
</div>
{{else}}
All test results are submitted for this test
{{/if}}
</div>
</section>