Back to Postgresml

Template

pgml-dashboard/src/components/inputs/text/input/template.html

2.10.0406 B
Original Source

% let (input_classes, icon_classes) = if error.is_some() { ("form-control is-invalid", "material-symbols-outlined is-invalid") } else { ("form-control", "material-symbols-outlined") }; %>

<% if let Some(label) = label { %> <%+ label %> <% } %> required <% } %> > <% if let Some(icon) = icon { %> <%= icon %> <% } %> <% if let Some(error) = error { %>

<%= error %>

<% } %>