Unverified Commit 0b855c44 authored by Gabriel Antônio da Silva's avatar Gabriel Antônio da Silva Committed by GitHub
Browse files

Merge pull request #19 from lmts-ufape/anexos

Anexos
parents 7b97025b 89078619
......@@ -237,7 +237,7 @@
<div class="row justify-content-center" style="margin: 20px 0 20px 0">
<div class="col-md-6 botao-form-left" style="">
<a class="btn btn-secondary botao-form" href="/" style="width:100%">Voltar</a>
<a class="btn btn-secondary botao-form" href="{{ route('home') }}" style="width:100%">Voltar</a>
</div>
@if($evento->inicioSubmissao <= $mytime)
......
......@@ -273,13 +273,15 @@
<div class="col-sm-12">
<div id="participantes">
@foreach($participantes as $participante)
@foreach($users as $user)
@if($participante->user_id === $user->id)
<div id="novoParticipante">
<br>
<h5>Dados do participante</h5>
<div class="row">
<div class="col-sm-5">
<label>Nome Completo</label>
<input value="{{ $participante->user->name }}" type="text" style="margin-bottom:10px" class="form-control @error('nomeParticipante') is-invalid @enderror" name="nomeParticipante[]" placeholder="Nome" required>
<input value="{{ $user->name }}" type="text" style="margin-bottom:10px" class="form-control @error('nomeParticipante') is-invalid @enderror" name="nomeParticipante[]" placeholder="Nome" required>
@error('nomeParticipante')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
......@@ -288,7 +290,7 @@
</div>
<div class="col-sm-4">
<label>E-mail</label>
<input value="{{ $participante->user->email }}" type="email" style="margin-bottom:10px" class="form-control @error('emailParticipante') is-invalid @enderror" name="emailParticipante[]" placeholder="email" required>
<input value="{{ $user->email }}" type="email" style="margin-bottom:10px" class="form-control @error('emailParticipante') is-invalid @enderror" name="emailParticipante[]" placeholder="email" required>
@error('emailParticipante')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block">
<strong>{{ $message }}</strong>
......@@ -363,6 +365,8 @@
</div>
</div>
</div>
@endif
@endforeach
@endforeach
</div>
<a href="#" class="btn btn-primary" id="addCoautor" style="width:100%;margin-top:10px">Participantes +</a>
......@@ -419,7 +423,7 @@
addModalidade($(this).val());
});
$(document).on('click', '.delete', function() {
if (qtdParticipantes > 2) {
if (qtdParticipantes > 1) {
qtdParticipantes--;
$(this).closest('#novoParticipante').remove();
return false;
......
......@@ -35,9 +35,9 @@
<td>
{{ $projeto->titulo }}
</td>
@if($projeto->avaliado)
@if($projeto->status == 'Avaliado')
<td style="color: rgb(6, 85, 6)">Avaliado</td>
@else
@elseif($projeto->status == 'Submetido')
<td style="color: rgb(0, 0, 0)">Submetido</td>
@endif
<td>{{ date('d-m-Y', strtotime($projeto->updated_at)) }}</td>
......@@ -59,6 +59,12 @@
<a href="" class="dropdown-item" style="text-align: center">
Resultado
</a>
@if($projeto->status == 'Submetido')
<a href="{{ route('trabalho.destroy', ['id' => $projeto->id]) }}" class="dropdown-item" style="text-align: center">
Excluir projeto
</a>
@endif
</div>
</div>
</td>
......
......@@ -87,12 +87,13 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
Route::post( '/areaModalidade/criar', 'AreaModalidadeController@store' )->name('areaModalidade.store');
//######### Trabalho ########################################
Route::get( '/trabalho/submeter/{id}','TrabalhoController@index' )->name('trabalho.index');
Route::get( '/trabalho/submeter/{id}', 'TrabalhoController@index' )->name('trabalho.index');
Route::post( '/trabalho/novaVersao', 'TrabalhoController@novaVersao' )->name('trabalho.novaVersao');
Route::post( '/trabalho/criar', 'TrabalhoController@store' )->name('trabalho.store');
Route::get( '/edital/{id}/projetos', 'TrabalhoController@projetosDoEdital' )->name('projetos.edital');
Route::get( '/projeto/{id}/editar', 'TrabalhoController@edit' )->name('trabalho.editar');
Route::post( '/projeto/{id}/atualizar', 'TrabalhoController@update' )->name('trabalho.update');
Route::get( '/projeto/{id}/excluir', 'TrabalhoController@destroy' )->name('trabalho.destroy');
//######### Atribuição #######################################
Route::get( '/atribuir', 'AtribuicaoController@distribuicaoAutomatica' )->name('distribuicao');
......
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