<%--
 * Copyright by Intland Software
 *
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of Intland Software. ("Confidential Information"). You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with Intland.
 *
 * $Revision$ $Date$
--%>
<meta name="decorator" content="main">
<meta name="module" content="chat">
<meta name="moduleCSSClass" content="chatModule">
<meta name="stylesheet" content="chat.css">


<%@ taglib uri="jstl-c" prefix="c" %>

<%@ taglib uri="struts-html" prefix="html" %>

<%@ taglib uri="taglib" prefix="tag" %>
<%@ taglib uri="uitaglib" prefix="ui" %>

<c:set var="chat" value="${PROJECT_AWARE_DTO}" />

<c:set var="user" value="${pageContext.request.userPrincipal}" />

<ui:actionMenuBar>
	<table height="100%">
		<tr valign="middle">
			<td valign="middle" width="100%" height="100%" nowrap>
				<span class="titlenormal">
					<ui:breadcrumbs showProjects="false"/> : <ui:pageTitle>Invite Members</ui:pageTitle>
				</span>
			</td>
		</tr>
	</table>
</ui:actionMenuBar>

<html:errors />

<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="0">

<html:form action="/proj/chat/invitationTextDialog" focus="subject">

<div class="actionBar">
		&nbsp;&nbsp;<html:submit styleClass="button" property="SUBMIT" value="Send" />
		&nbsp;&nbsp;<html:cancel styleClass="button" />
</div>

<html:hidden property="chat_id" value="${chat.id}" />
<c:forEach var="user_id" items="${paramValues.user_id}">
	<html:hidden property="user_id" value="${user_id}" />
</c:forEach>

<TR>
	<TD NOWRAP CLASS="mandatory">&nbsp;Subject:&nbsp;</TD>

	<TD NOWRAP CLASS="expandText"><html:text property="subject"
		size="32" styleClass="expandText"
		value="Chatting Invation in Project: ${chat.project.name} - Messenger: ${chat.name}" /></TD>
</TR>

<TR VALIGN="top">
	<TD NOWRAP CLASS="mandatory">&nbsp;Details:&nbsp;</TD>

	<c:set var="details">
Hi,

please join to this messenger session.

<c:out value="${user.firstName} ${user.lastName}" />
	</c:set>

	<TD NOWRAP CLASS="expandTextArea"><html:textarea property="details" rows="10" cols="32" styleClass="expandTextArea" value="${details}" /></TD>
</TR>

</html:form>

</TABLE>
