<div class="middleLeft">
	<div class="middleRight p16">
		{MESSAGE}
		<form method="post" enctype="multipart/form-data" id="editForm">
		<table width="100%" cellspacing="0" cellpadding="5" border="0">
		{row:LINE}
		<tr class="header"><td colspan="2">{title}:</td></tr>
		{if:show_subject}
		<tr class="line">
		<td><div class="labelBox">{rs:SUBJECT}:</div></td>
		<td><div class="inputBox"><input type="text" name="r[{name}][subject]" value="{subject}"></div></td>
		</tr>
		{/if}

		<tr class="line"><td colspan="2"><div class="textareaBox"><textarea name="r[{name}][description]" class="big" rows="10">{description}</textarea></div></td></tr>
		{/row}

		<tr>
		<td colspan="2">
			<div id="variablesBox">
				<span id="variablesButton">{rs:LIST_OF_VARIABLES}</span>
				<div id="variablesList">
					<table cellspacing="0" cellpadding="0" border="0">
					<tr>
					<td valign="top"><div class="label">%name%</div></td>
					<td valign="top"><div class="value">{rs:NAME}</div></td>
					</tr>

					<tr>
					<td valign="top"><div class="label">%login%</div></td>
					<td valign="top"><div class="value">{rs:LOGIN}</div></td>
					</tr>

					<tr>
					<td valign="top"><div class="label">%password%</div></td>
					<td valign="top"><div class="value">{rs:PASSWORD}</div></td>
					</tr>

					<tr>
					<td valign="top"><div class="label">%groups%</div></td>
					<td valign="top"><div class="value">{rs:SUBSCRIBE}/{rs:UNSUBSCRIBE} {rs:TITLE_MAILING_GROUPS}</div></td>
					</tr>

					<tr>
					<td valign="top"><div class="label">%link%</div></td>
					<td valign="top"><div class="value">{rs:T_VAR_URL_ACTIVATION}</div></td>
					</tr>

					<tr>
					<td valign="top"><div class="label">%url%</div></td>
					<td valign="top"><div class="value">{rs:T_VAR_SITE_URL}</div></td>
					</tr>
					</table>
				</div>
			</div>
		</td>
		</tr>

		<tr>
		<td><img src="{global:PATH}img/spacer.gif" width="60" height="1" border="0"></td>
		<td width="100%"><img src="{global:PATH}img/spacer.gif" width="100" height="1" border="0"></td>
		</table>
		<input type="hidden" name="save" value="1" class="hidden">
		</form>
	</div>
</div>
<div class="actionPanelLeft">
	<div class="actionPanelRight">
		<div class="actionPanelBottom">
			<div class="actionPanelBottomLeft">
				<div class="actionPanelBottomRight p16">
					<div id="actionBottom" class="right">
						<div class="button actionSave">
							<div class="buttonRight">
								<div class="buttonMiddle">{rs:ACTION_SAVE}</div>
							</div>
						</div>

						<div class="br"><img src="{global:PATH}img/spacer.gif" width="1" height="1" border="0" /></div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<script language="JavaScript">
	$(".actionSave").click(function() {
		$("#editForm").submit();
	});
	$("#variablesButton").click(function() {
		$("#variablesList").slideToggle('fast');
	});
	$("#editForm").keydown(function(event) {
  		if (event.keyCode == '13' && event.target.nodeName!='TEXTAREA') $(".actionSave").triggerHandler('click');
	});
</script>
