Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
a62a72b4
Unverified
Commit
a62a72b4
authored
May 31, 2021
by
Gabriel Antônio da Silva
Committed by
GitHub
May 31, 2021
Browse files
Merge pull request #98 from Gabriel-31415/master
Ajuste
parents
6005f11a
8b64b894
Changes
4
Show whitespace changes
Inline
Side-by-side
resources/views/componentes/input.blade.php
View file @
a62a72b4
@
php
$class
=
$class
??
" "
;
$obrigatorio
=
$obrigatorio
??
" "
;
@
endphp
<
div
class
=
"form-group"
>
<
label
class
=
" control-label {{
$class
}}"
for
=
"firstname"
>
{{
$label
}}
<
span
style
=
"color: red; font-weight:bold"
>*</
span
></
label
>
<
div
class
=
"
col-sm-5
"
>
<
label
class
=
" control-label {{
$class
}}"
for
=
"firstname"
>
{{
$label
}}
@
if
(
$obrigatorio
)
<
span
style
=
"color: red; font-weight:bold"
>*</
span
>
@
endif
</
label
>
<
div
class
=
""
>
{{
$slot
}}
</
div
>
</
div
>
resources/views/evento/formulario/anexos.blade.php
View file @
a62a72b4
...
...
@@ -33,7 +33,7 @@
</div>
<div
class=
"form-group col-md-6"
>
<label
for=
"botao"
class=
"col-form-label @error('botao') is-invalid @enderror"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
"Se possuir, coloque todas em único arquivo pdf."
style=
"margin-right: 15px;"
>
{{ __('Possui autorizações especiais?') }}
<span
style=
"color: red; font-weight:bold"
>
*
</span></label>
<input
type=
"radio"
id=
"radioSim"
onchange=
"displayAutorizacoesEspeciais('sim')"
>
<input
type=
"radio"
checked
id=
"radioSim"
onchange=
"displayAutorizacoesEspeciais('sim')"
>
<label
for=
"radioSim"
style=
"margin-right: 5px"
>
Sim
</label>
<input
type=
"radio"
id=
"radioNao"
onchange=
"displayAutorizacoesEspeciais('nao')"
>
<label
for=
"radioNao"
style=
"margin-right: 5px"
>
Não
</label><br>
...
...
@@ -41,55 +41,16 @@
<strong>
Selecione a autorização e envie o arquivo!
</strong>
</span>
<div
class=
"form-group"
id=
"displaySim"
style=
"display: none; margin-top:-1rem"
>
<label
for=
"botao"
class=
"col-form-label @error('botao') is-invalid @enderror"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
"Se possuir, coloque todas em único arquivo pdf."
>
{{ __('Sim, declaro que necessito de autorizações especiais') }}
</label>
@error('botao')
<span
id=
"botao"
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:inline"
>
<strong>
{{ $message }}
</strong>
</span>
@enderror
<br/>
@if(old('anexoComitePreenchido') != null || (isset($rascunho)
&&
$rascunho->anexoAutorizacaoComiteEtica != ""
&&
$rascunho->anexoAutorizacaoComiteEtica != null))
<a
id=
"anexoComiteTemp"
href=
"{{ route('baixar.anexo.temp', ['eventoId' => $edital->id,
'nomeAnexo' => 'anexoAutorizacaoComiteEtica' ])}}"
>
Arquivo atual
</a>
@endif
<input
type=
"hidden"
id=
"anexoComitePreenchido"
name=
"anexoComitePreenchido"
@
if
(
isset
($
rascunho
)
&&
$
rascunho-
>
anexoAutorizacaoComiteEtica != "") value="sim" @else value="{{old('anexoComitePreenchido')}}" @endif >
<div
class=
"input-group"
>
<div
class=
"custom-file"
>
<input
type=
"file"
class=
"custom-file-input @error('anexoComiteEtica') is-invalid @enderror"
accept=
".pdf"
id=
"inputEtica"
aria-describedby=
"inputGroupFileAddon01"
name=
"anexoComiteEtica"
onchange=
"verificarArquivoAnexado_pdf(this, 'anexoComiteEticaLegenda')"
>
<label
class=
"custom-file-label"
id=
"anexoComiteEticaLegenda"
for=
"inputEtica"
>
O arquivo deve ser no formato PDF de até 2MB.
</label>
</div>
</div>
@error('anexoComiteEtica')
<span
id=
"comiteErro"
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:none"
>
<strong>
{{ $message }}
</strong>
</span>
@enderror
<div
class=
"form-group"
id=
"displaySim"
style=
"display: block; margin-top:-1rem"
>
@component('componentes.input', ['label' => 'Sim, declaro que necessito de autorizações especiais(.pdf)'])
<input
type=
"file"
class=
"input-group-text"
name=
"anexoComiteEtica"
placeholder=
"anexoComiteEtica"
accept=
".pdf"
required
/>
@endcomponent
</div>
<div
class=
"form-group"
id=
"displayNao"
style=
"display: none; margin-top:-1rem"
>
<label
for=
"nomeTrabalho"
class=
"col-form-label"
>
{{ __('Declaração de que não necessito de autorização especiais') }}
</label>
@if(old('anexoJustificativaPreenchido') != null || (isset($rascunho)
&&
$rascunho->justificativaAutorizacaoEtica != ""
&&
$rascunho->justificativaAutorizacaoEtica != null))
<a
id=
"anexoJustificativaTemp"
href=
"{{ route('baixar.anexo.temp', ['eventoId' => $edital->id,
'nomeAnexo' => 'justificativaAutorizacaoEtica' ])}}"
>
Arquivo atual
</a>
@endif
<input
type=
"hidden"
id=
"anexoJustificativaPreenchido"
name=
"anexoJustificativaPreenchido"
@
if
(
isset
($
rascunho
)
&&
$
rascunho-
>
justificativaAutorizacaoEtica != "") value="sim" @else value="{{old('anexoJustificativaPreenchido')}}" @endif >
<div
class=
"input-group"
>
<div
class=
"custom-file"
>
<input
type=
"file"
class=
"custom-file-input @error('justificativaAutorizacaoEtica') is-invalid @enderror"
accept=
".pdf"
id=
"inputJustificativa"
aria-describedby=
"inputGroupFileAddon01"
name=
"justificativaAutorizacaoEtica"
onchange=
"verificarArquivoAnexado_pdf(this, 'justificativaAutorizacaoEticaLegenda')"
required
>
<label
class=
"custom-file-label"
id=
"justificativaAutorizacaoEticaLegenda"
for=
"inputJustificativa"
>
O arquivo deve ser no formato PDF de até 2MB.
</label>
</div>
</div>
@error('justificativaAutorizacaoEtica')
<span
id=
"justificativaErro"
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:none"
>
<strong>
{{ $message }}
</strong>
</span>
@enderror
@component('componentes.input', ['label' => 'Declaração de que não necessito de autorização especiais(.pdf)'])
<input
type=
"file"
class=
"input-group-text"
name=
"inputJustificativa"
placeholder=
"inputJustificativa"
accept=
".pdf"
required
/>
@endcomponent
</div>
</div>
...
...
resources/views/evento/formulario/projeto.blade.php
View file @
a62a72b4
...
...
@@ -48,7 +48,7 @@
@enderror
</div>
<div
class=
"form-group col-md-4"
>
<label
for=
"subArea"
class=
"col-form-label"
>
{{ __('Subárea') }}
<span
style=
"color: red; font-weight:bold"
>
*
</span>
</label>
<label
for=
"subArea"
class=
"col-form-label"
>
{{ __('Subárea') }}
</label>
<input
type=
"hidden"
id=
"oldSubArea"
value=
"{{ old('subArea') }}"
>
<select
class=
"form-control @error('subArea') is-invalid @enderror"
id=
"subArea"
name=
"subArea"
>
<option
value=
""
disabled
selected
hidden
>
-- Subárea --
</option>
...
...
resources/views/evento/submeterTrabalho.blade.php
View file @
a62a72b4
...
...
@@ -65,12 +65,17 @@
let
buttonMais
=
document
.
getElementById
(
'buttonMais'
);
let
buttonMenos
=
document
.
getElementById
(
'buttonMenos'
);
let
buttonForm
=
document
.
getElementById
(
'buttonForm'
);
let
buttonSubmit
=
document
.
getElementById
(
'idButtonSubmitProjeto'
);
let
parts
=
document
.
getElementById
(
'participante'
);
// let buttonRemover = document.getElementById('buttonRemover');
const
participante
=
parts
.
firstElementChild
;
let
contador
=
2
;
// var validator = $( "#formPart" ).validate();
buttonSubmit
.
addEventListener
(
'click'
,
(
e
)
=>
{
$
(
'.collapse'
)
.
addClass
(
'show'
)
})
function
gerarPeriodo
(
e
){
var
select
=
e
.
parentElement
.
parentElement
.
nextElementSibling
;
selectPeriodos
=
select
.
children
[
0
]
.
children
[
1
];
...
...
@@ -104,8 +109,13 @@
}
function
removerPart
(
e
){
if
(
e
.
parentElement
){
if
(
parts
.
children
.
length
<=
1
){
}
else
{
parts
.
removeChild
(
e
.
parentElement
);
}
}
}
buttonMais
.
addEventListener
(
"click"
,
(
e
)
=>
{
...
...
@@ -174,10 +184,11 @@
}
});
$
.
validator
.
setDefaults
(
{
submitHandler
:
function
()
{
$
(
'.collapse'
)
.
collapse
()
alert
(
"submitted!"
);
}
}
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment