10 lines
213 B
Plaintext
10 lines
213 B
Plaintext
package form
|
|
|
|
templ Input(color, id, fieldType string) {
|
|
if color == "" {
|
|
<input class={ "input" } id={ id } type={ fieldType }/>
|
|
} else {
|
|
<input class={ "input", color } id={ id } type={ fieldType }/>
|
|
}
|
|
}
|