<@cms.comment id=id replaceSensitive=false>
    <#assign
        a=object
        contentId=a.contentId
    />
</@cms.comment>
<form action="cmsComment/save?callbackType=closeCurrent" method="post" autocomplete="off" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
    <input type="hidden" name="id" value="${id!}"/>
    <input type="hidden" name="contentId" value="${contentId!}"/>
    <input type="hidden" name="_csrf" value="<@tools.csrfToken admin=true/>"/>
    <div class="pageFormContent" layoutH>
        <dl class="nowrap">
            <dt><@t.page 'content'/>:</dt>
            <dd>
                <@cms.content id=contentId>${(object.title)!}</@cms.content>
            </dd>
        </dl>
<#if a?has_content>
        <dl>
            <dt><@t.page 'create_date'/>:</dt>
            <dd>${a.createDate!}</dd>
        </dl>
    <#if a.updateDate?has_content>
        <dl>
            <dt><@t.page 'modified_date'/>:</dt>
            <dd>${a.updateDate!}</dd>
        </dl>
    </#if>
    <@sys.user id=a.userId>
        <dl>
            <dt><@t.page 'content.promulgator'/>:</dt>
            <dd>${object.nickname!}</dd>
        </dl>
    </@sys.user>
        <dl>
            <dt><@t.page 'status'/>/<@t.page 'inspector'/>:</dt>
            <dd>
                <@t.page 'status.content.'+a.status/>
                <#if 1=a.status>/ <@sys.user id=a.checkUserId>${object.nickname!}</@sys.user></#if>
            </dd>
        </dl>
        <dl>
            <dt><@t.page 'content.score'/>:</dt>
            <dd>
                ${a.scores!}
            </dd>
        </dl>
        <dl>
            <dt><@t.page 'replies'/>:</dt>
            <dd>
                ${a.replies!}
            </dd>
        </dl>
</#if>
        <dl class="nowrap">
            <dt><@t.page 'comment'/>:</dt>
            <dd>
                <textarea name="text" rows="3" cols="50">${(a.text)!}</textarea>
            </dd>
        </dl>
    </div>
    <div class="formBar">
        <ul>
            <li><button type="submit" class="buttonActive" title="ctrl+s"><@t.page 'button.ok'/></button></li>
            <li><button type="button" class="button close"><@t.page 'button.close'/></button></li>
        </ul>
    </div>
</form>