2017-06-19 18:59:02 +00:00
|
|
|
component InputText(id string, value string, label string, placeholder string)
|
|
|
|
.widget-input
|
|
|
|
label(for=id)= label + ":"
|
2017-06-30 21:52:42 +00:00
|
|
|
input.widget-element.action(id=id, data-field=id, type="text", value=value, placeholder=placeholder, title=placeholder, data-action="save", data-trigger="change")
|
2017-06-19 18:59:02 +00:00
|
|
|
|
|
|
|
component InputTextArea(id string, value string, label string, placeholder string)
|
|
|
|
.widget-input
|
|
|
|
label(for=id)= label + ":"
|
2017-06-30 21:52:42 +00:00
|
|
|
textarea.widget-element.action(id=id, data-field=id, placeholder=placeholder, title=placeholder, data-action="save", data-trigger="change")= value
|
2017-06-19 18:59:02 +00:00
|
|
|
|
2017-06-26 09:43:47 +00:00
|
|
|
component InputNumber(id string, value float64, label string, placeholder string, min string, max string, step string)
|
2017-06-19 18:59:02 +00:00
|
|
|
.widget-input
|
|
|
|
label(for=id)= label + ":"
|
2017-06-30 21:52:42 +00:00
|
|
|
input.widget-element.action(id=id, data-field=id, type="number", value=value, min=min, max=max, step=step, placeholder=placeholder, title=placeholder, data-action="save", data-trigger="change")
|
2017-06-24 17:52:10 +00:00
|
|
|
|
2017-06-29 13:55:04 +00:00
|
|
|
component InputSelection(id string, value string, label string, placeholder string, values []string)
|
2017-06-24 17:52:10 +00:00
|
|
|
.widget-input
|
|
|
|
label(for=id)= label + ":"
|
2017-06-30 21:52:42 +00:00
|
|
|
select.widget-element.action(id=id, data-field=id, value=value, title=placeholder, data-action="save", data-trigger="change")
|