@extends('layouts.app')

@section('content')
<div class="page-header" style="background-color: #6382a6;;">
  <div class="modulo"><img class="imagenmodulo1" src="{{ URL::asset('dashboardimage/document.png') }}">
  <img class="imagenmodulo2" src="{{ URL::asset('dashboardimage/linea.png') }}">&nbsp   CONTROL DE DOCUMENTOS </div>
</div>

	{!! Form::open(array('url'=>'controldocumentos?return='.$return, 'class'=>'form-horizontal form-material validated sximo-form','files' => true ,'id'=> 'FormTable' )) !!}
	<div class="toolbar-nav">
		<div class="row">
			
			<div class="col-md-6 " >
				
				<button type="submit" class="btn btn-sm  " name="save" style="border-color:#7fb3e3;">GUARDAR</button>
					<a href="{{ url($pageModule.'?return='.$return) }}" class="tips btn btn-sm " style="border-color:#ff7a7a;" >SALIR</a>	
				
			</div>
			<div class="col-md-6 text-right " >
				<!--<a href="{{ url($pageModule.'?return='.$return) }}" class="tips btn btn-secondary  btn-sm "  title="{{ __('core.btn_back') }}" ><i class="fa  fa-times"></i></a>-->
			</div>
		</div>
	</div>	

<div class="card"style="margin-bottom:320px;">
			<div class="card-body" style="overflow-y: scroll;">
	
		
	<div class="row"><div class="col-md-12">
						<fieldset style="border-color:#7fb3e3;"><legend> Información General</legend>
				{!! Form::hidden('DocID', $row['DocID']) !!}					
									  <div class="form-group row  " >
										<label for="Nombre" class=" control-label col-md-4 text-left" style="font-weight:600;"> Nombre :</label>
										<div class="col-md-6">
										  <input  type='text' name='Nombre' id='Nombre' value='{{ $row['Nombre'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Condominio" class=" control-label col-md-4 text-left" style="font-weight:600;" > Condominio :</label>
										<div class="col-md-6">
										  <select name='Condominio' rows='5' id='Condominio' class='select2 '   ></select> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Descripcion" class=" control-label col-md-4 text-left" style="font-weight:600;"> Descripción :</label>
										<div class="col-md-6">
										  <input  type='text' name='Descripcion' id='Descripcion' value='{{ $row['Descripcion'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  "style="margin-bottom:-25px;" >
										<label for="Revision" class=" control-label col-md-4 text-left" style="font-weight:600;"> Revisión :</label>
										<div class="col-md-6">
										  <input  type='text' name='Revision' id='Revision' value='{{ $row['Revision'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> </fieldset></div></div>
	
		</div>
		
		<input type="hidden" name="action_task" value="save" />
		
		
		</div>
	</div>		


	{!! Form::close() !!}
	@include('sximo.module.template.ajax.formjavascript')
   <script type="text/javascript">
	$(document).ready(function() { 
		
		
		
		$("#Condominio").jCombo("{!! url('controldocumentos/comboselect?filter=condominios:Nombre:Nombre') !!}",
		{  initial_text: "-- Seleccionar --",selected_value : '{{ $row["Condominio"] }}' });
		 	
		 	 

		$('.removeMultiFiles').on('click',function(){
			var file =  $(this).attr('url') ;
			var removeUrl = '{{ url( $pageModule."/removefiles?file=")}}'+ file;
			$(this).parent().remove();
			$.get(removeUrl,function(response){});
			$(this).parent('div').empty();	
			return false;
		});
	});
	</script>
<style>

select {
  // A reset of styles, including removing the default dropdown arrow
  appearance: none;
  background-color: transparent;
  height: 40px; 
  padding: 0 1em 0 0;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
   border-radius: 8px;
  margin-top:7px;
  border-color: #cccccc;
  padding:5px;
}

 .btn:focus,.btn:active {
   outline: none !important;
   box-shadow: none;
}  

</style>	
	
@stop