<div class="content_title"><a href="/master/email_aliases">Aliasy mailowe</a> > edycja</div>
<?php
	if(!empty($info))
		echo '<p class="info_box">'.$info.'<p>';
?>
<form action="" method="post">
	<table width="100%">
		<!-- Nazwa -->
		<tr>
			<td width="200">Nazwa*</td>
			<td>
				<input type="hidden" name="id" value="<?php if(!empty($values['id'])) echo $values['id'];?>"/>
				<input type="text" name="nazwa" readonly="readonly" value="<?php if(!empty($values['nazwa'])) echo $values['nazwa'];?>"/>
			</td>
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['nazwa'])) echo $errors['nazwa'];?></span></td>
		</tr>			
		<!-- Alias email -->
		<tr>
			<td>Alias email*</td>
			<td>
				<input type="text" name="alias_email" value="<?php if(!empty($values['alias_email'])) echo $values['alias_email'];?>"/>
			</td>							
		</tr>
		<tr>
			<td></td>
			<td><span class="error_info"><?php if(!empty($errors['alias_email'])) echo $errors['alias_email'];?></span></td>
		</tr>													
		<tr>
			<td colspan="2" align="left">
                <div class="formHr">&nbsp;</div>
                <div class="form_buttons_v1">
                    <input type="submit" value="Zatwierdź" class="formButton"/>
                    <input type="button" name="anuluj" value="Anuluj" class="formButton" onClick="document.location.href='<?php echo base_url();?>master/email_aliases';"/>
                    <span class="field_required">* - pole wymagane</span>
                </div>
			</td>
		</tr>						
	</table>
</form>