<!--// $Id$ //-->
{$xajax}

{css}

<form id="nodelockadd" name="nodelockadd">
	<input type="hidden" name="time[fromsec]">
	<input type="hidden" name="time[tosec]">
</form>

<form id="nodelockedit" name="nodelockedit">
	<input type="hidden" name="id">
	{foreach $_DAYS as $daynr => $dayname}
		<input type="hidden" name="days[{$daynr}]">
	{/foreach}
	<input type="hidden" name="time[fromsec]">
	<input type="hidden" name="time[tosec]">
</form>

{tab_container id="nodelocks" label="Node Locks"}

	{tab_header content_id="nodelockspanel"}
		{tab_header_cell icon="lms-ui-icon-nodelock"}
			<strong>{trans("Locks")}</strong>
		{/tab_header_cell}
	{/tab_header}

	{tab_contents id="nodelockspanel"}

		{tab_table id="nodelocktable"}
			{tab_hourglass}{/tab_hourglass}
		{/tab_table}

		{tab_button_panel}
			{tab_buttons}
				{foreach $_DAYS as $daynr => $dayname}
					<label>
						<input type="checkbox" name="days[{$daynr}]" value="1" form="nodelockadd">
						{$dayname}
					</label>
				{/foreach}
				<input type="time" name="time[from]" form="nodelockadd">
				<input type="time" name="time[to]" form="nodelockadd">
				<a class="lms-ui-button" id="clear-button">
					<i class="lms-ui-icon-delete" title="{trans("Clear")}"></i>
				</a>
			{/tab_buttons}
			{tab_buttons}
				{button id="nodelockaddlink" icon="add"
					onclick="javascript:addNodeLock();" tip="Add new lock" label="Add"}
			{/tab_buttons}
		{/tab_button_panel}

		{tab_hourglass template=1}{/tab_hourglass}

	{/tab_contents}
{/tab_container}

{js}
