## $Header: /cvs/sakai2/legacy/tools/src/webapp/vm/chat/chef_chat-Control.vm,v 1.3 2005/05/11 19:08:21 ggolden.umich.edu Exp $ 
##<!-- chef_chat-Controls.vm, use with org.chefproject.ChatAction.java
##     context: $action: Action class name
##              $form-submit: submit field event_submit value
##              $form-message: form field for the text of the message
##              $panel-control: controls panel name
##              $allow-send: Boolean, if false don't do the send UI
##              $message: error message
##-->

## this is double deep
<script type="text/javascript" language="JavaScript">
doubleDeep = true;
</script>
<script type="text/javascript" language="JavaScript">
	focus_path = ["${form-message}"];
</script>
<script type="text/javascript" language="JavaScript">
try { parent.updateNow(); } catch (error) {}
</script>

#if($menu)#toolbar($menu)#end
		#if ($alertMessage)<div class="alertMessage">$tlang.getString("gen.alert") $validator.escapeHtml($alertMessage)</div><div class="clear"></div>#end
#if ($allow-send)
	<form name="chat_input" id="chat_input" action="#toolForm("$action")" method="post">
			<label for="$form-message"></label>
			<textarea name="$form-message" id="$form-message" rows="3" cols="60" wrap="virtual"  onkeypress="formSubmitOnEnter(this, event)"></textarea>
			<p class="act" style="margin-top:0">
			<input type="hidden" name="$form-submit" id="$form-submit" value="x" />
				<input class="active" accesskey="s" type="submit" name="send" id="send" value="$tlang.getString("control.post")"  />
				<input type="reset" accesskey="x" name="reset" id="reset" value="$tlang.getString("control.clear")" />
			</p>
	</form>
#end
