"app/git@sites.upe.br:walter.felipe/pad-upe.git" did not exist on "4b6417cdcee7679cb1b723f8b34a7fa7b5e7625d"
Unverified Commit 5fa21f6b authored by Edgar Vinicius Carvalho Vital's avatar Edgar Vinicius Carvalho Vital Committed by GitHub
Browse files

Merge pull request #848 from Edgarvital/master

Correção de 'outro curso' no registro do usuário
parents 923615bc 026f040e
......@@ -2,29 +2,41 @@
@section('content')
<div class="container" style="margin-top: 3rem">
<div class="container" style="margin-top: 3rem">
<form method="POST" action="{{ route('register') }}">
@csrf
<div class="row justify-content-center">
<div class="col-md-8" style="margin-bottom:20px">
<div class="card shadow bg-white" style="border-radius:12px; border-width:0px;">
<div class="card-header" style="border-top-left-radius: 12px; border-top-right-radius: 12px; background-color: #fff">
<div class="d-flex justify-content-between align-items-center" style="margin-top: 9px; margin-bottom:6px">
<h5 class="card-title mb-0" style="font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6">Cadastro</h5>
<div class="card-header"
style="border-top-left-radius: 12px; border-top-right-radius: 12px; background-color: #fff">
<div class="d-flex justify-content-between align-items-center"
style="margin-top: 9px; margin-bottom:6px">
<h5 class="card-title mb-0"
style="font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#1492E6">
Cadastro</h5>
<h6 class="card-title mb-0" style="color:red">* Campos obrigatórios</h6>
</div>
</div>
<div class="card-body">
<div class="form-row">
<div class="col-md-12">
<div class="d-flex justify-content-between align-items-center" style="margin-bottom:6px">
<h5 class="card-title mb-0" style="font-size:20px; font-family:Arial, Helvetica, sans-serif; font-family:Arial, Helvetica, sans-serif; ">Informações pessoais</h5>
<div class="d-flex justify-content-between align-items-center"
style="margin-bottom:6px">
<h5 class="card-title mb-0"
style="font-size:20px; font-family:Arial, Helvetica, sans-serif; font-family:Arial, Helvetica, sans-serif; ">
Informações pessoais</h5>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label for="name" class="col-form-label" style="font-weight:600;">{{ __('Nome Completo') }}<span style="color: red; font-weight:bold;">*</span></label>
<input id="name" type="text" class="form-control @error('name') is-invalid @enderror" name="name" placeholder="Digite seu nome completo" value="{{ old('name') }}" required autocomplete="name" autofocus>
<label for="name" class="col-form-label"
style="font-weight:600;">{{ __('Nome Completo') }}<span
style="color: red; font-weight:bold;">*</span></label>
<input id="name" type="text"
class="form-control @error('name') is-invalid @enderror" name="name"
placeholder="Digite seu nome completo" value="{{ old('name') }}" required
autocomplete="name" autofocus>
@error('name')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
......@@ -34,8 +46,12 @@
</div>
<div class="col-md-6">
<div class="form-group">
<label for="cpf" class="col-form-label" style="font-weight:600;">{{ __('CPF') }}<span style="color: red; font-weight:bold;">*</span></label>
<input id="cpf" type="text" class="form-control @error('cpf') is-invalid @enderror" name="cpf" placeholder="Digite o número do CPF" value="{{ old('cpf') }}" required autocomplete="cpf" autofocus>
<label for="cpf" class="col-form-label" style="font-weight:600;">{{ __('CPF') }}
<span style="color: red; font-weight:bold;">*</span></label>
<input id="cpf" type="text"
class="form-control @error('cpf') is-invalid @enderror" name="cpf"
placeholder="Digite o número do CPF" value="{{ old('cpf') }}" required
autocomplete="cpf" autofocus>
@error('cpf')
<span class="invalid-feedback" role="alert">
......@@ -46,8 +62,12 @@
</div>
<div class="col-md-6">
<div class="form-group">
<label for="rg" class="col-form-label" style="font-weight:600;">{{ __('RG') }}<span style="color: red; font-weight:bold;">*</span></label>
<input id="rg" type="text" class="form-control @error('rg') is-invalid @enderror" name="rg" placeholder="Digite o número do RG" value="{{ old('rg') }}" required autocomplete="rg" autofocus>
<label for="rg" class="col-form-label" style="font-weight:600;">{{ __('RG') }}
<span style="color: red; font-weight:bold;">*</span></label>
<input id="rg" type="text"
class="form-control @error('rg') is-invalid @enderror" name="rg"
placeholder="Digite o número do RG" value="{{ old('rg') }}" required
autocomplete="rg" autofocus>
@error('rg')
<span class="invalid-feedback" role="alert">
......@@ -58,8 +78,13 @@
</div>
<div class="col-md-6">
<div class="form-group">
<label for="celular" class="col-form-label" style="font-weight:600;">{{ __('Celular') }}<span style="color: red; font-weight:bold;">*</span></label>
<input id="celular" type="text" class="form-control @error('celular') is-invalid @enderror" name="celular" placeholder="Digite o número do seu celular" value="{{ old('celular') }}" required autocomplete="celular" autofocus>
<label for="celular" class="col-form-label"
style="font-weight:600;">{{ __('Celular') }}<span
style="color: red; font-weight:bold;">*</span></label>
<input id="celular" type="text"
class="form-control @error('celular') is-invalid @enderror"
name="celular" placeholder="Digite o número do seu celular"
value="{{ old('celular') }}" required autocomplete="celular" autofocus>
@error('celular')
<span class="invalid-feedback" role="alert">
......@@ -69,17 +94,29 @@
</div>
</div>
<div class="col-md-12">
<div class="d-flex justify-content-between align-items-center" style="margin-bottom:6px">
<h5 class="card-title mb-0" style="font-size:20px; font-family:Arial, Helvetica, sans-serif; font-family:Arial, Helvetica, sans-serif; ">Instituição</h5>
<div class="d-flex justify-content-between align-items-center"
style="margin-bottom:6px">
<h5 class="card-title mb-0"
style="font-size:20px; font-family:Arial, Helvetica, sans-serif; font-family:Arial, Helvetica, sans-serif; ">
Instituição</h5>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label for="instituicaoSelect" class="col-form-label" style="font-weight:600;">{{ __('Instituição de Vínculo') }}<span style="color: red; font-weight:bold;">*</span></label>
<select style="display: inline" onchange="showInstituicao()" class="form-control @error('instituicaoSelect') is-invalid @enderror" name="instituicaoSelect" id="instituicaoSelect">
<label for="instituicaoSelect" class="col-form-label"
style="font-weight:600;">{{ __('Instituição de Vínculo') }}<span
style="color: red; font-weight:bold;">*</span></label>
<select style="display: inline" onchange="showInstituicao()"
class="form-control @error('instituicaoSelect') is-invalid @enderror"
name="instituicaoSelect" id="instituicaoSelect">
<option value="" disabled selected hidden>-- Instituição --</option>
<option @if(old('instituicaoSelect')=='UFAPE' ) selected @endif value="UFAPE">Universidade Federal do Agreste de Pernambuco - UFAPE</option>
<option @if(old('instituicaoSelect')=='Outra' ) selected @endif value="Outra">Outra</option>
<option @if(old('instituicaoSelect')=='UFAPE' ) selected
@endif value="UFAPE">Universidade Federal do Agreste de Pernambuco -
UFAPE
</option>
<option @if(old('instituicaoSelect')=='Outra' ) selected
@endif value="Outra">Outra
</option>
</select>
@error('instituicaoSelect')
<span class="invalid-feedback" role="alert">
......@@ -90,8 +127,13 @@
</div>
<div class="col-md-12" id="displayOutro" style='display:none'>
<div class="form-group">
<label for="instituicao" class="col-form-label" style="font-weight:600;">{{ __('Digite a Instituição') }}<span style="color: red; font-weight:bold;">*</span></label>
<input id="instituicao" type="text" class="form-control @error('instituicao') is-invalid @enderror" name="instituicao" value="{{ old('instituicao') }}" placeholder="Digite o nome da Instituição" autofocus>
<label for="instituicao" class="col-form-label"
style="font-weight:600;">{{ __('Digite a Instituição') }}<span
style="color: red; font-weight:bold;">*</span></label>
<input id="instituicao" type="text"
class="form-control @error('instituicao') is-invalid @enderror"
name="instituicao" value="{{ old('instituicao') }}"
placeholder="Digite o nome da Instituição" autofocus>
@error('instituicao')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
......@@ -101,13 +143,24 @@
</div>
<div class="col-md-6">
<div class="form-group">
<label for="perfil" class="col-form-label" style="font-weight:600;">{{ __('Perfil') }}<span style="color: red; font-weight:bold;">*</span></label>
<select id="perfil" name="perfil" class="form-control @error('perfil') is-invalid @enderror" onchange="mudarPerfil()">
<label for="perfil" class="col-form-label"
style="font-weight:600;">{{ __('Perfil') }}<span
style="color: red; font-weight:bold;">*</span></label>
<select id="perfil" name="perfil"
class="form-control @error('perfil') is-invalid @enderror"
onchange="mudarPerfil()">
<option value="" disabled selected hidden>-- Perfil --</option>
<option @if(old('perfil')=='Professor' ) selected @endif value="Professor">Professor</option>
<option @if(old('perfil')=='Técnico' ) selected @endif value="Técnico">Técnico</option>
<option @if(old('perfil')=='Estudante' ) selected @endif value="Estudante">Estudante</option>
<option @if(old('perfil')=='Outro' ) selected @endif value="Outro">Outro</option>
<option @if(old('perfil')=='Professor' ) selected @endif value="Professor">
Professor
</option>
<option @if(old('perfil')=='Técnico' ) selected @endif value="Técnico">
Técnico
</option>
<option @if(old('perfil')=='Estudante' ) selected @endif value="Estudante">
Estudante
</option>
<option @if(old('perfil')=='Outro' ) selected @endif value="Outro">Outro
</option>
</select>
@error('perfil')
<span class="invalid-feedback" role="alert">
......@@ -118,8 +171,13 @@
</div>
<div class="col-md-6">
<div class="form-group" id="outroPerfil">
<label for="outroPerfil" class="col-form-label" style="font-weight:600;">{{ __('Qual perfil?') }}<span style="color: red; font-weight:bold;">*</span></label>
<input id="outroPerfil" type="text" class="form-control @error('outroPerfil') is-invalid @enderror" name="outroPerfil" placeholder="Digite aqui qual o seu perfil" value="{{ old('outroPerfil') }}">
<label for="outroPerfil" class="col-form-label"
style="font-weight:600;">{{ __('Qual perfil?') }}<span
style="color: red; font-weight:bold;">*</span></label>
<input id="outroPerfil" type="text"
class="form-control @error('outroPerfil') is-invalid @enderror"
name="outroPerfil" placeholder="Digite aqui qual o seu perfil"
value="{{ old('outroPerfil') }}">
@error('outroPerfil')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
......@@ -128,16 +186,31 @@
</div>
</div>
<div style="display:none" id="divCursos" class="col-md-12 mb-2">
<label for="curso" class="col-form-label" style="font-weight:600;">{{ __('Cursos que Leciona') }}<span style="color: red; font-weight:bold;">*</span></label>
<label for="curso" class="col-form-label"
style="font-weight:600;">{{ __('Cursos que Leciona') }}<span
style="color: red; font-weight:bold;">*</span></label>
<br>
<div class="row col-md-12">
@foreach($cursos as $curso)
@if($curso->nome == "Outro Curso")
<div id="divOutroCurso" class="col-sm-6" style="display: none">
<input type="checkbox" name="curso[]"
id="curso{{$curso->id}}"
value="{{$curso->id}}">
<label class="form-check-label" for="curso{{$curso->id}}">
{{ $curso->nome }}
</label>
</div>
@else
<div class="col-sm-6">
<input type="checkbox" name="curso[]" id="curso{{$curso->id}}" value="{{$curso->id}}">
<input type="checkbox" name="curso[]"
id="curso{{$curso->id}}"
value="{{$curso->id}}">
<label class="form-check-label" for="curso{{$curso->id}}">
{{ $curso->nome }}
</label>
</div>
@endif
@endforeach
</div>
</div>
......@@ -145,14 +218,27 @@
<!-- Proponente -->
<div class="col-md-6">
<div class="form-group" id="divVinculo">
<label for="vinculo" class="col-form-label" style="font-weight:600;">{{ __('Vínculo') }}<span style="color: red; font-weight:bold;">*</span></label>
<select name="vinculo" id="vinculo" class="form-control @error('vinculo') is-invalid @enderror" onchange="mudarPerfil()">
<label for="vinculo" class="col-form-label"
style="font-weight:600;">{{ __('Vínculo') }}<span
style="color: red; font-weight:bold;">*</span></label>
<select name="vinculo" id="vinculo"
class="form-control @error('vinculo') is-invalid @enderror"
onchange="mudarPerfil()">
<option value="" disabled selected hidden>-- Vínculo --</option>
<option @if(old('vinculo')=='Servidor na ativa' ) selected @endif value="Servidor na ativa">Servidor na ativa</option>
<option @if(old('vinculo')=='Servidor aposentado' ) selected @endif value="Servidor aposentado">Servidor aposentado</option>
<option @if(old('vinculo')=='Professor visitante' ) selected @endif value="Professor visitante">Professor visitante</option>
<option @if(old('vinculo')=='Pós-doutorando' ) selected @endif value="Pós-doutorando">Pós-doutorando</option>
<option @if(old('vinculo')=='Outro' ) selected @endif value="Outro">Outro</option>
<option @if(old('vinculo')=='Servidor na ativa' ) selected
@endif value="Servidor na ativa">Servidor na ativa
</option>
<option @if(old('vinculo')=='Servidor aposentado' ) selected
@endif value="Servidor aposentado">Servidor aposentado
</option>
<option @if(old('vinculo')=='Professor visitante' ) selected
@endif value="Professor visitante">Professor visitante
</option>
<option @if(old('vinculo')=='Pós-doutorando' ) selected
@endif value="Pós-doutorando">Pós-doutorando
</option>
<option @if(old('vinculo')=='Outro' ) selected @endif value="Outro">Outro
</option>
</select>
@error('vinculo')
......@@ -164,8 +250,12 @@
</div>
<div class="col-md-6">
<div class="form-group" id="divOutro">
<label for="outro" class="col-form-label" style="font-weight:600;">{{ __('Qual?') }}<span style="color: red; font-weight:bold;">*</span></label>
<input id="outro" type="text" class="form-control @error('outro') is-invalid @enderror" name="outro" placeholder="Digite aqui o seu vínculo" value="{{ old('outro') }}">
<label for="outro" class="col-form-label"
style="font-weight:600;">{{ __('Qual?') }}<span
style="color: red; font-weight:bold;">*</span></label>
<input id="outro" type="text"
class="form-control @error('outro') is-invalid @enderror" name="outro"
placeholder="Digite aqui o seu vínculo" value="{{ old('outro') }}">
@error('outro')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
......@@ -175,14 +265,29 @@
</div>
<div class="col-md-6">
<div class="form-group" id="divTitulacaoMax" style="display: none">
<label for="titulacaoMaxima" class="col-form-label" style="font-weight:600;">{{ __('Titulação Máxima') }}<span style="color: red; font-weight:bold;">*</span></label>
<select id="titulacaoMaxima" class="form-control @error('titulacaoMaxima') is-invalid @enderror" name="titulacaoMaxima" value="{{ old('titulacaoMaxima') }}" autocomplete="nome">
<label for="titulacaoMaxima" class="col-form-label"
style="font-weight:600;">{{ __('Titulação Máxima') }}<span
style="color: red; font-weight:bold;">*</span></label>
<select id="titulacaoMaxima"
class="form-control @error('titulacaoMaxima') is-invalid @enderror"
name="titulacaoMaxima" value="{{ old('titulacaoMaxima') }}"
autocomplete="nome">
<option value="" disabled selected hidden>-- Titulação --</option>
<option @if(old('titulacaoMaxima')=='Doutorado' ) selected @endif value="Doutorado">Doutorado</option>
<option @if(old('titulacaoMaxima')=='Mestrado' ) selected @endif value="Mestrado">Mestrado</option>
<option @if(old('titulacaoMaxima')=='Especialização' ) selected @endif value="Especialização">Especialização</option>
<option @if(old('titulacaoMaxima')=='Graduação' ) selected @endif value="Graduação">Graduação</option>
<option @if(old('titulacaoMaxima')=='Técnico' ) selected @endif value="Técnico">Técnico</option>
<option @if(old('titulacaoMaxima')=='Doutorado' ) selected
@endif value="Doutorado">Doutorado
</option>
<option @if(old('titulacaoMaxima')=='Mestrado' ) selected
@endif value="Mestrado">Mestrado
</option>
<option @if(old('titulacaoMaxima')=='Especialização' ) selected
@endif value="Especialização">Especialização
</option>
<option @if(old('titulacaoMaxima')=='Graduação' ) selected
@endif value="Graduação">Graduação
</option>
<option @if(old('titulacaoMaxima')=='Técnico' ) selected
@endif value="Técnico">Técnico
</option>
</select>
@error('titulacaoMaxima')
......@@ -194,8 +299,13 @@
</div>
<div class="col-md-6">
<div class="form-group" id="anoTitulacao" style="display: none">
<label for="AnoTitulacao" class="col-form-label" style="font-weight:600;">{{ __('Ano da Titulação Máxima') }}<span style="color: red; font-weight:bold;">*</span></label>
<input id="AnoTitulacao" type="text" class="form-control @error('anoTitulacao') is-invalid @enderror" name="anoTitulacao" placeholder="Digite o ano de titulação" value="{{ old('anoTitulacao') }}" autocomplete="nome">
<label for="AnoTitulacao" class="col-form-label"
style="font-weight:600;">{{ __('Ano da Titulação Máxima') }}<span
style="color: red; font-weight:bold;">*</span></label>
<input id="AnoTitulacao" type="text"
class="form-control @error('anoTitulacao') is-invalid @enderror"
name="anoTitulacao" placeholder="Digite o ano de titulação"
value="{{ old('anoTitulacao') }}" autocomplete="nome">
@error('anoTitulacao')
<span class="invalid-feedback" role="alert">
......@@ -204,10 +314,15 @@
@enderror
</div>
</div>
<div class="col-md-6" >
<div class="col-md-6">
<div class="form-group" id="areaFormacao" style="display: none">
<label for="areaFormacao" class="col-form-label" style="font-weight:600;">{{ __('Área de Formação') }}<span style="color: red; font-weight:bold;">*</span></label>
<input id="areaFormacao" type="text" class="form-control @error('areaFormacao') is-invalid @enderror" name="areaFormacao" placeholder="Digite a sua área de formação" value="{{ old('areaFormacao') }}" autocomplete="nome">
<label for="areaFormacao" class="col-form-label"
style="font-weight:600;">{{ __('Área de Formação') }}<span
style="color: red; font-weight:bold;">*</span></label>
<input id="areaFormacao" type="text"
class="form-control @error('areaFormacao') is-invalid @enderror"
name="areaFormacao" placeholder="Digite a sua área de formação"
value="{{ old('areaFormacao') }}" autocomplete="nome">
@error('areaFormacao')
<span class="invalid-feedback" role="alert">
......@@ -218,8 +333,12 @@
</div>
<div class="col-md-6">
<div class="form-group" id="siape" style="display: none">
<label for="SIAPE" class="col-form-label" style="font-weight:600;">{{ __('SIAPE') }}</label>
<input id="SIAPE" type="text" class="form-control @error('SIAPE') is-invalid @enderror" name="SIAPE" placeholder="Digite o SIAPE" value="{{ old('SIAPE') }}" autocomplete="nome">
<label for="SIAPE" class="col-form-label"
style="font-weight:600;">{{ __('SIAPE') }}</label>
<input id="SIAPE" type="text"
class="form-control @error('SIAPE') is-invalid @enderror" name="SIAPE"
placeholder="Digite o SIAPE" value="{{ old('SIAPE') }}"
autocomplete="nome">
@error('SIAPE')
<span class="invalid-feedback" role="alert">
......@@ -230,11 +349,19 @@
</div>
<div class="col-md-6">
<div class="form-group" id="bolsista" style="display: none">
<label for="bolsistaProdutividade" class="col-form-label" style="font-weight:600;">{{ __('Bolsista de Produtividade') }}<span style="color: red; font-weight:bold;">*</span></label><br>
<select name="bolsistaProdutividade" id="bolsistaProdutividade" class="form-control @error('bolsistaProdutividade') is-invalid @enderror" onchange="mudarNivel()">
<label for="bolsistaProdutividade" class="col-form-label"
style="font-weight:600;">{{ __('Bolsista de Produtividade') }}<span
style="color: red; font-weight:bold;">*</span></label><br>
<select name="bolsistaProdutividade" id="bolsistaProdutividade"
class="form-control @error('bolsistaProdutividade') is-invalid @enderror"
onchange="mudarNivel()">
<option value="" disabled selected hidden>-- Bolsista --</option>
<option @if(old('bolsistaProdutividade')=='nao' ) selected @endif value="nao">Não</option>
<option @if(old('bolsistaProdutividade')=='sim' ) selected @endif value="sim">Sim</option>
<option @if(old('bolsistaProdutividade')=='nao' ) selected
@endif value="nao">Não
</option>
<option @if(old('bolsistaProdutividade')=='sim' ) selected
@endif value="sim">Sim
</option>
</select>
@error('bolsistaProdutividade')
<span class="invalid-feedback" role="alert">
......@@ -245,8 +372,11 @@
</div>
<div class="col-md-6">
<div class="form-group" id="nivelInput" style="display: block;">
<label for="nivel" class="col-form-label" style="font-weight:600;">{{ __('Nível') }}<span style="color: red; font-weight:bold;">*</span></label>
<select name="nivel" id="nivel" class="form-control @error('nivel') is-invalid @enderror">
<label for="nivel" class="col-form-label"
style="font-weight:600;">{{ __('Nível') }}<span
style="color: red; font-weight:bold;">*</span></label>
<select name="nivel" id="nivel"
class="form-control @error('nivel') is-invalid @enderror">
<option value="" disabled selected hidden></option>
<option value="1A">1A</option>
<option value="1B">1B</option>
......@@ -266,9 +396,12 @@
<div class="col-md-6">
<div class="form-group" id="dataNascimento">
@component('componentes.input', ['label' => 'Data de nascimento'])
<input type="date" class="form-control" value="{{old('data_de_nascimento')}}" name="data_de_nascimento" placeholder="Data de nascimento" />
<input type="date" class="form-control"
value="{{old('data_de_nascimento')}}" name="data_de_nascimento"
placeholder="Data de nascimento"/>
@error('data_de_nascimento')
<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>
</span>
@enderror
......@@ -278,15 +411,23 @@
<div class="col-md-6">
<div class="form-group" id="curso">
@component('componentes.input', ['label' => 'Curso'])
<select style="display: inline" class="form-control" id='cursoEstudante' name="cursoEstudante" onchange="outroCurso(this)">
<option value="" disabled selected hidden>-- Selecione uma opção--</option>
<select style="display: inline" class="form-control" id='cursoEstudante'
name="cursoEstudante" onchange="outroCurso(this)">
<option value="" disabled selected hidden>-- Selecione uma opção--
</option>
@foreach ($cursos as $curso)
<option @if(old('cursoEstudante')==$curso->id) selected @endif value='{{$curso->id}}'>{{$curso->nome}}</option>
@if($curso->nome != 'Outro Curso')
<option @if(old('cursoEstudante')==$curso->id) selected
@endif value='{{$curso->id}}'>{{$curso->nome}}</option>
@endif
@endforeach
<option @if(old('cursoEstudante') == "Outro" ) selected @endif value="Outro">Outro</option>
<option @if(old('cursoEstudante') == "Outro" ) selected
@endif value="Outro">Outro
</option>
</select>
@error('curso')
<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>
</span>
@enderror
......@@ -297,27 +438,33 @@
<div class="col-md-12">
<div class="form-group" id="divCursoEstudante" style="display:none">
@component('componentes.input', ['label' => 'Qual curso?'])
<input name="outroCursoEstudante" type="text" id="outroCursoEstudante" value="{{ old('outroCursoEstudante')}}" class="form-control"/>
<input name="outroCursoEstudante" type="text" id="outroCursoEstudante"
value="{{ old('outroCursoEstudante')}}" class="form-control"/>
@error('outroCursoEstudante')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"><strong>{{ $message }}</strong></span>
<span class="invalid-feedback" role="alert"
style="overflow: visible; display:block"><strong>{{ $message }}</strong></span>
@enderror
@endcomponent
</div>
</div>
<div class="col-md-12" id='endereco'>
<div class="d-flex justify-content-between align-items-center" style="margin-bottom:6px">
<h5 class="card-title mb-0" style="font-size:20px; font-family:Arial, Helvetica, sans-serif; font-family:Arial, Helvetica, sans-serif; ">Endereço</h5>
<div class="d-flex justify-content-between align-items-center"
style="margin-bottom:6px">
<h5 class="card-title mb-0"
style="font-size:20px; font-family:Arial, Helvetica, sans-serif; font-family:Arial, Helvetica, sans-serif; ">
Endereço</h5>
</div>
</div>
<div class="col-md-6">
<div class="form-group" id="divCep">
@component('componentes.input', ['label' => 'CEP'])
<input name="cep" type="text" id="cep" value="{{ old('cep')}}" class="form-control cep" onblur="pesquisaCep(this.value)" />
<input name="cep" type="text" id="cep" value="{{ old('cep')}}"
class="form-control cep" onblur="pesquisaCep(this.value)"/>
@error('cep')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"><strong>{{ $message }}</strong></span>
<span class="invalid-feedback" role="alert"
style="overflow: visible; display:block"><strong>{{ $message }}</strong></span>
@enderror
@endcomponent
</div>
......@@ -325,9 +472,11 @@
<div class="col-md-6">
<div class="form-group" id="divUf">
@component('componentes.input', ['label' => 'Estado'])
<input name="uf" type="text" class="form-control" value="{{ old('uf')}}" id="uf" />
<input name="uf" type="text" class="form-control" value="{{ old('uf')}}"
id="uf"/>
@error('uf')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"><strong>{{ $message }}</strong></span>
<span class="invalid-feedback" role="alert"
style="overflow: visible; display:block"><strong>{{ $message }}</strong></span>
@enderror
@endcomponent
</div>
......@@ -335,9 +484,11 @@
<div class="col-md-6">
<div class="form-group" id="divCidade">
@component('componentes.input', ['label' => 'Cidade'])
<input name="cidade" type="text" id="cidade" class="form-control" value="{{ old('cidade')}}" />
<input name="cidade" type="text" id="cidade" class="form-control"
value="{{ old('cidade')}}"/>
@error('cidade')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"><strong>{{ $message }}</strong></span>
<span class="invalid-feedback" role="alert"
style="overflow: visible; display:block"><strong>{{ $message }}</strong></span>
@enderror
@endcomponent
</div>
......@@ -345,9 +496,11 @@
<div class="col-md-6">
<div class="form-group" id="divBairro">
@component('componentes.input', ['label' => 'Bairro'])
<input name="bairro" type="text" id="bairro" class="form-control" value="{{ old('bairro')}}" />
<input name="bairro" type="text" id="bairro" class="form-control"
value="{{ old('bairro')}}"/>
@error('bairro')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"><strong>{{ $message }}</strong></span>
<span class="invalid-feedback" role="alert"
style="overflow: visible; display:block"><strong>{{ $message }}</strong></span>
@enderror
@endcomponent
</div>
......@@ -355,9 +508,11 @@
<div class="col-md-6">
<div class="form-group" id='divRua'>
@component('componentes.input', ['label' => 'Rua'])
<input name="rua" type="text" id="rua" class="form-control" value="{{ old('rua')}}" />
<input name="rua" type="text" id="rua" class="form-control"
value="{{ old('rua')}}"/>
@error('rua')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"><strong>{{ $message }}</strong></span>
<span class="invalid-feedback" role="alert"
style="overflow: visible; display:block"><strong>{{ $message }}</strong></span>
@enderror
@endcomponent
</div>
......@@ -365,9 +520,11 @@
<div class="col-md-6">
<div class="form-group" id='numero'>
@component('componentes.input', ['label' => 'Número'])
<input name="numero" type="text" class="form-control" value="{{ old('numero')}}" />
<input name="numero" type="text" class="form-control"
value="{{ old('numero')}}"/>
@error('numero')
<span class="invalid-feedback" role="alert" style="overflow: visible; display:block"><strong>{{ $message }}</strong></span>
<span class="invalid-feedback" role="alert"
style="overflow: visible; display:block"><strong>{{ $message }}</strong></span>
@enderror
@endcomponent
</div>
......@@ -375,11 +532,14 @@
<div class='col-md-12'>
<div class="form-group" id='complemento'>
<label class=" control-label" for="firstname" style="font-weight:600;">Complemento</label>
<input type="text" class="form-control" value="{{old('complemento')}}" name="complemento" placeholder="Complemento" maxlength="75" id="complemento" />
<input type="text" class="form-control" value="{{old('complemento')}}"
name="complemento" placeholder="Complemento" maxlength="75"
id="complemento"/>
<span style="color: red; font-size: 12px" id="caracsRestantescomplemento">
</span>
@error('complemento')
<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>
</span>
@enderror
......@@ -389,8 +549,13 @@
<div class="col-md-12">
<div class="form-group">
<label for="linkLattes" class="col-form-label" style="font-weight:600;">{{ __('Link do Currículo Lattes') }}<span style="color: red; font-weight:bold;">*</span></label>
<input id="linkLattes" type="text" class="form-control @error('linkLattes') is-invalid @enderror" name="linkLattes" placeholder="Digite o link do currículo Lattes" value="{{ old('linkLattes') }}" autocomplete="nome">
<label for="linkLattes" class="col-form-label"
style="font-weight:600;">{{ __('Link do Currículo Lattes') }}<span
style="color: red; font-weight:bold;">*</span></label>
<input id="linkLattes" type="text"
class="form-control @error('linkLattes') is-invalid @enderror"
name="linkLattes" placeholder="Digite o link do currículo Lattes"
value="{{ old('linkLattes') }}" autocomplete="nome">
@error('linkLattes')
<span class="invalid-feedback" role="alert">
......@@ -400,14 +565,22 @@
</div>
</div>
<div class="col-md-12">
<div class="d-flex justify-content-between align-items-center" style="margin-bottom:6px">
<h5 class="card-title mb-0" style="font-size:20px; font-family:Arial, Helvetica, sans-serif; font-family:Arial, Helvetica, sans-serif; ">Acesso ao sistema</h5>
<div class="d-flex justify-content-between align-items-center"
style="margin-bottom:6px">
<h5 class="card-title mb-0"
style="font-size:20px; font-family:Arial, Helvetica, sans-serif; font-family:Arial, Helvetica, sans-serif; ">
Acesso ao sistema</h5>
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="email" class="col-form-label" style="font-weight:600;">{{ __('E-Mail') }}<span style="color: red; font-weight:bold;">*</span></label>
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" placeholder="Digite o seu e-mail" value="{{ old('email') }}" required autocomplete="email">
<label for="email" class="col-form-label"
style="font-weight:600;">{{ __('E-Mail') }}<span
style="color: red; font-weight:bold;">*</span></label>
<input id="email" type="email"
class="form-control @error('email') is-invalid @enderror" name="email"
placeholder="Digite o seu e-mail" value="{{ old('email') }}" required
autocomplete="email">
@error('email')
<span class="invalid-feedback" role="alert">
......@@ -418,8 +591,13 @@
</div>
<div class="col-md-6">
<div class="form-group">
<label for="password" class="col-form-label" style="font-weight:600;">{{ __('Senha') }}<span style="color: red; font-weight:bold;">*</span></label>
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" placeholder="Digite sua senha" required autocomplete="new-password">
<label for="password" class="col-form-label"
style="font-weight:600;">{{ __('Senha') }}<span
style="color: red; font-weight:bold;">*</span></label>
<input id="password" type="password"
class="form-control @error('password') is-invalid @enderror"
name="password" placeholder="Digite sua senha" required
autocomplete="new-password">
@error('password')
<span class="invalid-feedback" role="alert">
......@@ -431,8 +609,12 @@
</div>
<div class="col-md-6">
<div class="form-group">
<label for="password-confirm" class="col-form-label" style="font-weight:600;">{{ __('Confirme a Senha') }}<span style="color: red; font-weight:bold;">*</span></label>
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" placeholder="Confirme sua senha" required autocomplete="new-password">
<label for="password-confirm" class="col-form-label"
style="font-weight:600;">{{ __('Confirme a Senha') }}<span
style="color: red; font-weight:bold;">*</span></label>
<input id="password-confirm" type="password" class="form-control"
name="password_confirmation" placeholder="Confirme sua senha" required
autocomplete="new-password">
</div>
</div>
<div class="col-md-12">
......@@ -449,18 +631,18 @@
</div>
</div>
</form>
</div>
</div>
@endsection
@section('javascript')
<script type="text/javascript">
$(document).ready(function($) {
<script type="text/javascript">
$(document).ready(function ($) {
$('#cpf').mask('000.000.000-00');
var SPMaskBehavior = function(val) {
var SPMaskBehavior = function (val) {
return val.replace(/\D/g, '').length === 11 ? '(00) 00000-0000' : '(00) 0000-00009';
},
spOptions = {
onKeyPress: function(val, e, field, options) {
onKeyPress: function (val, e, field, options) {
field.mask(SPMaskBehavior.apply({}, arguments), options);
}
};
......@@ -494,7 +676,7 @@
var comboBoxPerfil = document.getElementById('perfil');
if(comboBoxPerfil.value === "Professor" || comboBoxPerfil.value === "Técnico" || comboBoxPerfil.value === "Outro"){
if (comboBoxPerfil.value === "Professor" || comboBoxPerfil.value === "Técnico" || comboBoxPerfil.value === "Outro") {
divVinculo.style.display = "block";
divTitulacaoMax.style.display = "block";
divAnoTitulacao.style.display = "block";
......@@ -502,7 +684,7 @@
divSIAPE.style.display = "block";
divBolsista.style.display = "block";
if (comboBoxPerfil.value === "Professor"){
if (comboBoxPerfil.value === "Professor") {
divCursos.style.display = "block";
} else {
divCursos.style.display = "none";
......@@ -519,7 +701,7 @@
divCursos.style.display = "none";
}
if(comboBoxPerfil.value === "Estudante"){
if (comboBoxPerfil.value === "Estudante") {
divDataNascimento.style.display = "block";
divCurso.style.display = "block";
divEndereco.style.display = "block";
......@@ -550,7 +732,7 @@
outroVinculo();
}
function outroCurso(){
function outroCurso() {
var comboBoxCurso = document.getElementById('cursoEstudante');
var divCurso = document.getElementById('divCursoEstudante');
......@@ -597,14 +779,21 @@
function showInstituicao() {
var instituicao = document.getElementById('instituicao');
var instituicaoSelect = document.getElementById('instituicaoSelect');
var divOutroCurso = document.getElementById('divOutroCurso');
if (instituicaoSelect.value === "Outra") {
document.getElementById("displayOutro").style.display = "block";
divOutroCurso.style.display = "block";
instituicao.parentElement.style.display = '';
document.getElementById('instituicao').value = "";
} else if (instituicaoSelect.value === "UFAPE") {
document.getElementById("displayOutro").style.display = "none";
}
if(instituicaoSelect.value != "Outra")
{
divOutroCurso.style.display = "none";
}
}
function onload() {
......@@ -614,11 +803,12 @@
showInstituicao();
outroCurso();
}
window.onload = onload();
</script>
</script>
<script>
//----------------------------- Scripts para auto-complete de endereço --------------------------------//
<script>
//----------------------------- Scripts para auto-complete de endereço --------------------------------//
function limpa_formulário_cep() {
//Limpa valores do formulário de cep.
......@@ -688,7 +878,6 @@
limpa_formulário_cep();
}
};
</script>
</script>
@endsection
\ No newline at end of file
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