- adding a default theme for keycloak - set default credential when user sign in Signed-off-by: James <james@jan.ai>
38 lines
829 B
Plaintext
38 lines
829 B
Plaintext
<#macro
|
|
kw
|
|
autofocus=false
|
|
disabled=false
|
|
invalid=false
|
|
label=""
|
|
message=""
|
|
name=""
|
|
required=true
|
|
rest...
|
|
>
|
|
<div>
|
|
<label class="sr-only" for="${name}">
|
|
${label}
|
|
</label>
|
|
<input
|
|
<#if autofocus>autofocus</#if>
|
|
<#if disabled>disabled</#if>
|
|
<#if required>required</#if>
|
|
|
|
aria-invalid="${invalid?c}"
|
|
class="block border-secondary-200 mt-1 rounded-md w-full focus:border-primary-300 focus:ring focus:ring-primary-200 focus:ring-opacity-50 sm:text-sm"
|
|
id="${name}"
|
|
name="${name}"
|
|
placeholder="${label}"
|
|
|
|
<#list rest as attrName, attrValue>
|
|
${attrName}="${attrValue}"
|
|
</#list>
|
|
>
|
|
<#if invalid?? && message??>
|
|
<div class="mt-2 text-red-600 text-sm">
|
|
${message?no_esc}
|
|
</div>
|
|
</#if>
|
|
</div>
|
|
</#macro>
|