2017-06-27 02:15:52 +00:00
|
|
|
component NewThread(user *arn.User)
|
2017-07-10 18:39:50 +00:00
|
|
|
h1 New thread
|
|
|
|
|
2017-07-09 02:22:14 +00:00
|
|
|
.widget-form
|
2017-06-27 02:15:52 +00:00
|
|
|
.widget
|
2017-10-09 13:47:40 +00:00
|
|
|
input#title.widget-ui-element(type="text", placeholder="Title")
|
2017-06-27 02:15:52 +00:00
|
|
|
|
2019-08-31 07:52:42 +00:00
|
|
|
textarea#text.widget-ui-element(placeholder="Content", maxlength=limits.DefaultTextAreaMaxLength)
|
2017-06-27 02:15:52 +00:00
|
|
|
|
2017-10-09 13:47:40 +00:00
|
|
|
select#tag.widget-ui-element(value="general")
|
2017-06-27 02:15:52 +00:00
|
|
|
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
|
|
|
|
|
2017-07-09 02:22:14 +00:00
|
|
|
.buttons
|
|
|
|
button.action(data-action="createThread", data-trigger="click")
|
|
|
|
Icon("check")
|
|
|
|
span Create thread
|