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
c584f2c9
Commit
c584f2c9
authored
Dec 16, 2022
by
Lucas Henrique
Browse files
Adicionando troca entre os tipos de avaliação
parent
36735a0d
Changes
1
Show whitespace changes
Inline
Side-by-side
resources/views/evento/criarEvento.blade.php
View file @
c584f2c9
@
extends
(
'layouts.app'
)
@
extends
(
'layouts.app'
)
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"container"
>
<
div
class
=
"row titulo"
>
<
div
class
=
"row titulo"
>
...
@@ -398,36 +397,85 @@
...
@@ -398,36 +397,85 @@
<
hr
>
<
hr
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Critérios
para
Avaliação
</
p
>
<
p
>
Avaliação
</
p
>
</
div
>
</
div
>
<
div
class
=
"my-2"
>
<
p
style
=
"font-size: 16px"
>
Como
a
avaliação
será
realizada
?</
p
>
</
div
>
<
div
class
=
"mb-2"
>
<
input
type
=
"radio"
id
=
"radioForm"
name
=
"tipoAvaliacao"
onchange
=
"displayTipoAvaliacao('form')"
checked
value
=
"form"
>
<
label
for
=
"radioSim"
style
=
"margin-right: 5px"
>
Formulário
(
em
pdf
)
</
label
>
<
input
type
=
"radio"
id
=
"radioCampos"
name
=
"tipoAvaliacao"
onchange
=
"displayTipoAvaliacao('campos')"
value
=
"campos"
>
<
label
for
=
"radioNao"
style
=
"margin-right: 5px"
>
Por
critérios
</
label
><
br
>
</
div
>
<
div
class
=
"row justify-content-center "
style
=
"margin-top:10px"
id
=
"displayForm"
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfFormAvalExterno"
>
Formulário
para
avaliador
<
i
>
ad
hoc
</
i
>:<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
@
if
(
old
(
'pdfFormAvalExternoPreenchido'
)
!=
null
)
<
a
id
=
"pdfFormAvalExternoTemp"
href
=
"{{ route('baixar.evento.temp', ['nomeAnexo' => 'formAvaliacaoExterno' ])}}"
>
Arquivo
atual
</
a
>
@
endif
<
input
type
=
"hidden"
id
=
"pdfFormAvalExternoPreenchido"
name
=
"pdfFormAvalExternoPreenchido"
value
=
"{{ old('pdfFormAvalExternoPreenchido') }}"
>
<
input
type
=
"file"
accept
=
".pdf,.doc,.docx,.xlsx,.xls,.csv,.zip"
class
=
"form-control-file @error('pdfFormAvalExterno') is-invalid @enderror"
name
=
"pdfFormAvalExterno"
value
=
"{{ old('pdfFormAvalExterno') }}"
id
=
"pdfFormAvalExterno"
onchange
=
"exibirAnexoTemp(this)"
>
<
small
>
O
arquivo
selecionado
deve
ter
até
2
mb
.
</
small
>
@
error
(
'pdfFormAvalExterno'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"docTutorial"
>
Documento
auxiliar
para
Avaliador
:</
label
>
@
if
(
old
(
'docTutorialPreenchido'
)
!=
null
)
<
a
id
=
"docTutorialTemp"
href
=
"{{ route('baixar.evento.temp', ['nomeAnexo' => 'docTutorial' ])}}"
>
Arquivo
atual
</
a
>
@
endif
<
input
type
=
"hidden"
id
=
"docTutorialPreenchido"
name
=
"docTutorialPreenchido"
value
=
"{{ old('docTutorialPreenchido') }}"
>
<
input
type
=
"file"
accept
=
".pdf,.docx,.doc,.zip"
class
=
"form-control-file pdf @error('docTutorial') is-invalid @enderror"
name
=
"docTutorial"
value
=
"{{ old('docTutorial') }}"
id
=
"docTutorial"
onchange
=
"exibirAnexoTemp(this)"
>
<
small
>
O
arquivo
selecionado
deve
ser
de
atÃ
©
2
mb
.
</
small
>
@
error
(
'docTutorial'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
table
class
=
"table table-bordered"
id
=
"dynamicAddRemove"
>
<
div
class
=
"row justify-content-center"
style
=
"margin-top:10px; display: none"
id
=
"displayCampos"
>
<
table
class
=
"table table-bordered col-sm-12"
id
=
"dynamicAddRemove"
>
<
tr
>
<
tr
>
<
th
>
Nome
</
th
>
<
th
>
Nome
</
th
>
<
th
>
Descrição
</
th
>
<
th
>
Nota
Máxima
</
th
>
<
th
>
Nota
Máxima
</
th
>
<
th
>
Peso
</
th
>
<
th
>
Prioridade
</
th
>
<
th
>
Prioridade
</
th
>
<
th
>
Ação
</
th
>
<
th
>
Ação
</
th
>
</
tr
>
</
tr
>
<
tr
>
<
tr
>
<
td
><
input
type
=
"text"
min
=
1
name
=
"addMoreI
nputField
s[0]
[nome]"
class
=
"form-control"
/>
<
td
><
input
type
=
"text"
name
=
"i
nputField[nome]
[0]
"
class
=
"form-control
nome
"
/>
</
td
>
</
td
>
<
td
><
input
type
=
"
number"
min
=
1
step
=
"1"
name
=
"addMoreInputFields[0][nota_maxima
]"
class
=
"form-control"
/>
<
td
><
input
type
=
"
text"
name
=
"inputField[descricao][0
]"
class
=
"form-control
descricao
"
/>
</
td
>
</
td
>
<
td
><
input
type
=
"number"
min
=
1
step
=
"1"
name
=
"
addMoreI
nputField
s[0][peso
]"
class
=
"form-control"
/>
<
td
><
input
type
=
"number"
min
=
1
step
=
"1"
name
=
"
i
nputField
[nota_maxima][0
]"
class
=
"form-control
nota_maxima
"
/>
</
td
>
</
td
>
<
td
>
<
td
>
<
select
name
=
"addMoreInputFields[
0][
prioridade][]"
class
=
"form-control"
>
<
select
name
=
"addMoreInputFields[prioridade][
0
]"
class
=
"form-control
prioridade
"
>
<
option
value
=
""
selected
>--
ORDEM
--</
option
>
<
option
value
=
""
selected
>--
ORDEM
--</
option
>
{{
--
@
for
(
$j
=
1
;
$j
<=
$edital
->
numParticipantes
;
$j
++
)
<
option
value
=
"1"
>
1
</
option
>
<
option
@
if
((
old
(
'ordem_prioridade'
)[
$i
]
??
""
)
==
$j
)
selected
@
endif
value
=
"{{
$j
}}"
>
{{
$j
}}
</
option
>
@
endfor
--
}}
</
select
>
</
select
>
</
td
>
</
td
>
<
td
><
button
type
=
"button"
name
=
"add"
id
=
"dynamic-ar"
class
=
"btn btn-outline-primary"
>
Adicionar
</
button
></
td
>
<
td
><
button
type
=
"button"
name
=
"add"
id
=
"dynamic-ar"
class
=
"btn btn-outline-primary"
>
Adicionar
</
button
></
td
>
</
tr
>
</
tr
>
</
table
>
</
table
>
</
div
>
<
hr
>
<
hr
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"row subtitulo"
>
...
@@ -471,23 +519,8 @@
...
@@ -471,23 +519,8 @@
@
enderror
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"pdfFormAvalExterno"
>
Formulário
para
avaliador
<
i
>
ad
hoc
</
i
>:<
span
style
=
"color:red; font-weight:bold;"
>*</
span
></
label
>
@
if
(
old
(
'pdfFormAvalExternoPreenchido'
)
!=
null
)
<
a
id
=
"pdfFormAvalExternoTemp"
href
=
"{{ route('baixar.evento.temp', ['nomeAnexo' => 'formAvaliacaoExterno' ])}}"
>
Arquivo
atual
</
a
>
@
endif
<
input
type
=
"hidden"
id
=
"pdfFormAvalExternoPreenchido"
name
=
"pdfFormAvalExternoPreenchido"
value
=
"{{ old('pdfFormAvalExternoPreenchido') }}"
>
<
input
type
=
"file"
accept
=
".pdf,.doc,.docx,.xlsx,.xls,.csv,.zip"
class
=
"form-control-file @error('pdfFormAvalExterno') is-invalid @enderror"
name
=
"pdfFormAvalExterno"
value
=
"{{ old('pdfFormAvalExterno') }}"
id
=
"pdfFormAvalExterno"
onchange
=
"exibirAnexoTemp(this)"
>
<
small
>
O
arquivo
selecionado
deve
ter
até
2
mb
.
</
small
>
@
error
(
'pdfFormAvalExterno'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
<
div
class
=
"col-sm-6"
>
<
div
class
=
"form-group"
>
<
div
class
=
"form-group"
>
<
label
for
=
"pdfFormAvalExterno"
>
Formulário
de
avaliação
do
relatório
:</
label
>
<
label
for
=
"pdfFormAvalExterno"
>
Formulário
de
avaliação
do
relatório
:</
label
>
@
if
(
old
(
'pdfFormAvalRelatorioPreenchido'
)
!=
null
)
@
if
(
old
(
'pdfFormAvalRelatorioPreenchido'
)
!=
null
)
...
@@ -503,22 +536,6 @@
...
@@ -503,22 +536,6 @@
@
enderror
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"form-group"
>
<
label
for
=
"docTutorial"
>
Documento
auxiliar
para
Avaliador
:</
label
>
@
if
(
old
(
'docTutorialPreenchido'
)
!=
null
)
<
a
id
=
"docTutorialTemp"
href
=
"{{ route('baixar.evento.temp', ['nomeAnexo' => 'docTutorial' ])}}"
>
Arquivo
atual
</
a
>
@
endif
<
input
type
=
"hidden"
id
=
"docTutorialPreenchido"
name
=
"docTutorialPreenchido"
value
=
"{{ old('docTutorialPreenchido') }}"
>
<
input
type
=
"file"
accept
=
".pdf,.docx,.doc,.zip"
class
=
"form-control-file pdf @error('docTutorial') is-invalid @enderror"
name
=
"docTutorial"
value
=
"{{ old('docTutorial') }}"
id
=
"docTutorial"
onchange
=
"exibirAnexoTemp(this)"
>
<
small
>
O
arquivo
selecionado
deve
ser
de
atÃ
©
2
mb
.
</
small
>
@
error
(
'docTutorial'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
</
span
>
@
enderror
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
...
@@ -535,27 +552,50 @@
...
@@ -535,27 +552,50 @@
</
form
>
</
form
>
</
div
>
</
div
>
@
endsection
@
endsection
@
section
(
'javascript'
)
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
<
script
type
=
"text/javascript"
>
var
i
=
0
;
var
i
=
0
;
var
numCampos
=
1
;
$
(
"#dynamic-ar"
)
.
click
(
function
()
{
$
(
"#dynamic-ar"
)
.
click
(
function
()
{
++
i
;
++
i
;
++
numCampos
;
$
(
"#dynamicAddRemove"
)
.
append
(
$
(
"#dynamicAddRemove"
)
.
append
(
'<tr><td><input type="text" min=1 name="addMoreInputFields['
+
i
+
'<tr><td><input type="text" name="inputField[nome]['
+
i
+
']" class="form-control nome"/></td><td><input type="text" name="inputField[descricao]['
+
i
+
']" class="form-control descricao" /></td><td><input type="number" min=1 step="1" name="inputField[nota_maxima]['
+
i
+
']" class="form-control nota_maxima" /></td><td><select name="addMoreInputFields[prioridade]['
+
i
+
']" class="form-control prioridade"><option value="" selected>-- ORDEM --</option><option value="1">1</option></select></td><td><button type="button" class="btn btn-outline-danger remove-input-field">Remover</button></td></tr>'
);
'][nome]" class="form-control" /></td><td><input type="number" min=1 step="1" name="addMoreInputFields['
+
i
+
'][valor]" class="form-control" /></td><td><input type="number" min=1 step="1" name="addMoreInputFields['
+
i
+
$
(
".prioridade"
)
.
children
()
.
remove
(
".dynamic"
)
'][peso]" class="form-control" /></td><td><select name="addMoreInputFields['
+
i
+
$
(
".prioridade"
)
.
each
(
function
()
{
'][prioridade][]" class="form-control"><option value="" selected>-- ORDEM --</option></select></td><td><button type="button" class="btn btn-outline-danger remove-input-field">Remover</button></td></tr>'
for
(
let
x
=
2
;
x
<=
numCampos
;
x
++
)
{
);
$
(
this
)
.
append
(
'<option value="'
+
x
+
'" class="dynamic">'
+
x
+
'</option>'
)
console
.
log
(
i
)
}
})
console
.
log
()
});
});
$
(
document
)
.
on
(
'click'
,
'.remove-input-field'
,
function
()
{
$
(
document
)
.
on
(
'click'
,
'.remove-input-field'
,
function
()
{
$
(
this
)
.
parents
(
'tr'
)
.
remove
();
$
(
this
)
.
parents
(
'tr'
)
.
remove
();
$
(
'.dynamic[value|="'
+
numCampos
+
'"]'
)
.
remove
();
--
numCampos
;
});
});
function
displayTipoAvaliacao
(
valor
){
if
(
valor
==
"form"
){
document
.
getElementById
(
"radioForm"
)
.
checked
=
true
;
document
.
getElementById
(
"radioCampos"
)
.
checked
=
false
;
document
.
getElementById
(
"displayForm"
)
.
style
.
display
=
""
;
document
.
getElementById
(
"displayCampos"
)
.
style
.
display
=
"none"
;
}
else
if
(
valor
==
"campos"
){
document
.
getElementById
(
"radioForm"
)
.
checked
=
false
;
document
.
getElementById
(
"radioCampos"
)
.
checked
=
true
;
document
.
getElementById
(
"displayForm"
)
.
style
.
display
=
"none"
;
document
.
getElementById
(
"displayCampos"
)
.
style
.
display
=
"inline"
;
}
}
function
selecionar_decisao_camara
()
{
function
selecionar_decisao_camara
()
{
var
natureza
=
document
.
getElementById
(
'natureza'
);
var
natureza
=
document
.
getElementById
(
'natureza'
);
if
(
natureza
.
value
==
3
)
{
if
(
natureza
.
value
==
3
)
{
...
...
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