{include file="header.tpl"}
<div id="rowContent">
  <div id="titleTab"><div class="textTitle"><span class="textTitleSub">{$title}</span></div>
</div>
<div id="rowContentInner">

		<form method="post" action="{$smarty.server.SCRIPT_NAME}">
		    <div id="contentBoxTwoEdit">
				{if !$hcf->Validator->isValid()}
					{include file="form_errors.tpl" object="hcf"}
				{/if}

				<table class="editTable">

				<tr onClick="showHelpEntry('name')">
					<td class="{isvalid object="hcf" label="name" value="cellLeftEditTable"}">
						{t}Name:{/t}
					</td>
					<td class="cellRightEditTable">
						<input type="text" name="hierarchy_control_data[name]" value="{$hierarchy_control_data.name}">
					</td>
				</tr>

				<tr onClick="showHelpEntry('description')">
					<td class="{isvalid object="hcf" label="description" value="cellLeftEditTable"}">
						{t}Description:{/t}
					</td>
					<td class="cellRightEditTable">
						<input type="text" name="hierarchy_control_data[description]" value="{$hierarchy_control_data.description}">
					</td>
				</tr>

				<tr onClick="showHelpEntry('objects')">
					<td class="{isvalid object="hcf" label="objects" value="cellLeftEditTable"}">
						{t}Objects:{/t}
						<Br>
						{t}(Select one or more){/t}
					</td>
					<td class="cellRightEditTable">
						<select name="hierarchy_control_data[object_type_ids][]" multiple>
							{html_options options=$hierarchy_control_data.object_type_options selected=$hierarchy_control_data.object_type_ids}
						</select>
					</td>
				</tr>

			</table>
		</div>

		<div id="contentBoxFour">
			<input type="submit" class="btnSubmit" name="action:submit" value="{t}Submit{/t}" onClick="return singleSubmitHandler(this)">
		</div>

		<input type="hidden" name="hierarchy_control_data[id]" value="{$hierarchy_control_data.id}">
		</form>
	</div>
</div>
{include file="footer.tpl"}
