{{ define "repo/settings/fragments/addLabelDefModal" }}
{{ $base := "py-2 text-sm font-normal normal-case block hover:no-underline text-center cursor-pointer bg-gray-100 dark:bg-gray-800 shadow-inner border border-gray-200 dark:border-gray-700" }}
{{ end }} {{ define "basicLabelDef" }}

These labels can have a name and a color.

{{ template "nameInput" . }} {{ template "scopeInput" . }} {{ template "colorInput" . }}
{{ template "cancelButton" . }} {{ template "submitButton" . }}
{{ end }} {{ define "kvLabelDef" }}

These labels are more detailed, they can have a key and an associated value. You may define additional constraints on label values.

{{ template "nameInput" . }} {{ template "valueInput" . }} {{ template "multipleInput" . }} {{ template "scopeInput" . }} {{ template "colorInput" . }}
{{ template "cancelButton" . }} {{ template "submitButton" . }}
{{ end }} {{ define "nameInput" }}
{{ end }} {{ define "colorInput" }}
{{ $colors := list "#ef4444" "#3b82f6" "#10b981" "#f59e0b" "#8b5cf6" "#ec4899" "#06b6d4" "#64748b" }} {{ range $i, $color := $colors }} {{ end }}
{{ end }} {{ define "scopeInput" }}
{{ end }} {{ define "valueInput" }}

Enter comma-separated list of permitted values, or leave empty to allow any value.

{{ end }} {{ define "multipleInput" }}
Allow multiple values
{{ end }} {{ define "cancelButton" }} {{ end }} {{ define "submitButton" }} {{ end }}