diff options
Diffstat (limited to 'tpls')
| -rw-r--r-- | tpls/jobs.tpl | 43 | 
1 files changed, 43 insertions, 0 deletions
| diff --git a/tpls/jobs.tpl b/tpls/jobs.tpl new file mode 100644 index 0000000..578791e --- /dev/null +++ b/tpls/jobs.tpl @@ -0,0 +1,43 @@ +{{define "title"}}Jobs{{end}} + +{{define "content"}} +	{{if .Error}} +		<div class="error">{{.Error}}</div> +	{{end}} +	 +	{{if not .Fatal}} +		{{if .Success}} +			<div class="success">{{.Success}}</div> +		{{end}} + +		<form action="/jobs" method="post"> +			<table class="fullwidth"> +				<thead> +					<tr> +						<th> </th> +						<th>Subject</th> +						<th>Excerpt</th> +						<th>Next</th> +					</tr> +				</thead> +				<tbody> +					{{range .Jobs}}<tr> +						<td><input type="checkbox" name="Jobs" value="{{.ID}}" /></td> +						<td><a href="/edit/{{.ID}}">{{.Subject}}</a></td> +						<td>{{.Excerpt}}</td> +						<td>{{.Next}}</td> +					</tr>{{end}} +				</tbody> +			</table> +			<hr /> +			<p> +				Delete selected: +				<select name="Delconfirm" size="0"> +					<option value="no" selected="selected">No</option> +					<option value="yes">Yes</option> +				</select> +				<input type="submit" /> +			</p> +		</form> +	{{end}} +{{end}}
\ No newline at end of file | 
