goipam/web/templates/formatting.templ

26 lines
640 B
Plaintext

package templates
// columns takes components and arranges them in columns
templ columns(columns ...templ.Component) {
<div class="columns is-centered">
for _, column := range columns {
<div class="column">
@column
</div>
}
</div>
}
templ formField(label string, inputType string, name string, value string) {
<div class="field">
<label class="label">{ label }</label>
<input class="input" type={ inputType } name={ name } value={ value }/>
</div>
}
templ formFieldStatic(label string, inputType string, name string, value string) {
<div class="field">
<label class="label">{ label }</label> { value }
</div>
}