40 lines
No EOL
957 B
Cheetah
40 lines
No EOL
957 B
Cheetah
{{template "head"}}
|
|
<h2>New Tasks</h2>
|
|
<form method="POST">
|
|
<label for="library">Library:</label><br />
|
|
<select id="library" name="library">
|
|
{{range $l := .Libraries}}
|
|
<option value="{{$l.ID}}">{{$l.Name}}</option>
|
|
{{end}}
|
|
</select><br />
|
|
<label for="type">Type</label><br />
|
|
<select id="type" name="type">
|
|
<option value="0">Health Check</option>
|
|
</select> <br />
|
|
<input type="submit">
|
|
</form>
|
|
|
|
<h2>Tasks</h2>
|
|
<div class="task-list">
|
|
<table>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Type</th>
|
|
<th>File</th>
|
|
</tr>
|
|
{{range $t := .Tasks}}
|
|
<tr onclick="window.location='/tasks/{{ $t.ID }}';">
|
|
<td>
|
|
{{ $t.ID }}
|
|
</td>
|
|
<td>
|
|
{{ $t.Type }}
|
|
</td>
|
|
<td>
|
|
{{ $t.File }}
|
|
</td>
|
|
</tr>
|
|
{{end}}
|
|
</table>
|
|
</div>
|
|
{{template "tail"}} |