venice-dynamo-rewrite/venice-data/velocity/sysadmin/edit-email.vm

52 lines
2.2 KiB
Plaintext
Raw Normal View History

#*
The contents of this file are subject to the Mozilla Public License Version 1.1
(the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at <http://www.mozilla.org/MPL/>.
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
language governing rights and limitations under the License.
The Original Code is the Venice Web Communities System.
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
Copyright (C) 2003 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
Contributor(s):
*#
#*
Parameters:
msgtitle = Title of the E-mail message being edited.
action = Action URL to which the form should be posted.
subject = Default subject for the message.
body = Default body for the message.
varmap = Listing of variables in the input, with explanations; a Map (may be null)
error_message = Error message to be displayed for this form (may be null).
*#
#header2( "Edit E-Mail Message" $msgtitle )
#if( $error_message )
<div align="center" class="formerror">#encodeHTML( $error_message ) Please try again.</div>
#end
<form method="POST" action="#formatURL( "SERVLET" $action )">
<table align="center" border="0" cellpadding="2" cellspacing="0">
<tr valign="middle"><td align="left">
Subject: <input type="text" name="subject" size="60" maxlength="254" value="$!subject" />
</td></tr>
<tr valign="top"><td align="left">
<textarea name="body" rows="30" cols="80" wrap="hard">#encodeHTML( $!body )</textarea>
</td></tr>
#if( $varmap )
<tr valign="top"><td align="left">
<b><u>Variables:</u></b>
#foreach( $var in $varmap.keySet() )
<br />#dollarprefix( $var ) = #encodeHTML( ${varmap.get($var)} )
#end
</td></tr>
#end
<tr valign="middle"><td align="center">
#button( "INPUT" "update" )&nbsp;&nbsp;#button( "INPUT" "cancel" )
</td></tr>
</table>
</form>