Improved tag rendering

This commit is contained in:
2017-10-16 01:35:28 +02:00
parent ed82c71220
commit 4a6f54ec52
3 changed files with 5 additions and 3 deletions

View File

@ -23,7 +23,7 @@ component InputTags(id string, value []string, label string, tooltip string)
label(for=id)= label + ":"
.tags(id=id)
for index, tag := range value
.tag
.tag.tag-edit
span.tag-title.action(contenteditable="true", data-trigger="focusout", data-action="save", data-field=id + "[" + strconv.Itoa(index) + "]")= tag
button.tag-remove.action(data-action="arrayRemove", data-trigger="click", data-field=id, data-index=index)
RawIcon("trash")