<?php echo form_open('evento/edit/'.$evento['id']); ?>

	<div class="form-group">
		<label for="titulo"><span class="text-danger">*</span>Título</label>
		<input type="text" id="titulo" name="titulo" class="form-control" value="<?php echo ($this->input->post('titulo') ? $this->input->post('titulo') : $evento['titulo']); ?>" />
		<span class="text-danger"><?php echo form_error('titulo');?></span>
	</div>
	<div class="form-group">
		<label for="descripcion"><span class="text-danger">*</span>Descripción</label>
		<input type="text" id="descripcion" name="descripcion" class="form-control" value="<?php echo ($this->input->post('descripcion') ? $this->input->post('descripcion') : $evento['descripcion']); ?>" />
		<span class="text-danger"><?php echo form_error('descripcion');?></span>
	</div>
	<div class="form-group">
		<label for="lugar"><span class="text-danger">*</span>Lugar</label>
		<input type="text" id="lugar" name="lugar" class="form-control" value="<?php echo ($this->input->post('lugar') ? $this->input->post('lugar') : $evento['lugar']); ?>" />
	</div>
		<div class="form-group">
		<label for="day"><span class="text-danger">*</span>Día</label>
		<input type="text" id="day" name="day" class="form-control" value="<?php echo ($this->input->post('day') ? $this->input->post('day') : $evento['day']); ?>" />
	</div>
	<div class="form-group">
		<label for="month"><span class="text-danger">*</span>Mes</label>
		<input type="text" id="month" name="month" class="form-control" value="<?php echo ($this->input->post('month') ? $this->input->post('month') : $evento['month']); ?>" />
	</div>
	<div class="form-group">
		<label for="year"><span class="text-danger">*</span>Año</label> 
		<input type="text" id="year" name="year" class="form-control" value="<?php echo ($this->input->post('year') ? $this->input->post('year') : $evento['year']); ?>" />
	</div>
	
		<input type="hidden" name="id_autor" value="<?php echo ($this->input->post('id_autor') ? $this->input->post('id_autor') : $evento['id_autor']); ?>" />
	
		<input type="hidden" name="id_condominio" value="<?php echo ($this->input->post('id_condominio') ? $this->input->post('id_condominio') : $evento['id_condominio']); ?>" />
	
		<input type="hidden" name="fecha_registro" value="<?php echo ($this->input->post('fecha_registro') ? $this->input->post('fecha_registro') : $evento['fecha_registro']); ?>" />
	
		<input type="hidden" name="fecha_modificacion" value="<?php echo ($this->input->post('fecha_modificacion') ? $this->input->post('fecha_modificacion') : $evento['fecha_modificacion']); ?>" />

		<input type="hidden" name="estado" value="<?php echo ($this->input->post('estado') ? $this->input->post('estado') : $evento['estado']); ?>" />
	
	<div class="form-group">
		<label for="hora_inicio"><span class="text-danger">*</span>Hora de Inicio</label>
		<input type="text" id="hora_inicio" name="hora_inicio" class="form-control" value="<?php echo ($this->input->post('hora_inicio') ? $this->input->post('hora_inicio') : $evento['hora_inicio']); ?>" />
	</div>
	<div class="form-group">
		<label for="hora_fin"><span class="text-danger">*</span>Hora de Finalización</label>
		<input type="text" id="hora_fin" name="hora_fin" class="form-control" value="<?php echo ($this->input->post('hora_fin') ? $this->input->post('hora_fin') : $evento['hora_fin']); ?>" />
	</div>
	
	<div class="form-group">
		<button type="submit" class="btn btn-primary">Guardar</button>
	</div>
	
<?php echo form_close(); ?>