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-21 12:00:52 +00:00
|
|
|
input.widget-element.action(id=id, type="text", value=value, placeholder=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-21 12:00:52 +00:00
|
|
|
textarea.widget-element.action(id=id, placeholder=placeholder, data-action="save", data-trigger="change")= value
|
2017-06-19 18:59:02 +00:00
|
|
|
|
2017-06-21 12:00:52 +00:00
|
|
|
component InputNumber(id string, value int, label string, placeholder string, min string, max string)
|
2017-06-19 18:59:02 +00:00
|
|
|
.widget-input
|
|
|
|
label(for=id)= label + ":"
|
2017-06-21 12:00:52 +00:00
|
|
|
input.widget-element.action(id=id, type="number", value=value, min=min, max=max, placeholder=placeholder, data-action="save", data-trigger="change")
|