roles
This commit is contained in:
parent
8c8cbfd7dd
commit
41d48bf60a
28 changed files with 434 additions and 7 deletions
10
templates/components/role.html
Normal file
10
templates/components/role.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{{ $for := printf "category-%s_role-%s" .CategoryID .ID }}
|
||||
<div
|
||||
class="role"
|
||||
style="--role-color: {{.Colors.Main}}; --contrast-color: var({{if .Colors.IsDark}}--grey600{{else}}--grey100{{end}});"
|
||||
data-testid="role-{{.ID}}"
|
||||
>
|
||||
<input type="{{.InputType}}" id="{{$for}}" {{if eq .InputType
|
||||
"radio"}}name="category_group_{{.CategoryID}}"{{end}} />
|
||||
<label for="{{$for}}">{{.Name}}</label>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue