<%@ taglib uri="webwork" prefix="webwork" %>
<%@ taglib uri="webwork" prefix="ui" %>
<%@ taglib uri="sitemesh-page" prefix="page" %>

<html>
<head>
    <meta content="issuesummary" name="decorator" />
    <title><webwork:text name="'comment.add.title'"/>: <webwork:property value="summary" /> [<webwork:property value="issue/string('key')" />]</title>
</head>
<body>
<style>
<!--
.fieldLabelArea { width: 10%; }
-->
</style>
<webwork:if test="ableToComment == 'true'">
    <page:applyDecorator name="jiraform">
        <page:param name="action">AddComment.jspa</page:param>
        <page:param name="cancelURI"><webwork:property value="issuePath" /></page:param>
        <page:param name="submitName"> <webwork:property value="text('comment.add.submitname')"/> </page:param>
        <page:param name="title"><webwork:text name="'comment.add.title'"/></page:param>
        <page:param name="width">100%</page:param>
        <page:param name="description"><webwork:text name="'comment.add.desc'"/></page:param>

        <webwork:property value="/fieldScreenRendererLayoutItemForField(/field('comment'))/fieldLayoutItem/orderableField/createHtml(/fieldScreenRendererLayoutItemForField(/field('comment'))/fieldLayoutItem, /, /, /issueObject, null)" escape="'false'" />

        <ui:component name="'id'" template="hidden.jsp" theme="'single'"  />
    </page:applyDecorator>
</webwork:if>
<webwork:else>
    <page:applyDecorator name="jiraform">
        <page:param name="title"><webwork:text name="'comment.add.title'"/></page:param>
		<page:param name="description"><webwork:text name="'comment.add.desc'" /></page:param>
		<%@ include file="/includes/addcomment-notloggedin.jsp" %>
	</page:applyDecorator>
</webwork:else>
</body>
</html>