2017-07-10 20:39:50 +02:00

23 lines
605 B
Plaintext

component NewThread(user *arn.User)
h1 New thread
.widget-form
.widget
input#title.widget-element(type="text", placeholder="Title")
textarea#text.widget-element(placeholder="Content")
select#tag.widget-element(value="general")
option(value="general") General
option(value="news") News
option(value="anime") Anime
option(value="bug") Bug
option(value="suggestion") Suggestion
if user.Role == "admin"
option(value="update") Update
.buttons
button.action(data-action="createThread", data-trigger="click")
Icon("check")
span Create thread