<%@ taglib uri="webwork" prefix="webwork" %>
<%@ taglib uri="webwork" prefix="ui" %>
<%@ taglib uri="sitemesh-page" prefix="page" %>
<webwork:action name="'util.UserAction'" id="user"/>
<html>
<head>
    <title><webwork:text name="'Edit Comment'"/></title>
</head>

<body>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr>
        <td width="200" bgcolor="#f0f0f0" valign="top">
            <jsp:include page="/includes/panels/comment/summary.jsp"/>
        </td>
        <td bgcolor="#ffffff" valign="top">
            <table width="100%" cellpadding="10" cellspacing="0" border="0">
                <tr>
                    <td>
                        <page:applyDecorator name="jiraform">
                            <page:param name="action">EditComment.jspa</page:param>
                            <page:param name="cancelURI"><webwork:property value="issuePath"/></page:param>
                            <webwork:if test="/errorMessages/size == 0">
                                <page:param name="submitName"> Save </page:param>
                            </webwork:if>
                            <page:param name="title"><webwork:text name="'Edit Comment'"/></page:param>
                            <page:param name="width">100%</page:param>
                            <page:param name="description">
                                <webwork:text name="'viewissue.comment.edit.description'"/>
                            </page:param>
                            <%-- display only if not general errors --%>
                            <webwork:if test="/errorMessages/size == 0">
                                <webwork:property
                                    value="/fieldScreenRendererLayoutItemForField(/field('comment'))/fieldLayoutItem/orderableField/editHtml(/fieldScreenRendererLayoutItemForField(/field('comment'))/fieldLayoutItem, /, /, /issueObject, null)"
                                    escape="'false'"/>
                            </webwork:if>
                            <ui:component name="'commentId'" template="hidden.jsp" theme="'single'"/>
                            <ui:component name="'id'" template="hidden.jsp" theme="'single'"/>
                        </page:applyDecorator>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</body>
</html>