<%
	uicomponent.setLink();
%>
<div class="UIResponse $uicomponent.id">
	<% uiform.begin() %>
		<div class="HorizontalLayout" style="*width:92%;">
			<div class="UIFormInput">
				<table width="100%">
					<tbody>
						<tr>
							<td style="white-space:nowrap;" align="right">
							<div style="padding-right:10px;line-height:24px;*line-height:20px"><%=_ctx.appRes("UICommentForm.title.Author")%>: </div>
							</td>
							<td>
								<div style="padding-right:10px;line-height:24px"><% uiform.renderChild(uicomponent.TITLE_USERNAME) %></div>
							</td>
						</tr>
						<tr>
							<td style="white-space:nowrap;" align="right">
								<div style="padding-right:10px;line-height:24px"><%=_ctx.appRes("UICommentForm.title.Language")%>: </div>
							</td>
							<td style="white-space:nowrap;">
								<div style="padding-right:10px;white-space:normal;line-height:24px"><%=uicomponent.languageSelected%></div>
							</td>
						</tr>
						<tr>
							<td style="white-space:nowrap;" align="right">
								<div style="padding-right:10px;line-height:24px"><%=_ctx.appRes("UICommentForm.title.Question")%>: </div>
							</td>
							<td style="white-space:nowrap;">
								<div style="padding-right:10px;white-space:normal;line-height:24px"><%=uicomponent.questionContent%></div>
							</td>
						</tr>
						<tr>
							<td style="white-space:nowrap;" align="right">
								<div style="padding-right:10px;line-height:24px"><%=_ctx.appRes("UICommentForm.title.Detail")%>: </div>
							</td>
							<td style="white-space:nowrap;">
								<div class="QuestionDetail">
									<span><%=uicomponent.getQuestionDetail();%></span>
								</div>
							</td>
						</tr>
						<tr>
							<td style="white-space:nowrap;" align="right"><div style="padding-right:10px;line-height:24px"><%=_ctx.appRes("UICommentForm.title.Comment")%>: </div></td>
							<td><% uiform.renderChild(uicomponent.COMMENT_CONTENT) %></td>
						</tr>
					</tbody>
				</table>
			</div>
			
			<div class="UIAction">
      <% for(action in uicomponent.getActions()) { 
		        	 String actionLabel = _ctx.appRes("UICommentForm.action." + action); 
		           String link = uicomponent.event(action) ;
		        %>
      <a href="javascript:void(0);"  onclick="$link" class="ActionButton LightBlueStyle">$actionLabel</a>
      <%}%>
    </div>
		</div>
	<%uiform.end()%>
</div>
