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 ...@@ -121,7 +121,7 @@ class TrabalhoController extends Controller
'justificativaAutorizacaoEtica' => [($request->anexoJustificativaPreenchido!=='sim'&&$request->anexoComitePreenchido!=='sim'?'required_without:anexoComiteEtica':''), 'file', 'mimes:pdf', 'max:2000000'], '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'], 'anexoLattesCoordenador' => [($request->anexoLattesPreenchido!=='sim'?'required':''), 'file', 'mimes:pdf', 'max:2000000'],
'anexoPlanilha' => [($request->anexoPlanilhaPreenchido!=='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()); //dd($request->all());
......
...@@ -27,7 +27,7 @@ class ProponenteSeeder extends Seeder ...@@ -27,7 +27,7 @@ class ProponenteSeeder extends Seeder
'areaFormacao' => '123123123', 'areaFormacao' => '123123123',
'bolsistaProdutividade' => '123123123', 'bolsistaProdutividade' => '123123123',
'nivel' => '123123123', 'nivel' => '123123123',
'linkLattes' => '123123123', 'linkLattes' => 'http://lattes.cnpq.br/8363536830656923',
'created_at' => '2020-01-01 00:00:00' 'created_at' => '2020-01-01 00:00:00'
]); ]);
...@@ -46,7 +46,7 @@ class ProponenteSeeder extends Seeder ...@@ -46,7 +46,7 @@ class ProponenteSeeder extends Seeder
'areaFormacao' => '123123123', 'areaFormacao' => '123123123',
'bolsistaProdutividade' => '123123123', 'bolsistaProdutividade' => '123123123',
'nivel' => '123123123', 'nivel' => '123123123',
'linkLattes' => '123123123', 'linkLattes' => 'http://lattes.cnpq.br/8363536830656923',
'created_at' => '2020-01-01 00:00:00' 'created_at' => '2020-01-01 00:00:00'
]); ]);
......
...@@ -330,7 +330,7 @@ ...@@ -330,7 +330,7 @@
</div> </div>
<h6 class="mb-1">Possui plano de trabalho?</h6> <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 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" > <div id="planoHabilitado" >
<h5>Dados do plano de trabalho</h5> <h5>Dados do plano de trabalho</h5>
<div class="row"> <div class="row">
...@@ -491,7 +491,7 @@ ...@@ -491,7 +491,7 @@
$(document).on('click', '.naoPlano', function(e) { $(document).on('click', '.naoPlano', function(e) {
e.preventDefault(); e.preventDefault();
var plano = $(this).next()[0]; var plano = $(this).next()[0];
plano.style.display = 'none'; plano.style.display = 'none';
console.log('button nao'); console.log('button nao');
}); });
...@@ -587,7 +587,7 @@ ...@@ -587,7 +587,7 @@
"<div class="+"row"+">"+ "<div class="+"row"+">"+
"<div class="+"col-sm-4"+">"+ "<div class="+"col-sm-4"+">"+
"<label>Titulo*</label>"+ "<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')" + "@error('nomePlanoTrabalho')" +
"<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>" +
......
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