<h1>Dodaj Kategorie</h1>	
<script language="javascript" type="text/javascript">
	urlStatic = '{$urlStatic}';
</script>

<form method="post" action="{url ProductAttribute='Edit' id=$objAttributeProduct->GetId() }" enctype="multipart/form-data">
	{if isset($objAttributeProduct)}
		<input type="hidden" name="idProductAttribute" value="{$objAttributeProduct->GetId()}" />
	{/if}

	<div class="panelRightTop"></div>
	<div class="panelRightBody">
		<div class="paddedContent">
			{assign var="additionalTitle" value=""}

			{dropDownContainer title="Ogólne" additionalTitle=$additionalTitle}
				<table width="100%" cellspacing="0" cellpadding="5" border="0" class="commonTable">
					<tbody>
						<tr>
							<td>Nazwa:</td>
							<td>							
							{formField name='name' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='objAttributeProduct' func='getDescription'}
							{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
							</td>
						</tr>
						<tr>
							<td>Publikuj:</td>
							<td>{formField type='checkbox' name='publication' obj='objAttributeProduct' func='GetPublication'}</td>
						</tr>
						{*<tr>
					    <td class="noborder"><b>Data publikacji:</b></td>
					    <td class="noborder">
						<img src='{$urlStatic}/image/iconKalendarz.gif' alt='kalendarz' onclick="showKal(document.getElementById('datepub'));" />&nbsp;{formField type='input' name='datepublication'  errorClass='validate' obj='objAttributeProduct' func='GetDatePublicationWithoutTime' id='datepub'}
						{if isset($error.datepublication)}<div style="color: red;" id="actionError" class="validate">{$error.datepublication}</div>{/if}
						 </td>
					</tr>*}
					</tbody>
				</table>
			{/dropDownContainer}
		
			
		
		</div>
		</div>
	<div class="cb"></div>
		<div class="panelButtons">
		{if isset($idStructure)}
			<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url label=editStructure id=$idStructure}'" />
			{else}
			<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url _value=$controller,index}'"/>
			{/if}
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="submit" value="Zapisz" name="doAttributeEdit"/>
		</div>
	<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
</form>
