Do not allow to submit empty post
This commit is contained in:
parent
f06b357091
commit
454d6fb730
|
@ -60,7 +60,7 @@ description = shorten(posts.currentPageResults.headOption.??(_.text).replace("\n
|
|||
<p class="message">@autoLink(post.text)</p>
|
||||
@if(ctx.userId.fold(false)(post.shouldShowEditForm(_))) {
|
||||
<form class="edit-post-form" method="post" action="@routes.ForumPost.edit(post.id)">
|
||||
<textarea name="changes" class="edit-post-box" minlength="3">@post.text</textarea>
|
||||
<textarea name="changes" class="edit-post-box" minlength="3" required>@post.text</textarea>
|
||||
<div class="edit-buttons">
|
||||
<a class="edit-post-cancel" href="@routes.ForumPost.redirect(post.id)" style="margin-left:20px">@trans.cancel()</a>
|
||||
<button type="submit" class="submit button">@trans.apply()</button>
|
||||
|
|
Loading…
Reference in a new issue