modified: web/assets/css/styles.css
modified: web/components/base/input.templ modified: web/components/base/input_templ.go modified: web/components/base/range.templ modified: web/components/base/range_templ.go modified: web/components/base/select.templ modified: web/components/base/select_templ.go modified: web/components/base/textarea.templ modified: web/components/base/textarea_templ.go modified: web/components/icons.templ modified: web/components/icons_templ.go modified: web/components/issue.templ modified: web/components/issue_templ.go modified: web/components/layout.templ modified: web/components/layout_templ.go new file: web/components/sidebar.templ new file: web/components/sidebar_templ.go new file: web/components/status.templ new file: web/components/status_templ.go modified: web/handler/issues.go new file: web/handler/task.go modified: web/input.css deleted: web/package-lock.json deleted: web/package.json modified: web/routes/layout.templ modified: web/routes/layout_templ.go modified: web/server/routes.go modified: web/server/server.go modified: web/web.go
This commit is contained in:
@@ -35,8 +35,7 @@ templ Input(props InputProps) {
|
||||
if props.Label != "" {
|
||||
<legend class="fieldset-legend">{ props.Label }</legend>
|
||||
}
|
||||
<label
|
||||
for={ props.Name }
|
||||
<div
|
||||
class={
|
||||
"input validator tooltip tooltip-top", props.Class,
|
||||
templ.KV("tooltip tooltip-top", props.DisabledMessage != ""),
|
||||
@@ -53,7 +52,9 @@ templ Input(props InputProps) {
|
||||
@props.Icon
|
||||
}
|
||||
<input
|
||||
id={ props.Name }
|
||||
name={ props.Name }
|
||||
aria-label={ props.Label }
|
||||
if props.Type == "" {
|
||||
type="text"
|
||||
} else {
|
||||
@@ -75,7 +76,7 @@ templ Input(props InputProps) {
|
||||
}
|
||||
{ props.Attrs... }
|
||||
/>
|
||||
</label>
|
||||
</div>
|
||||
if props.Description != "" {
|
||||
<div class="label">{ props.Description }</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user