17 lines
572 B
HTML
17 lines
572 B
HTML
@(form: Form[_], tags: List[String])(implicit ctx: Context)
|
|
|
|
<input hint="What's your question?" class="title" name="@form("title").name" value="@form("title").value" placeholder="What's your question? Be specific." />
|
|
@errMsg(form("title"))
|
|
<textarea name="@form("body").name">@form("body").value</textarea>
|
|
@errMsg(form("body"))
|
|
<div class="tags_wrap">
|
|
<input
|
|
type="text"
|
|
name="tags"
|
|
data-tags="@tags.mkString(",")"
|
|
data-prefill="@form("hidden-tags").value"
|
|
placeholder="Add a tag and press Enter"
|
|
class="tags tm-input"/>
|
|
<div class="tags"></div>
|
|
</div>
|