mirror of
https://github.com/ISEAL-Community/iseal-core.git
synced 2025-05-08 22:26:06 +02:00
site: style buttons for required elements
We wanted a way to increase the findability of required elements in addition the the "required" badge on the element's information box. This styles the button in the module grouping as well.
This commit is contained in:
@ -14,7 +14,11 @@
|
||||
{{/* Use range over a nested where. The way to read this is */}}
|
||||
{{/* from the inside out: terms, cluster, module. */}}
|
||||
{{ range where (where (where site.RegularPages "Type" "terms") "Params.cluster" "==" $cluster) "Params.module" "==" $module }}
|
||||
{{- if .Params.required -}}
|
||||
<a class="btn btn-sm btn-required m-1" href="#{{ .Params.slug }}">{{ .Params.field }}</a>
|
||||
{{- else -}}
|
||||
<a class="btn btn-sm btn-outline-primary m-1" href="#{{ .Params.slug }}">{{ .Params.field }}</a>
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
</td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user