<?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 ventana <strong><?php echo $Ventana->nombre; ?> del tema del sitio web <strong><?php echo $TemaSW->nombre; ?></strong> </div>
			<div class="porlets-content">
				<?php echo Form::open(array('route' =>  array('SysWebSWebPlantillasxTemaVentanasEditarConf', $TemaSW->id, $Ventana->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" value="<?php echo $Ventana->nombre; ?>" class="form-control">
							<span class="text-danger" id="errtipo"> <?php echo $errors->first('tipo'); ?> </span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label"> Tipo </label>
						<div class="col-sm-9">
							<select name="tipo" class="form-control">
								<option value="H" <?php if($Ventana->tipo == 'H'): ?> selected <?php endif; ?>> Horizontal </option>
								<option value="V" <?php if($Ventana->tipo == 'V'): ?> selected <?php endif; ?>> Vertical </option>
							</select>
							<span class="text-danger" id="errtipo"> <?php echo $errors->first('tipo'); ?> </span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label"> Módulo </label>
						<div class="col-sm-9">
							<select name="modulo" class="form-control">
								<option value="PC" <?php if($Ventana->modulo == 'PC'): ?> selected <?php endif; ?> > Páginas de aterrizaje </option>
								<option value="SW" <?php if($Ventana->modulo == 'SW'): ?> selected <?php endif; ?> > Sitios Web </option>
								<option value="TEL" <?php if($Ventana->modulo == 'TEL'): ?> selected <?php endif; ?> > Tienda en línea </option>
							</select>
							<span class="text-danger" id="errmodulo"> <?php echo $errors->first('modulo'); ?> </span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label"> Identificador </label>
						<div class="col-sm-9">
							<select name="identificador" class="form-control">
								<option value="AR" <?php if($Ventana->identificador == 'AR'): ?> selected <?php endif; ?> > Acceso y registro </option>
								<option value="PE" <?php if($Ventana->identificador == 'PE'): ?> selected <?php endif; ?> > Proveedor de envío </option>
								<option value="BDP" <?php if($Ventana->identificador == 'BDP'): ?> selected <?php endif; ?> > Pago directo </option>
								<option value="DE" <?php if($Ventana->identificador == 'DE'): ?> selected <?php endif; ?> > Direcciones de envío </option>
								<option value="CUS" <?php if($Ventana->identificador == 'CUS'): ?> selected <?php endif; ?> > Upsells </option>
							</select>
							<span class="text-danger" id="erridentificador"> <?php echo $errors->first('identificador'); ?> </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('codigo_html', array('class' => '', 'id' => 'codigo_html')); ?>

							<span class="text-warning" style="display: none;" id="imgcodigo_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="errcodigo_html"> <?php echo $errors->first('codigo_html'); ?> </span>
						</div>
					</div>
					<?php /* <div class="form-group">
						<label class="col-sm-3 control-label"> Imagen de la plantilla </label>
						<div class="col-sm-9">
							<img src="<?php echo asset('SysWeb/PaginasAterrizaje/VentanasEmergentes/'.$Ventana->imagen); ?>" 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"> Ruta </label>
						<div class="col-sm-9">
							<input type="text" name="ruta" class="form-control" value="<?php echo $Ventana->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('SysWebPAterrizajeVentanaEmergente', 'Cancelar', array(), 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(); ?>