This commit is contained in:
Van 2015-09-30 21:38:37 +08:00
parent 232e095b4d
commit 7e2f33269f
2 changed files with 55 additions and 40 deletions

View File

@ -88,6 +88,12 @@ h4, h5, h6 {
margin-bottom: 0em;
}
.form-control,
#captcha,
#captchaReply {
margin-top: 15px;
}
.cmtFromSym {
font-size: 12px;
color: #ccc;
@ -98,10 +104,6 @@ h4, h5, h6 {
margin-top: 24px;
}
.cmtReplyForm {
margin-top: 128px;
}
.gray {
color: #ccc;
}

View File

@ -1,6 +1,5 @@
<#macro comments commentList article>
<div class="row" id="comments">
<div class="col-sm-12">
<#list commentList as comment>
<div class="row comment" id="${comment.oId}">
<img class="col-sm-1" title="${comment.commentName}"
@ -28,31 +27,40 @@
</div>
</#list>
</div>
</div>
<#if article.commentable>
<div class="row cmtForm">
<table id="commentForm" class="col-sm-12">
<table id="commentForm" class="col-sm-12 form-horizontal">
<tbody>
<#if !isLoggedIn>
<tr>
<td colspan="2">
<input type="text" class="normalInput" id="commentName" placeholder="Name"/>
<td>
<label for="commentName" class="col-sm-2 control-label">Name</label>
</td>
<td>
<input type="text" class="form-control" id="commentName" placeholder="Name"/>
</td>
</tr>
<tr>
<td colspan="2">
<input type="text" class="normalInput" id="commentEmail" placeholder="Email"/>
<td>
<label for="commentName" class="col-sm-2 control-label">Email</label>
</td>
<td>
<input type="text" class="form-control" id="commentEmail" placeholder="Email"/>
</td>
</tr>
<tr>
<td colspan="2">
<input type="text" id="commentURL" placeholder="URL"/>
<td>
<label for="commentName" class="col-sm-2 control-label">URL</label>
</td>
<td>
<input type="text" id="commentURL" placeholder="URL" class="form-control"/>
</td>
</tr>
</#if>
<tr>
<td id="emotions" colspan="2">
<td>&nbsp;</td>
<td id="emotions">
<span class="em00" title="${em00Label}"></span>
<span class="em01" title="${em01Label}"></span>
<span class="em02" title="${em02Label}"></span>
@ -71,15 +79,20 @@
</td>
</tr>
<tr>
<td colspan="2">
<textarea rows="10" style="width: 100%;" id="comment"></textarea>
<td>&nbsp;</td>
<td>
<textarea rows="3" id="comment" class="form-control"></textarea>
</td>
</tr>
<#if !isLoggedIn>
<tr>
<td colspan="2">
<input type="text" id="commentValidate"/>
<td>&nbsp;</td>
<td>
<form class="form-inline">
<input type="text" id="commentValidate" class="form-control"/>
<img id="captcha" alt="validate" src="${servePath}/captcha.do" />
</form>
</td>
</tr>
</#if>
@ -147,7 +160,7 @@
};
var replyTo = function (id) {
var commentFormHTML = "<table class='cmtReplyForm' id='replyForm'>";
var commentFormHTML = "<table class='cmtReplyForm col-sm-12 form-horizontal' id='replyForm'>";
page.addReplyForm(id, commentFormHTML);
$("#replyForm label").each(function () {
$this = $(this);