Commit ee7f7180 authored by Guilherme Silva's avatar Guilherme Silva
Browse files

Ajuste em evento para utilização de cota de recem doutor

parent 6921e3de
......@@ -181,6 +181,7 @@ class EventoController extends Controller
$evento['criador_id'] = $user_id;
$evento['numParticipantes'] = $request->numParticipantes;
$evento['consu'] = $request->has('consu');
$evento['cotaDoutor'] = $request->has('cotaDoutor');
$evento['anexosStatus'] = 'final';
//dd($evento);
......@@ -441,6 +442,7 @@ class EventoController extends Controller
$evento->dt_fimRelatorioFinal = $request->dt_fimRelatorioFinal;
$evento->coordenadorId = $request->coordenador_id;
$evento->consu = $request->has('consu');
$evento->cotaDoutor = $request->has('cotaDoutor');
if($request->pdfEdital != null){
$pdfEdital = $request->pdfEdital;
$path = 'pdfEdital/' . $evento->id . '/';
......
......@@ -32,6 +32,7 @@
<option @if(old('tipo')=='PIBIC' ) selected @endif value="PIBIC">PIBIC</option>
<option @if(old('tipo')=='PIBIC-EM' ) selected @endif value="PIBIC-EM">PIBIC-EM</option>
<option @if(old('tipo')=='PIBITI' ) selected @endif value="PIBITI">PIBITI</option>
<option @if(old('tipo')=='PIBEX' ) selected @endif value="PIBEX">PIBEX</option>
</select>
@error('tipo')
......@@ -56,7 +57,7 @@
@enderror
</div>
<div class="col-sm-2">
<label for="numParticipantes" class="col-form-label">{{ __('Nº de Participantes*:') }}</label>
<label for="numParticipantes" class="col-form-label">{{ __('Nº de Bolsistas*:') }}</label>
<input id="numParticipantes" type="number" min="1" max="20" class="form-control @error('numParticipantes') is-invalid @enderror" name="numParticipantes" value="{{ old('numParticipantes') }}" required autocomplete="numParticipantes" autofocus>
......@@ -67,8 +68,7 @@
@enderror
</div>
<div class="col-sm-3">
<label for="consu" class="col-form-label">{{ __('Consu obrigatório?*') }}</label>
<br>
<label for="consu" class="col-form-label">{{ __('CONSEPE obrigatório?*') }}</label>
<input type="checkbox" name="consu" id="consu">
{{-- <input id="consu" type="checkbox" class="form-control @error('consu') is-invalid @enderror" name="consu" @if(old('consu')) checked @endif required autocomplete="consu" autofocus> --}}
......@@ -77,6 +77,16 @@
<strong>{{ $message }}</strong>
</span>
@enderror
<br>
<label for="cotaDoutor" class="col-form-label">{{ __('Cota para recém doutor?') }}</label>
<input type="checkbox" name="cotaDoutor" id="cotaDoutor">
@error('cotaDoutor')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>{{-- end nome | Participantes | Tipo--}}
......
......@@ -34,6 +34,7 @@
<option value="PIBIC" {{ $evento->tipo == "PIBIC" ? 'selected' :'' }}>PIBIC</option>
<option value="PIBIC-EM" {{ $evento->tipo == "PIBIC-EM" ? 'selected' :'' }}>PIBIC-EM</option>
<option value="PIBITI" {{ $evento->tipo == "PIBITI" ? 'selected' :'' }}>PIBITI</option>
<option value="PIBEX" {{ $evento->tipo == "PIBEX" ? 'selected' :'' }}>PIBEX</option>
</select>
@error('tipo')
<span class="invalid-feedback" role="alert">
......@@ -61,7 +62,7 @@
@enderror
</div>
<div class="col-sm-2">
<label for="numParticipantes" class="col-form-label">{{ __('Nº de Discentes*:') }}</label>
<label for="numParticipantes" class="col-form-label">{{ __('Nº de Bolsistas*:') }}</label>
<input id="numParticipantes" type="number" min="1" max="20" class="form-control @error('numParticipantes') is-invalid @enderror" name="numParticipantes" value="{{ $evento->numParticipantes }}" required autocomplete="numParticipantes" autofocus>
@error('numParticipantes')
......@@ -71,8 +72,7 @@
@enderror
</div>
<div class="col-sm-3">
<label for="consu" class="col-form-label">{{ __('Consu obrigatório?*') }}</label>
<br>
<label for="consu" class="col-form-label">{{ __('CONSEPE obrigatório?*') }}</label>
<input type="checkbox" @if($evento->consu) checked @endif name="consu" id="consu">
{{-- <input id="consu" type="checkbox" class="form-control @error('consu') is-invalid @enderror" name="consu" @if(old('consu')) checked @endif required autocomplete="consu" autofocus> --}}
......@@ -81,6 +81,17 @@
<strong>{{ $message }}</strong>
</span>
@enderror
<br>
<label for="cotaDoutor" class="col-form-label">{{ __('Cota para recém doutor?') }}</label>
<input type="checkbox" @if($evento->cotaDoutor) checked @endif name="cotaDoutor" id="cotaDoutor">
@error('cotaDoutor')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>{{-- end nome | Participantes | Tipo--}}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment