updated for nested category

This commit is contained in:
Suraj 2016-02-05 01:10:11 +05:30
parent c21afbe7a8
commit 53129bb4b5
1 changed files with 4 additions and 3 deletions

View File

@ -28,10 +28,11 @@
<input type="radio" name="priority" value="1" /> Low
</div>
Category:
<select name="category">
<select name="category" class="dropdown">
<option>---</option>
{{range .Categories}}
<option value="{{.}}" > {{.}} </option>
{{$categories := .Categories}}
{{range $cat := $categories}}
<option value="{{$cat.Name}}" > {{$cat.Name}} </option>
{{end}}
</select>
</div>