mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-28 16:08:38 +00:00
Add comment form max char limit validation (#722)
* Add comment form max char limit validation, minor visual nitpick * Italicize banned/disabled/etc messages within comments
This commit is contained in:
parent
81580c6afd
commit
89877d359f
2 changed files with 4 additions and 6 deletions
|
@ -15,13 +15,11 @@
|
|||
<div class="ui yellow segment" id="comments">
|
||||
@if (Model.Comments.Count == 0 && Model.CommentsEnabled)
|
||||
{
|
||||
<p>There are no comments.</p>
|
||||
<p><i>There are no comments.</i></p>
|
||||
}
|
||||
else if (!Model.CommentsEnabled)
|
||||
{
|
||||
<b>
|
||||
<i>Comments are disabled.</i>
|
||||
</b>
|
||||
<p><i>Comments are disabled.</i></p>
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -34,7 +32,7 @@
|
|||
<div class="ui divider"></div>
|
||||
<form class="ui reply form" action="@Url.RouteUrl(ViewContext.RouteData.Values)/postComment" method="post">
|
||||
<div class="field">
|
||||
<textarea style="min-height: 70px; height: 70px; max-height:120px" name="msg"></textarea>
|
||||
<textarea style="min-height: 70px; height: 70px; max-height:120px" maxlength="100" name="msg"></textarea>
|
||||
</div>
|
||||
<input type="submit" class="ui blue button">
|
||||
</form>
|
||||
|
|
|
@ -181,7 +181,7 @@
|
|||
@if (Model.ProfileUser.IsBanned)
|
||||
{
|
||||
<div class="ui yellow segment" id="comments">
|
||||
<p>Comments are disabled because the user is banned.</p>
|
||||
<p><i>Comments are disabled because the user is banned.</i></p>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue