Commit 8b64b894 authored by Gabriel-31415's avatar Gabriel-31415
Browse files

ajuste

parent 643fc42a
@php @php
$class = $class ?? " "; $class = $class ?? " ";
$obrigatorio = $obrigatorio ?? " ";
@endphp @endphp
<div class="form-group"> <div class="form-group">
<label class=" control-label {{ $class }}" for="firstname">{{ $label }}<span style="color: red; font-weight:bold">*</span></label> <label class=" control-label {{ $class }}" for="firstname">{{ $label }} @if($obrigatorio) <span style="color: red; font-weight:bold">*</span> @endif</label>
<div class=""> <div class="">
{{ $slot }} {{ $slot }}
</div> </div>
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
<div class="form-group col-md-6"> <div class="form-group col-md-6">
<label for="botao" class="col-form-label @error('botao') is-invalid @enderror" data-toggle="tooltip" data-placement="bottom" title="Se possuir, coloque todas em único arquivo pdf." style="margin-right: 15px;">{{ __('Possui autorizações especiais?') }} <span style="color: red; font-weight:bold">*</span></label> <label for="botao" class="col-form-label @error('botao') is-invalid @enderror" data-toggle="tooltip" data-placement="bottom" title="Se possuir, coloque todas em único arquivo pdf." style="margin-right: 15px;">{{ __('Possui autorizações especiais?') }} <span style="color: red; font-weight:bold">*</span></label>
<input type="radio" id="radioSim" onchange="displayAutorizacoesEspeciais('sim')"> <input type="radio" checked id="radioSim" onchange="displayAutorizacoesEspeciais('sim')">
<label for="radioSim" style="margin-right: 5px">Sim</label> <label for="radioSim" style="margin-right: 5px">Sim</label>
<input type="radio" id="radioNao" onchange="displayAutorizacoesEspeciais('nao')"> <input type="radio" id="radioNao" onchange="displayAutorizacoesEspeciais('nao')">
<label for="radioNao" style="margin-right: 5px">Não</label><br> <label for="radioNao" style="margin-right: 5px">Não</label><br>
...@@ -41,55 +41,16 @@ ...@@ -41,55 +41,16 @@
<strong>Selecione a autorização e envie o arquivo!</strong> <strong>Selecione a autorização e envie o arquivo!</strong>
</span> </span>
<div class="form-group" id="displaySim" style="display: none; margin-top:-1rem"> <div class="form-group" id="displaySim" style="display: block; margin-top:-1rem">
<label for="botao" class="col-form-label @error('botao') is-invalid @enderror" data-toggle="tooltip" data-placement="bottom" title="Se possuir, coloque todas em único arquivo pdf.">{{ __('Sim, declaro que necessito de autorizações especiais') }}</label> @component('componentes.input', ['label' => 'Sim, declaro que necessito de autorizações especiais(.pdf)'])
@error('botao') <input type="file" class="input-group-text" name="anexoComiteEtica" placeholder="anexoComiteEtica" accept=".pdf" required/>
<span id="botao" class="invalid-feedback" role="alert" style="overflow: visible; display:inline"> @endcomponent
<strong>{{ $message }}</strong>
</span>
@enderror
<br/>
@if(old('anexoComitePreenchido') != null || (isset($rascunho) && $rascunho->anexoAutorizacaoComiteEtica != "" && $rascunho->anexoAutorizacaoComiteEtica != null))
<a id="anexoComiteTemp" href="{{ route('baixar.anexo.temp', ['eventoId' => $edital->id,
'nomeAnexo' => 'anexoAutorizacaoComiteEtica' ])}}">Arquivo atual</a>
@endif
<input type="hidden" id="anexoComitePreenchido" name="anexoComitePreenchido"
@if( isset($rascunho) && $rascunho->anexoAutorizacaoComiteEtica != "") value="sim" @else value="{{old('anexoComitePreenchido')}}" @endif >
<div class="input-group">
<div class="custom-file">
<input type="file" class="custom-file-input @error('anexoComiteEtica') is-invalid @enderror" accept=".pdf" id="inputEtica" aria-describedby="inputGroupFileAddon01" name="anexoComiteEtica" onchange="verificarArquivoAnexado_pdf(this, 'anexoComiteEticaLegenda')">
<label class="custom-file-label" id="anexoComiteEticaLegenda" for="inputEtica">O arquivo deve ser no formato PDF de até 2MB.</label>
</div>
</div>
@error('anexoComiteEtica')
<span id="comiteErro" class="invalid-feedback" role="alert" style="overflow: visible; display:none">
<strong>{{ $message }}</strong>
</span>
@enderror
</div> </div>
<div class="form-group" id="displayNao" style="display: none; margin-top:-1rem"> <div class="form-group" id="displayNao" style="display: none; margin-top:-1rem">
<label for="nomeTrabalho" class="col-form-label">{{ __('Declaração de que não necessito de autorização especiais') }}</label> @component('componentes.input', ['label' => 'Declaração de que não necessito de autorização especiais(.pdf)'])
@if(old('anexoJustificativaPreenchido') != null || (isset($rascunho) && $rascunho->justificativaAutorizacaoEtica != "" && $rascunho->justificativaAutorizacaoEtica != null)) <input type="file" class="input-group-text" name="inputJustificativa" placeholder="inputJustificativa" accept=".pdf" required/>
<a id="anexoJustificativaTemp" href="{{ route('baixar.anexo.temp', ['eventoId' => $edital->id, @endcomponent
'nomeAnexo' => 'justificativaAutorizacaoEtica' ])}}">Arquivo atual</a>
@endif
<input type="hidden" id="anexoJustificativaPreenchido" name="anexoJustificativaPreenchido"
@if( isset($rascunho) && $rascunho->justificativaAutorizacaoEtica != "") value="sim" @else value="{{old('anexoJustificativaPreenchido')}}" @endif >
<div class="input-group">
<div class="custom-file">
<input type="file" class="custom-file-input @error('justificativaAutorizacaoEtica') is-invalid @enderror" accept=".pdf" id="inputJustificativa" aria-describedby="inputGroupFileAddon01" name="justificativaAutorizacaoEtica" onchange="verificarArquivoAnexado_pdf(this, 'justificativaAutorizacaoEticaLegenda')" required>
<label class="custom-file-label" id="justificativaAutorizacaoEticaLegenda" for="inputJustificativa">O arquivo deve ser no formato PDF de até 2MB.</label>
</div>
</div>
@error('justificativaAutorizacaoEtica')
<span id="justificativaErro" class="invalid-feedback" role="alert" style="overflow: visible; display:none">
<strong>{{ $message }}</strong>
</span>
@enderror
</div> </div>
</div> </div>
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
@enderror @enderror
</div> </div>
<div class="form-group col-md-4"> <div class="form-group col-md-4">
<label for="subArea" class="col-form-label">{{ __('Subárea') }} <span style="color: red; font-weight:bold">*</span></label> <label for="subArea" class="col-form-label">{{ __('Subárea') }} </label>
<input type="hidden" id="oldSubArea" value="{{ old('subArea') }}" > <input type="hidden" id="oldSubArea" value="{{ old('subArea') }}" >
<select class="form-control @error('subArea') is-invalid @enderror" id="subArea" name="subArea" > <select class="form-control @error('subArea') is-invalid @enderror" id="subArea" name="subArea" >
<option value="" disabled selected hidden>-- Subárea --</option> <option value="" disabled selected hidden>-- Subárea --</option>
......
...@@ -109,8 +109,13 @@ ...@@ -109,8 +109,13 @@
} }
function removerPart(e){ function removerPart(e){
if(e.parentElement){ if(e.parentElement){
if(parts.children.length <= 1){
}else{
parts.removeChild(e.parentElement); parts.removeChild(e.parentElement);
} }
}
} }
buttonMais.addEventListener("click", (e) => { buttonMais.addEventListener("click", (e) => {
......
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