Added image upload frontend

This commit is contained in:
2018-03-02 17:18:29 +01:00
parent 7751cd81a3
commit 833069d360
5 changed files with 63 additions and 3 deletions

View File

@ -30,6 +30,13 @@ component InputSelection(id string, value string, label string, placeholder stri
each option in options
option(value=option.Value)= option.Label
component InputImage(id string, label string, src string)
.widget-section
label(for=id)= label + ":"
button.action(data-action="selectFile", data-trigger="click", data-preview-image-id=id + "-preview")
Icon("upload")
span Select file
component InputTags(id string, value []string, label string, tooltip string)
.widget-section
label(for=id)= label + ":"