<?php use_helper('Object','Validation')?>
<h1><?php echo $titulo?> <?php include_partial('partials/info',array('tool'=>'M&aacute;s informaci&oacute;n sobre edici&oacute;n de submen&uacute;s')) //TODO redireccionar al manual?>
</h1>
<?php if(count($credencial) > 0): ?>
<?php echo form_tag('credenciales/update')?>
<?php echo input_hidden_tag('id_m',$id)?>
<?php if($credencial->getId()): ?>
<?php echo input_hidden_tag('id',$credencial->getId())?>
<?php endif?>
<table class="show">
	<tr>
		<th align="left">Nombre del submen&uacute;</th>
		<td><?php echo input_tag('descripcion',$credencial->getDescripcion())?>
		<?php echo form_error('descripcion')?></td>
	</tr>
	<tr>
		<th align="left">Men&uacute;</th>
		<td><?php echo select_tag('id_menu',objects_for_select($menus,'getId','getDescripcion',$credencial->getIdMenu()))?></td>
	</tr>
	<tr>
		<th align="left">Orden</th>
		<td><?php echo input_tag('orden',$credencial->getOrden())?> <?php echo form_error('orden')?>
		</td>
	</tr>
</table>
		<?php include_partial('partials/submit',array('return' => 'credenciales/listar?id_menu=' . $id,'confirm_submit' => 'Seguro que desea guardar los cambios'))?>
		<?php else: ?>
		<?php include_partial('partials/no_found',array('tool' => 'Cancelar', 'image' => 'cancel', 'return' => 'credenciales/listar?id_menu=' . $id))?>
		<?php endif?>