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

Merge pull request #88 from Gabriel-31415/master

Ajuste de email
parents 625e77a5 c73baf28
...@@ -38,11 +38,7 @@ use App\OutrasInfoParticipante; ...@@ -38,11 +38,7 @@ use App\OutrasInfoParticipante;
class TrabalhoController extends Controller class TrabalhoController extends Controller
{ {
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index($id) public function index($id)
{ {
$edital = Evento::find($id); $edital = Evento::find($id);
...@@ -67,23 +63,7 @@ class TrabalhoController extends Controller ...@@ -67,23 +63,7 @@ class TrabalhoController extends Controller
'enum_turno' => Participante::ENUM_TURNO 'enum_turno' => Participante::ENUM_TURNO
]); ]);
} }
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request){ public function store(Request $request){
$mytime = Carbon::now('America/Recife'); $mytime = Carbon::now('America/Recife');
...@@ -496,12 +476,7 @@ class TrabalhoController extends Controller ...@@ -496,12 +476,7 @@ class TrabalhoController extends Controller
return $trabalho; return $trabalho;
} }
/**
* Display the specified resource.
*
* @param \App\Trabalho $trabalho
* @return \Illuminate\Http\Response
*/
public function show($id) public function show($id)
{ {
// //
...@@ -528,12 +503,6 @@ class TrabalhoController extends Controller ...@@ -528,12 +503,6 @@ class TrabalhoController extends Controller
]); ]);
} }
/**
* Show the form for editing the specified resource.
*
* @param \App\Trabalho $trabalho
* @return \Illuminate\Http\Response
*/
public function edit($id) public function edit($id)
{ {
$projeto = Trabalho::find($id); $projeto = Trabalho::find($id);
...@@ -560,13 +529,6 @@ class TrabalhoController extends Controller ...@@ -560,13 +529,6 @@ class TrabalhoController extends Controller
]); ]);
} }
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param \App\Trabalho $trabalho
* @return \Illuminate\Http\Response
*/
public function update(Request $request, $id) public function update(Request $request, $id)
{ {
$mytime = Carbon::now('America/Recife'); $mytime = Carbon::now('America/Recife');
...@@ -796,12 +758,6 @@ class TrabalhoController extends Controller ...@@ -796,12 +758,6 @@ class TrabalhoController extends Controller
return redirect()->route('evento.visualizar',['id'=>$request->editalId]); return redirect()->route('evento.visualizar',['id'=>$request->editalId]);
} }
/**
* Remove the specified resource from storage.
*
* @param \App\Trabalho $trabalho
* @return \Illuminate\Http\Response
*/
public function destroy(Request $request) public function destroy(Request $request)
{ {
$projeto = Trabalho::find($request->id); $projeto = Trabalho::find($request->id);
...@@ -1050,7 +1006,7 @@ class TrabalhoController extends Controller ...@@ -1050,7 +1006,7 @@ class TrabalhoController extends Controller
public function salvar(Request $request) { public function salvar(Request $request) {
$edital = Evento::find($request->editalId); $edital = Evento::find($request->editalId);
$hoje = now(); $hoje = now();
// dd($request->all());
if (!($edital->inicioSubmissao < $hoje && $edital->fimSubmissao >= $hoje)) { if (!($edital->inicioSubmissao < $hoje && $edital->fimSubmissao >= $hoje)) {
return redirect()->route('inicial')->with(['error'=> 0, 'mensagem' => 'As submissões para o edital '. $edital->titulo .' foram encerradas.']); return redirect()->route('inicial')->with(['error'=> 0, 'mensagem' => 'As submissões para o edital '. $edital->titulo .' foram encerradas.']);
} }
...@@ -1089,7 +1045,7 @@ class TrabalhoController extends Controller ...@@ -1089,7 +1045,7 @@ class TrabalhoController extends Controller
$projeto->linkLattesEstudante = $request->linkLattesEstudante; $projeto->linkLattesEstudante = $request->linkLattesEstudante;
$projeto->data = $hoje; $projeto->data = $hoje;
$projeto->evento_id = $request->editalId; $projeto->evento_id = $request->editalId;
$projeto->status = 'Submetido'; $projeto->status = 'submetido';
$projeto->proponente_id = $proponente->id; $projeto->proponente_id = $proponente->id;
// Salvando anexos no storage // Salvando anexos no storage
......
...@@ -42,7 +42,7 @@ class recuperacaoSenha extends Notification ...@@ -42,7 +42,7 @@ class recuperacaoSenha extends Notification
{ {
return (new MailMessage) return (new MailMessage)
->subject('Recuperação de senha') ->subject('Recuperação de senha')
->greeting('Olá;!') ->greeting('Olá!')
->line('Você está recebendo este e-mail porque nós recebemos uma requisição de redefinição de senha para sua conta.') ->line('Você está recebendo este e-mail porque nós recebemos uma requisição de redefinição de senha para sua conta.')
->action('REDEFINIR SENHA', route('password.reset', $this->token)) ->action('REDEFINIR SENHA', route('password.reset', $this->token))
->line('Se não foi você que solicitou esta recuperação, apenas ignore este e-mail.') ->line('Se não foi você que solicitou esta recuperação, apenas ignore este e-mail.')
......
...@@ -9,11 +9,7 @@ class Trabalho extends Model ...@@ -9,11 +9,7 @@ class Trabalho extends Model
{ {
use SoftDeletes; use SoftDeletes;
/** // 'rascunho','submetido', 'avaliado', 'corrigido','aprovado','reprovado', 'arquivado'
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [ protected $fillable = [
'titulo', 'titulo',
'data', 'data',
......
...@@ -15,13 +15,13 @@ class CreateTrabalhosTable extends Migration ...@@ -15,13 +15,13 @@ class CreateTrabalhosTable extends Migration
{ {
Schema::create('trabalhos', function (Blueprint $table) { Schema::create('trabalhos', function (Blueprint $table) {
$table->bigIncrements('id'); $table->bigIncrements('id');
$table->string('titulo'); $table->string('titulo')->nullable();
$table->string('status')->nullable();
$table->string('aprovado')->nullable(); $table->string('aprovado')->nullable();
$table->string('linkGrupoPesquisa')->nullable(); $table->string('linkGrupoPesquisa')->nullable();
$table->string('linkLattesEstudante'); $table->string('linkLattesEstudante')->nullable();
$table->string('pontuacaoPlanilha'); $table->string('pontuacaoPlanilha')->nullable();
$table->date('data')->nullable(); $table->date('data')->nullable();
$table->enum('status',['rascunho','submetido', 'avaliado', 'corrigido','aprovado','reprovado', 'arquivado'])->default('rascunho')->nullable();
//Anexos //Anexos
$table->string('anexoProjeto')->nullable(); $table->string('anexoProjeto')->nullable();
$table->string('anexoDecisaoCONSU')->nullable(); $table->string('anexoDecisaoCONSU')->nullable();
...@@ -31,12 +31,12 @@ class CreateTrabalhosTable extends Migration ...@@ -31,12 +31,12 @@ class CreateTrabalhosTable extends Migration
$table->string('anexoAutorizacaoComiteEtica')->nullable(); $table->string('anexoAutorizacaoComiteEtica')->nullable();
$table->string('justificativaAutorizacaoEtica')->nullable(); $table->string('justificativaAutorizacaoEtica')->nullable();
//chaves estrangeiras //chaves estrangeiras
$table->unsignedBigInteger('grande_area_id'); $table->unsignedBigInteger('grande_area_id')->nullable();
$table->unsignedBigInteger('area_id'); $table->unsignedBigInteger('area_id')->nullable();
$table->unsignedBigInteger('sub_area_id')->nullable(); $table->unsignedBigInteger('sub_area_id')->nullable();
$table->unsignedBigInteger('evento_id'); $table->unsignedBigInteger('evento_id')->nullable();
$table->unsignedBigInteger('coordenador_id'); $table->unsignedBigInteger('coordenador_id')->nullable();
$table->unsignedBigInteger('proponente_id'); $table->unsignedBigInteger('proponente_id')->nullable();
$table->softDeletes(); $table->softDeletes();
$table->timestamps(); $table->timestamps();
......
...@@ -16,12 +16,12 @@ class CreateEnderecosTable extends Migration ...@@ -16,12 +16,12 @@ class CreateEnderecosTable extends Migration
Schema::create('enderecos', function (Blueprint $table) { Schema::create('enderecos', function (Blueprint $table) {
$table->bigIncrements('id'); $table->bigIncrements('id');
$table->timestamps(); $table->timestamps();
$table->string('rua'); $table->string('rua')->nullable();
$table->string('numero')->nullable(); $table->string('numero')->nullable();
$table->string('bairro'); $table->string('bairro')->nullable();
$table->string('cidade'); $table->string('cidade')->nullable();
$table->string('uf'); $table->string('uf')->nullable();
$table->string('cep'); $table->string('cep')->nullable();
$table->string('complemento')->nullable(true); $table->string('complemento')->nullable(true);
}); });
} }
......
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
</div> </div>
<div class="form-group col-md-6" style="margin-top: 10px"> <div class="form-group col-md-6" style="margin-top: 10px">
<label for="anexoLattesCoordenador" class="col-form-label">{{ __('Anexo do currículo Lattes do Coordenador') }} <span style="color: red; font-weight:bold">*</span></label> <label for="anexoLattesCoordenador" class="col-form-label">{{ __('Anexo do currículo Lattes do Proponente') }} <span style="color: red; font-weight:bold">*</span></label>
@if(old('anexoLattesPreenchido') != null || (isset($rascunho) && $rascunho->anexoLattesCoordenador != "")) @if(old('anexoLattesPreenchido') != null || (isset($rascunho) && $rascunho->anexoLattesCoordenador != ""))
<a id="anexoLattesTemp" href="{{ route('baixar.anexo.temp', ['eventoId' => $edital->id, <a id="anexoLattesTemp" href="{{ route('baixar.anexo.temp', ['eventoId' => $edital->id,
'nomeAnexo' => 'anexoLattesCoordenador' ])}}">Arquivo atual</a> 'nomeAnexo' => 'anexoLattesCoordenador' ])}}">Arquivo atual</a>
...@@ -1138,9 +1138,10 @@ ...@@ -1138,9 +1138,10 @@
</div> </div>
<div class=" d-flex justify-content-between align-items-center" style="margin-top: 15px; margin-bottom:18px"> <div class=" d-flex justify-content-between align-items-center" style="margin-top: 15px; margin-bottom:18px">
<h6 style="font-family:Arial, Helvetica, sans-serif; margin-right:15px"><span style="color: red; font-weight:bold">*</span> Campos obrigatórios</h6> <h6 style="font-family:Arial, Helvetica, sans-serif; margin-right:15px"><span style="color: red; font-weight:bold">*</span> Campos obrigatórios</h6>
<input id="rascunhoInput" type="hidden" name="rascunho" value="false">
<button type="button" class="btn btn-primary" id="formRascunho" >{{ __('Rascunho') }}</button>
<button type="submit" id="clickSubmitForm" style="display: none"></button> <button type="submit" id="clickSubmitForm" style="display: none"></button>
<button type="button" class="btn btn-success" id="idButtonSubmitProjeto" onclick="enviarModalenviarProjeto()" disabled>{{ __('Enviar Projeto') }}</button> <button type="button" class="btn btn-success" id="idButtonSubmitProjeto" onclick="enviarModalenviarProjeto()" disabled>{{ __('Enviar Proposta') }}</button>
</div> </div>
</div> </div>
</div> </div>
...@@ -1195,6 +1196,7 @@ ...@@ -1195,6 +1196,7 @@
</div> </div>
</div> </div>
</div> </div>
@endsection @endsection
@section('javascript') @section('javascript')
...@@ -1992,8 +1994,22 @@ function validarPart3(){ ...@@ -1992,8 +1994,22 @@ function validarPart3(){
} }
</script> </script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(()=>{
console.log('rascunho')
$("#formRascunho").click(function(){
$("input").removeAttr('required')
$("select").removeAttr('required')
$("textarea").removeAttr('required')
// $('#criarProjetoForm').append("<li>Appended item</li>");
$('#rascunhoInput').val('true');
$('#criarProjetoForm').submit();
});
});
// $("#button").click(function(e){ // $("#button").click(function(e){
// e.preventDefault(); // e.preventDefault();
......
...@@ -277,7 +277,7 @@ ...@@ -277,7 +277,7 @@
@if($evento->inicioSubmissao <= $mytime) @if($evento->inicioSubmissao <= $mytime)
@if($mytime < $evento->fimSubmissao) @if($mytime < $evento->fimSubmissao)
<div class="col-md-6 botao-form-right" style=""> <div class="col-md-6 botao-form-right" style="">
<a class="btn btn-primary botao-form" href="{{route('trabalho.index',['id'=>$evento->id])}}" style="width:100%">Submeter Projeto</a> <a class="btn btn-primary botao-form" href="{{route('trabalho.index',['id'=>$evento->id])}}" style="width:100%">Submeter Proposta</a>
</div> </div>
@endif @endif
@endif @endif
......
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
<a href="{{ route('register') }}" class="btn navbar-text btn-azul-destaque negrito" style="color: rgb(0, 140, 255);">{{ __('Cadastre-se') }}</a> <a href="{{ route('register') }}" class="btn navbar-text btn-azul-destaque negrito" style="color: rgb(0, 140, 255);">{{ __('Cadastre-se') }}</a>
@else @else
@if(Auth::user()->administradors != null) @if(Auth::user()->administradors != null)
<a href="{{route('admin.editais')}}" class="btn navbar-text negrito " style="color: rgb(0, 140, 255);">Home</a> <a href="{{route('admin.editais')}}" class="btn navbar-text negrito " style="color: rgb(0, 140, 255);">Editais</a>
@else @else
<a href="{{route('coord.home')}}" class="btn navbar-text negrito " style="color: rgb(0, 140, 255);">Editais</a> <a href="{{route('coord.home')}}" class="btn navbar-text negrito " style="color: rgb(0, 140, 255);">Editais</a>
@endif @endif
......
...@@ -44,7 +44,9 @@ ...@@ -44,7 +44,9 @@
{{ $salutation }} {{ $salutation }}
@else @else
@lang('Atenciosamente'),<br> @lang('Atenciosamente'),<br>
Equipe do {{ config('app.name') }} {{ config('app.name') }} - Eventos Acadêmicos
Laboratório Multidisciplinar de Tecnologias Sociais
Universidade Federal do Agreste de Pernambuco
@endif @endif
{{-- Subcopy --}} {{-- Subcopy --}}
......
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