Commit 68336674 authored by alinetenorio's avatar alinetenorio
Browse files

consertando erro ao não adicionar plano de trabalho

parent 971e04b7
......@@ -121,7 +121,7 @@ class TrabalhoController extends Controller
'justificativaAutorizacaoEtica' => [($request->anexoJustificativaPreenchido!=='sim'&&$request->anexoComitePreenchido!=='sim'?'required_without:anexoComiteEtica':''), 'file', 'mimes:pdf', 'max:2000000'],
'anexoLattesCoordenador' => [($request->anexoLattesPreenchido!=='sim'?'required':''), 'file', 'mimes:pdf', 'max:2000000'],
'anexoPlanilha' => [($request->anexoPlanilhaPreenchido!=='sim'?'required':''), 'file', 'mimes:pdf', 'max:2000000'],
'anexoPlanoTrabalho.*' => ['required', 'file', 'mimes:pdf', 'max:2000000'],
'anexoPlanoTrabalho.*' => ['nullable', 'file', 'mimes:pdf', 'max:2000000'],
]);
//dd($request->all());
......
......@@ -27,7 +27,7 @@ class ProponenteSeeder extends Seeder
'areaFormacao' => '123123123',
'bolsistaProdutividade' => '123123123',
'nivel' => '123123123',
'linkLattes' => '123123123',
'linkLattes' => 'http://lattes.cnpq.br/8363536830656923',
'created_at' => '2020-01-01 00:00:00'
]);
......@@ -46,7 +46,7 @@ class ProponenteSeeder extends Seeder
'areaFormacao' => '123123123',
'bolsistaProdutividade' => '123123123',
'nivel' => '123123123',
'linkLattes' => '123123123',
'linkLattes' => 'http://lattes.cnpq.br/8363536830656923',
'created_at' => '2020-01-01 00:00:00'
]);
......
......@@ -330,7 +330,7 @@
</div>
<h6 class="mb-1">Possui plano de trabalho?</h6>
<button class="btn btn-primary mt-2 mb-2 simPlano">Sim</button>
<button class="btn btn-primary mt-2 mb-2 naoPlano">Não</button>
<button class="btn btn-primary mt-2 mb-2 naoPlano">Não</button>
<div id="planoHabilitado" >
<h5>Dados do plano de trabalho</h5>
<div class="row">
......@@ -491,7 +491,7 @@
$(document).on('click', '.naoPlano', function(e) {
e.preventDefault();
var plano = $(this).next()[0];
plano.style.display = 'none';
plano.style.display = 'none';
console.log('button nao');
});
......@@ -587,7 +587,7 @@
"<div class="+"row"+">"+
"<div class="+"col-sm-4"+">"+
"<label>Titulo*</label>"+
"<input"+" type="+'text'+" style="+"margin-bottom:10px"+" class="+"form-control @error('nomePlanoTrabalho') is-invalid @enderror"+" name="+'nomePlanoTrabalho[]'+" placeholder="+"Nome"+" required>"+
"<input"+" type="+'text'+" style="+"margin-bottom:10px"+" class="+"form-control @error('nomePlanoTrabalho') is-invalid @enderror"+" name="+'nomePlanoTrabalho[]'+" placeholder="+"Nome"+">"+
"@error('nomePlanoTrabalho')" +
"<span class='invalid-feedback'" + "role='alert'" + "style='overflow: visible; display:block'>" +
"<strong>{{ $message }}</strong>" +
......
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