Add "reply as mod" buttons
Instead of toggle checkboxes.
This commit is contained in:
parent
0254ea4df6
commit
544dd921ee
|
@ -26,10 +26,10 @@
|
||||||
@forum.post.formFields(form("post")("text"), None)
|
@forum.post.formFields(form("post")("text"), None)
|
||||||
@base.captcha(form("post")("move"), form("post")("gameId"), captcha)
|
@base.captcha(form("post")("move"), form("post")("gameId"), captcha)
|
||||||
@errMsg(form("post"))
|
@errMsg(form("post"))
|
||||||
@if(isGranted(_.PublicMod)){
|
|
||||||
<div class="submit"><input type="checkbox" name="post.modIcon" value="true" /> Show moderator icon next to my name</div>
|
|
||||||
}
|
|
||||||
<button class="submit button" type="submit" data-icon="E"> @trans.createTheTopic()</button>
|
<button class="submit button" type="submit" data-icon="E"> @trans.createTheTopic()</button>
|
||||||
|
@if(isGranted(_.PublicMod)){
|
||||||
|
<button class="button" type="submit" data-icon="" name="post.modIcon" value="true"> Create topic as mod</button>
|
||||||
|
}
|
||||||
<a href="@routes.ForumCateg.show(categ.slug)" style="margin-left:20px">@trans.cancel()</a>
|
<a href="@routes.ForumCateg.show(categ.slug)" style="margin-left:20px">@trans.cancel()</a>
|
||||||
</form>
|
</form>
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,10 +108,10 @@ description = shorten(posts.currentPageResults.headOption.??(_.text).replace("\n
|
||||||
@forum.post.formFields(form("text"), topic.some)
|
@forum.post.formFields(form("text"), topic.some)
|
||||||
@base.captcha(form("move"), form("gameId"), captcha)
|
@base.captcha(form("move"), form("gameId"), captcha)
|
||||||
@globalError(form)
|
@globalError(form)
|
||||||
@if(isGranted(_.PublicMod)){
|
|
||||||
<div class="submit"><input type="checkbox" name="modIcon" value="true" /> Show moderator icon next to my name</div>
|
|
||||||
}
|
|
||||||
<button type="submit" class="submit button" data-icon="E"> @trans.reply()</button>
|
<button type="submit" class="submit button" data-icon="E"> @trans.reply()</button>
|
||||||
|
@if(isGranted(_.PublicMod)){
|
||||||
|
<button type="submit" class="button" data-icon="" name="modIcon" value="true" /> Reply as mod</button>
|
||||||
|
}
|
||||||
<a href="@routes.ForumCateg.show(categ.slug)" style="margin-left:20px">@trans.cancel()</a>
|
<a href="@routes.ForumCateg.show(categ.slug)" style="margin-left:20px">@trans.cancel()</a>
|
||||||
</form>
|
</form>
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,10 +75,10 @@ description = shorten(q.body.replace("\n", ""), 152).body).some) {
|
||||||
<textarea class="answer-body" name="@form("body").name">@form("body").value</textarea>
|
<textarea class="answer-body" name="@form("body").name">@form("body").value</textarea>
|
||||||
@errMsg(form("body"))
|
@errMsg(form("body"))
|
||||||
@base.captcha(form("move"), form("gameId"), captcha)
|
@base.captcha(form("move"), form("gameId"), captcha)
|
||||||
@if(isGranted(_.PublicMod)){
|
|
||||||
<div class="submit"><input type="checkbox" name="modIcon" value="true" /> Show moderator icon next to my name</div>
|
|
||||||
}
|
|
||||||
<button class="pure submit button" type="submit">Post your answer</button>
|
<button class="pure submit button" type="submit">Post your answer</button>
|
||||||
|
@if(isGranted(_.PublicMod)){
|
||||||
|
<button class="pure button" type="submit" data-icon="" name="modIcon" value="true"> Answer as mod</button>
|
||||||
|
}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue