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 <input type="radio" name="priority" value="1" /> Low
</div> </div>
Category: Category:
<select name="category"> <select name="category" class="dropdown">
<option>---</option> <option>---</option>
{{range .Categories}} {{$categories := .Categories}}
<option value="{{.}}" > {{.}} </option> {{range $cat := $categories}}
<option value="{{$cat.Name}}" > {{$cat.Name}} </option>
{{end}} {{end}}
</select> </select>
</div> </div>