Commit 5260e845 authored by Danillo Bion's avatar Danillo Bion
Browse files

modificacoes no campo

parent 3cf570cf
...@@ -126,12 +126,12 @@ ...@@ -126,12 +126,12 @@
@enderror @enderror
</div> </div>
<div class="form-group col-md-4"> <div class="form-group col-md-4">
<label for="anexoGrupoPesquisa">Link do grupo de pesquisa</label> <label for="linkGrupo">Link do grupo de pesquisa</label>
<input class="form-control @error('anexoGrupoPesquisa') is-invalid @enderror" type="text" name="anexoGrupoPesquisa" <input class="form-control @error('linkGrupo') is-invalid @enderror" type="text" name="linkGrupo"
value="{{old('anexoGrupoPesquisa') !== null ? old('anexoGrupoPesquisa') : (isset($rascunho) ? $rascunho->anexoGrupoPesquisa : '')}}"> value="{{old('linkGrupo') !== null ? old('linkGrupo') : (isset($rascunho) ? $rascunho->linkGrupoPesquisa : '')}}">
<small>Ex.: http://dgp.cnpq.br/dgp/espelhogrupo/228363</small> <small>Ex.: http://dgp.cnpq.br/dgp/espelhogrupo/228363</small>
@error('anexoGrupoPesquisa') @error('linkGrupo')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> <span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong> <strong>{{ $message }}</strong>
</span> </span>
...@@ -248,21 +248,21 @@ ...@@ -248,21 +248,21 @@
@enderror @enderror
</div> </div>
<div class="form-group col-md-6"> <div class="form-group col-md-6">
<label for="anexoCONSU" class="col-form-label">{{ __('Pdf do grupo de pesquisa') }} <span style="color: red; font-weight:bold">*</span></label> <label for="anexoGrupoPesquisa" class="col-form-label">{{ __('Pdf do grupo de pesquisa') }} <span style="color: red; font-weight:bold">*</span></label>
@if(old('anexoConsuPreenchido') != null || (isset($rascunho) && $rascunho->anexoDecisaoCONSU != "" && $rascunho->anexoDecisaoCONSU != null)) @if(old('anexoGrupoPesquisa') != null || (isset($rascunho) && $rascunho->anexoDecisaoCONSU != "" && $rascunho->anexoDecisaoCONSU != null))
<a id="anexoConsuTemp" href="{{ route('baixar.anexo.temp', ['eventoId' => $edital->id, <a id="anexoConsuTemp" href="{{ route('baixar.anexo.temp', ['eventoId' => $edital->id,
'nomeAnexo' => 'anexoDecisaoCONSU' ])}}">Arquivo atual</a> 'nomeAnexo' => 'anexoDecisaoCONSU' ])}}">Arquivo atual</a>
@endif @endif
<input type="hidden" id="anexoConsuPreenchido" name="anexoConsuPreenchido" <input type="hidden" id="anexoGrupoPesquisa" name="anexoGrupoPesquisa"
@if( isset($rascunho) && $rascunho->anexoDecisaoCONSU != "") value="sim" @else value="{{old('anexoConsuPreenchido')}}" @endif required> @if( isset($rascunho) && $rascunho->anexoDecisaoCONSU != "") value="sim" @else value="{{old('anexoGrupoPesquisa')}}" @endif required>
<div class="input-group"> <div class="input-group">
<div class="custom-file"> <div class="custom-file">
<input type="file" class="custom-file-input @error('anexoCONSU') is-invalid @enderror" id="anexoCONSU" aria-describedby="inputGroupFileAddon01" name="anexoCONSU" onchange="verificarArquivoAnexado_pdf(this)" required> <input type="file" class="custom-file-input @error('anexoGrupoPesquisa') is-invalid @enderror" id="anexoGrupoPesquisa" aria-describedby="inputGroupFileAddon01" name="anexoGrupoPesquisa" onchange="verificarArquivoAnexado_pdf(this)" required>
<label class="custom-file-label" id="custom-file-label" for="anexoCONSU">O arquivo deve ser no formato PDF de até 2MB.</label> <label class="custom-file-label" id="custom-file-label" for="anexoGrupoPesquisa">O arquivo deve ser no formato PDF de até 2MB.</label>
</div> </div>
</div> </div>
@error('anexoCONSU') @error('anexoGrupoPesquisa')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"> <span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong> <strong>{{ $message }}</strong>
</span> </span>
......
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