<div class="form-ajax-box">
{!! Form::open(array('url'=>'reuniones?return='.$return, 'class'=>'form-horizontal form-material validated','files' => true , 'parsley-validate'=>'','novalidate'=>' ','id'=> 'reunionesFormAjax')) !!}

	<div class="toolbar-nav">	
		<div class="row">	
			<div class="col-sm-6 ">	
				<button type="submit" class="btn btn-sm  " name="apply">{{ Lang::get('core.sb_apply') }} </button>
				<button type="submit" class="btn btn-sm  " name="save">  {{ Lang::get('core.sb_save') }} </button>
			</div>	
			<div class="col-md-6 text-right">
				<a href="javascript://ajax" onclick="ajaxViewClose('#{{ $pageModule }}')" class="tips btn btn-sm  " title="{{ __('core.btn_back') }}" ><i class="fa  fa-times"></i></a>				
			</div>
					
		</div>
	</div>	
		<div class="card">
			<div class="card-body">

	
	<div class="row"><div class="col-md-12">
						<fieldset><legend> Reuniones</legend>
				{!! Form::hidden('ReunionID', $row['ReunionID']) !!}					
									  <div class="form-group row  " >
										<label for="Fecha" class=" control-label col-md-4 text-left"> Fecha </label>
										<div class="col-md-6">
										  <input  type='text' name='Fecha' id='Fecha' value='{{ $row['Fecha'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Temas" class=" control-label col-md-4 text-left"> Temas </label>
										<div class="col-md-6">
										  <textarea name='Temas' rows='5' id='Temas' class='form-control form-control-sm '  
				           >{{ $row['Temas'] }}</textarea> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Acuerdos" class=" control-label col-md-4 text-left"> Acuerdos </label>
										<div class="col-md-6">
										  <textarea name='Acuerdos' rows='5' id='Acuerdos' class='form-control form-control-sm '  
				           >{{ $row['Acuerdos'] }}</textarea> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Comentarios" class=" control-label col-md-4 text-left"> Comentarios </label>
										<div class="col-md-6">
										  <textarea name='Comentarios' rows='5' id='Comentarios' class='form-control form-control-sm '  
				           >{{ $row['Comentarios'] }}</textarea> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Documentos" class=" control-label col-md-4 text-left"> Documentos </label>
										<div class="col-md-6">
										  <textarea name='Documentos' rows='5' id='Documentos' class='form-control form-control-sm '  
				           >{{ $row['Documentos'] }}</textarea> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Condominio" class=" control-label col-md-4 text-left"> Condominio </label>
										<div class="col-md-6">
										  <input  type='text' name='Condominio' id='Condominio' value='{{ $row['Condominio'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Descripcion" class=" control-label col-md-4 text-left"> Descripcion </label>
										<div class="col-md-6">
										  <textarea name='Descripcion' rows='5' id='Descripcion' class='form-control form-control-sm '  
				           >{{ $row['Descripcion'] }}</textarea> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> </fieldset></div></div>									
						
	<input type="hidden" name="action_task" value="save" />

	</div>
	

</div>		
{!! Form::close() !!}
</div>

<style type="text/css">
	.modal-body .form-ajax-box {
		margin: -15px;
	}
</style>
@include('sximo.module.template.ajax.formjavascript')
<script type="text/javascript">
$(document).ready(function() { 
	 
	
	 	
	 
	
	var form = $('#reunionesFormAjax'); 
	form.parsley();
	form.submit(function(){
		
		if(form.parsley().isValid()){			
			var options = { 
				dataType:      'json', 
				beforeSubmit :  function() {
				},
				success		:   function(data) {

					if(data.status == 'success')
					{
						ajaxViewClose('#{{ $pageModule }}');
						ajaxFilter('#{{ $pageModule }}','{{ $pageUrl }}/data');
						notyMessage(data.message);	
						$('#sximo-modal').modal('hide');	
					} else {
						notyMessageError(data.message);	
						return false;
					}	

				}  
			}  
			$(this).ajaxSubmit(options); 
			return false;
						
		} else {
			return false;
		}		
	
	});

});

</script>		 