<?php $__env->startSection('CSS'); ?>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('Contenido'); ?>
<div class="row">
	<div class="col-md-12">
            <h2><i class="icons-web-site" style="font-size: 30px !important;"></i> Sitio Web </h2>
	</div><!--/col-md-12-->
</div><!--/row-->

<div class="row">
	<div class="col-md-12">
		<?php if(Session::has('message')): ?>
		<div class="alert alert-info"><?php echo Session::get('message'); ?></div>
		<?php endif; ?>
	</div>
</div>


<div class="row">
	<div class="col-md-12">
		<div class="block-web">
			<div class="header"> <h3 class="content-header"> Editar Tema <b> <?php echo $Plantilla->nombre; ?> </b> </h3> </div>
			<div class="porlets-content">
				<?php echo Form::open(array('route' =>  array('SysWebGClientesPlantillasxTemaEditar', $Temas->id, $Plantilla->id), 'method' => 'post', 'class' => 'form-horizontal row-border', 'id' => 'frmAgregar', 'files' => true)); ?>

                    <div class="form-group">
                            <label class="col-sm-3 control-label"> Nombre </label>
                        <div class="col-sm-9">
							<input type="text" name="nombre" class="form-control" value="<?php echo $Plantilla->nombre; ?>">
							<span class="text-danger" id="errnombre"> <?php echo $errors->first('nombre'); ?> <?php if(Session::has('ace')): ?> <?php echo Session::get('ace'); ?> <?php endif; ?>  </span>
                        </div>
					</div>
					<div class="form-group">
                            <label class="col-sm-3 control-label"> Plantilla </label>
                        <div class="col-sm-9">
                            <?php echo Form::file('contenido_html', array('class' => '', 'id' => 'contenido_html')); ?>

							<span class="text-warning" style="display: none;" id="imgdefault_html" class="loading">
								<img src="<?php echo asset('Cargando/hourglass.gif'); ?>" style="width: 32px; height: 32px;"> Espere mientras se carga la plantilla
							</span>
							<span class="text-danger" id="errcontenido_html"> <?php echo $errors->first('contenido_html'); ?> <?php if(Session::has('ace')): ?> <?php echo Session::get('ace'); ?> <?php endif; ?>  </span>
                        </div>
                    </div>
					<div class="form-group">
						<label class="col-sm-3 control-label"> Imagen del tema </label>
						<div class="col-sm-9">
							<img src="<?php echo asset('SysWeb/SitiosMembresia/Plantillas/Imagenes/'.$Plantilla->imagen_plantilla); ?>" class="img-thumbnail img-responsive" style="height:200px; height:200px;">
							<br><br>
							<?php echo Form::file('imagen', array('class' => '', 'id' => 'imagen')); ?>

							<span class="text-warning" style="display: none;" id="imgimagen" class="loading">
								<img src="<?php echo asset('Cargando/hourglass.gif'); ?>" style="width: 32px; height: 32px;"> Espere mientras se carga la imágen
							</span>
							<span class="text-danger" id="errimagen"> <?php echo $errors->first('imagen'); ?> </span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label"> Tipo de página </label>
						<div class="col-sm-9">
							<select class="form-control" name="slTipo">
								<option value="P" <?php if($Plantilla->tipo == 'P'): ?> selected <?php endif; ?> >Página principal</option>
								<option value="SA" <?php if($Plantilla->tipo == 'SA'): ?> selected <?php endif; ?> >Página sin acceso</option>
								<option value="C" <?php if($Plantilla->tipo == 'C'): ?> selected <?php endif; ?> >Página de contenido</option>
								<option value="M" <?php if($Plantilla->tipo == 'M'): ?> selected <?php endif; ?> >Página de modulo</option>
							</select>
							<span class="text-danger" id="errslTipo"> <?php echo $errors->first('slTipo'); ?> </span>
						</div>
					</div>
					<div class="form-group">
                        <label class="col-sm-3 control-label"> Estado </label>
                        <div class="col-sm-9">
							<select class="form-control" name="slEstadoPg">
								<option value="1" <?php if($Plantilla->activa == 1 ): ?> selected <?php endif; ?>> Activa </option>
								<option value="0" <?php if($Plantilla->activa == 0 ): ?> selected <?php endif; ?> >Inactiva</option>
							</select>
                        </div>
					</div>
					<div class="form-group">
                        <label class="col-sm-3 control-label"> Descripción </label>
                        <div class="col-sm-9">
							<textarea  id=""  rows="4" name="descripcion" id="descripcion" class="form-control"><?php echo $Plantilla->descripcion; ?></textarea>
							<span class="text-danger" id="errdescripcion"> <?php echo $errors->first('descripcion'); ?> <?php if(Session::has('ace')): ?> <?php echo Session::get('ace'); ?> <?php endif; ?>  </span>
                        </div>
					</div>
					<!--div class="form-group">
						<label class="col-sm-3 control-label"> Slug de Página </label>
						<div class="col-sm-9">
							<input type="text" name="slug" class="form-control" value="<?php echo $Plantilla->slug; ?>">
							<span class="text-danger" id="errruta"> <?php echo $errors->first('slug'); ?> </span>
						</div>
					</div-->
					<div class="form-group">
						<label class="col-sm-3 control-label"> Ruta </label>
						<div class="col-sm-9">
							<input type="text" name="ruta" class="form-control" value="<?php echo $Plantilla->ruta; ?>">
							<span class="text-danger" id="errruta"> <?php echo $errors->first('ruta'); ?> </span>
						</div>
					</div>
					<div class="bottom">
						<?php echo Form::submit('Editar', array('class' => 'btn btn-warning', 'id' => 'btnAgregar')); ?>

						<?php echo HTML::linkRoute('SysWebGClientesPlantillasxTema', 'Cancelar', array($Temas->id), array('class' => 'btn btn-default')); ?>

					</div>
				<?php echo Form::close(); ?>

		</div>
		
	</div>
</div><!--/row end-->
<?php $__env->stopSection(); ?>

<?php $__env->startSection('JS'); ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('JSOr'); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('BaseSistemaWeb', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>