<?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"> Agregar un Nuevo Tema </h3> </div>
			<div class="porlets-content">
				<?php echo Form::open(array('route' => 'SysWebSWebTemaGuardar', '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">
							<?php echo Form::text('nombre', '',  array('class' => 'form-control', 'placeholder' => '')); ?>

							<span class="text-danger" id="errnombre"> <?php echo $errors->first('nombre'); ?> </span>
						</div>
					</div>
					<div class="form-group">
                        <label class="col-sm-3 control-label"> Cabecera del tema </label>
                        <div class="col-sm-9">
                            <?php echo Form::file('header_html', array('class' => '', 'id' => 'header_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 el encabezado de tema
							</span>
							<span class="text-danger" id="errheader_html"> <?php echo $errors->first('header_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"> Barra lateral </label>
                        <div class="col-sm-9">
                              <?php echo Form::file('sidebar_html', array('class' => '', 'id' => 'sidebar_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 el barra lateral
                            </span>
                            <span class="text-danger" id="errsidebar_html"> <?php echo $errors->first('sidebar_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"> Pie del tema </label>
                        <div class="col-sm-9">
                            <?php echo Form::file('footer_html', array('class' => '', 'id' => 'footer_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 el pie del tema
                            </span>
                            <span class="text-danger" id="errfooter_html"> <?php echo $errors->first('footer_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"> Post del tema </label>
						<div class="col-sm-9">
							<?php echo Form::file('post_html', array('class' => '', 'id' => 'post_html')); ?>

							<span class="text-warning" style="display: none;" id="post_html" class="loading">
								<img src="<?php echo asset('Cargando/hourglass.gif'); ?>" style="width: 32px; height: 32px;"> Espere mientras se carga el post del tema
							</span>
							<span class="text-danger" id="errposthtml"> <?php echo $errors->first('post_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"> Cabecera genérica </label>
						<div class="col-sm-9">
							<?php echo Form::file('headerG_html', array('class' => '', 'id' => 'headerG_html')); ?>

							<span class="text-warning" style="display: none;" id="headerG_html" class="loading">
								<img src="<?php echo asset('Cargando/hourglass.gif'); ?>" style="width: 32px; height: 32px;"> Espere mientras se carga el encabezado genérico del tema
							</span>
							<span class="text-danger" id="errheaderG_html"> <?php echo $errors->first('headerG_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"> Cabecera genérica 2 </label>
						<div class="col-sm-9">
							<?php echo Form::file('headerGS_html', array('class' => '', 'id' => 'headerGS_html')); ?>

							<span class="text-warning" style="display: none;" id="headerGS_html" class="loading">
								<img src="<?php echo asset('Cargando/hourglass.gif'); ?>" style="width: 32px; height: 32px;"> Espere mientras se carga el encabezado genérico del tema
							</span>
							<span class="text-danger" id="errheaderGS_html"> <?php echo $errors->first('headerGS_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"> Cabecera genérica 3 </label>
						<div class="col-sm-9">
							<?php echo Form::file('headerGT_html', array('class' => '', 'id' => 'headerGT_html')); ?>

							<span class="text-warning" style="display: none;" id="headerGT_html" class="loading">
								<img src="<?php echo asset('Cargando/hourglass.gif'); ?>" style="width: 32px; height: 32px;"> Espere mientras se carga el encabezado genérico del tema
							</span>
							<span class="text-danger" id="errheaderGT_html"> <?php echo $errors->first('headerGT_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"> Pie de tema genérico </label>
						<div class="col-sm-9">
							<?php echo Form::file('footerG_html', array('class' => '', 'id' => 'footerG_html')); ?>

							<span class="text-warning" style="display: none;" id="footerG_html" class="loading">
								<img src="<?php echo asset('Cargando/hourglass.gif'); ?>" style="width: 32px; height: 32px;"> Espere mientras se carga el pie del tema genérico
							</span>
							<span class="text-danger" id="errfooterG_html"> <?php echo $errors->first('footerG_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">
							<?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 encabezado </label>
						<div class="col-sm-9">
							<select class="form-control" name="slTipoHead">
								<option value="HP">Encabezado principal para entrada</option>
								<option value="HS">Encabezado secundario para entrada</option>
							</select>
							<span class="text-danger" id="errslTipoHead"> <?php echo $errors->first('slTipoHead'); ?> </span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label"> Tipo de pie de pániga </label>
						<div class="col-sm-9">
							<select class="form-control" name="slTipoFoot">
								<option value="FP">Pie de página principal para entrada</option>
								<option value="FS">Pie de página secundario para entrada</option>
							</select>
							<span class="text-danger" id="errslTipoFoot"> <?php echo $errors->first('slTipoFoot'); ?> </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">
							<span class="text-danger" id="errruta"> <?php echo $errors->first('ruta'); ?> </span>
						</div>
					</div>
					<div class="bottom">
						<?php echo Form::submit('Guardar', array('class' => 'btn btn-primary', 'id' => 'btnAgregar')); ?>

						<?php echo HTML::linkRoute('SysWebSWebTemas', '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(); ?>