fix template test renderer, add category
This commit is contained in:
parent
d9146750ba
commit
e4317ec4fd
15 changed files with 171 additions and 103 deletions
14
templates/components/category.html
Normal file
14
templates/components/category.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<section class="category" data-testid="category-{{.ID}}">
|
||||
<h3>{{.Name}}</h3>
|
||||
<div class="role-container">
|
||||
{{ range $_, $role := .Roles }} {{template "components/role" $role}} {{end}}
|
||||
{{ if eq .Type "single" }}
|
||||
<input
|
||||
type="radio"
|
||||
name="{{roleInputName .ID}}"
|
||||
id="{{roleInputID .ID .ID}}"
|
||||
/>
|
||||
<label for="{{roleInputID .ID .ID}}">None</label>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
Loading…
Add table
Add a link
Reference in a new issue