16 lines
429 B
Plaintext
16 lines
429 B
Plaintext
package form
|
|
|
|
templ TextInput(color, id, fieldType, placeholder string) {
|
|
if color == "" {
|
|
<input class={ "input" } name={ id } id={ id } type={ fieldType } placeholder={ placeholder }/>
|
|
} else {
|
|
<input class={ "input", color } name={ id } id={ id } type={ fieldType } placeholder={ placeholder }/>
|
|
}
|
|
}
|
|
|
|
templ Checkbox(text, id string) {
|
|
<label class="checkbox">
|
|
<input type="checkbox" id={ id }/> { text }
|
|
</label>
|
|
}
|