2024-02-22 10:18:59 +01:00
|
|
|
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>
|
|
|
|
}
|
2024-02-23 18:39:05 +01:00
|
|
|
|
|
|
|
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>
|
|
|
|
}
|