updated for nested category
This commit is contained in:
parent
c21afbe7a8
commit
53129bb4b5
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue