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

<form method="post" action="{url Config='AddElement' idMain=$idMain}" enctype="multipart/form-data">
	<input type="hidden" name="idMain" value="{$idMain}" />
	{if isset($obj)}
		<input type="hidden" name="id" value="{$obj->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='obj' func='getName'}
							{if isset($error.name)}<div style="color: red;" id="actionError" class="validate">{$error.name}</div>{/if}
							</td>
						</tr>
						<tr>
							<td>Opis:</td>
							<td class="left">
								<textarea name="description" cols="54" rows="5">{$obj->GetDescription()}</textarea>
							{if isset($error.description)}<div style="color: red;" id="actionError">{$error.description}</div>{/if}
							</td>									
						</tr>
						<tr>
							<td>Publikuj:</td>
							<td>{formField type='checkbox' name='publication' obj='obj' func='GetPublication'}</td>
						</tr>		
						<tr>
							<td>Pole inne:</td>
							<td>{formField type='checkbox' name='other' obj='obj' func='GetOther'}</td>
						</tr>						
						<tr>
							<td>Kolejność:</td>
							<td>							
							{formField name='weight' class='inputWidth141 input100percent' errorClass='validate' type='text' obj='obj' func='getWeight'}
							{if isset($error.weight)}<div style="color: red;" id="actionError" class="validate">{$error.weight}</div>{/if}
							</td>
						</tr>
					</tbody>
				</table>
			{/dropDownContainer}
		
			
		
		</div>
		</div>
	<div class="cb"></div>
		<div class="panelButtons">
		{if isset($idMain)}
			<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url Config=Edit id=$idMain}'" />
			{else}
			<input type="button" value="Anuluj" class="cancel" onclick="document.location.href='{url Config=Index}'"/>
			{/if}
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="submit" value="Zapisz" name="doCategoryAdd"/>
		</div>
	<input type="hidden" name="descriptionHidden" id="descriptionHidden" value="" />
<input type="hidden" name="shortnoteHidden" id="shortnoteHidden" value="" />
</form>
