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
fa5b2cc4
"app/Http/git@sites.upe.br:walter.felipe/submeta.git" did not exist on "653d68f8af66920516b9b5472e1e2731b9b2ad96"
Commit
fa5b2cc4
authored
Dec 14, 2022
by
Lucas Henrique
Browse files
Adiciona campos de avaliação na tela de cadastro de evento
parent
78b99673
Changes
1
Show whitespace changes
Inline
Side-by-side
resources/views/evento/criarEvento.blade.php
View file @
fa5b2cc4
...
@@ -395,6 +395,40 @@
...
@@ -395,6 +395,40 @@
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
<
p
>
Critérios
para
Avaliação
</
p
>
</
div
>
</
div
>
<
table
class
=
"table table-bordered"
id
=
"dynamicAddRemove"
>
<
tr
>
<
th
>
Nome
</
th
>
<
th
>
Nota
Máxima
</
th
>
<
th
>
Peso
</
th
>
<
th
>
Prioridade
</
th
>
<
th
>
Ação
</
th
>
</
tr
>
<
tr
>
<
td
><
input
type
=
"text"
min
=
1
name
=
"addMoreInputFields[0][nome]"
class
=
"form-control"
/>
</
td
>
<
td
><
input
type
=
"number"
min
=
1
step
=
"1"
name
=
"addMoreInputFields[0][nota_maxima]"
class
=
"form-control"
/>
</
td
>
<
td
><
input
type
=
"number"
min
=
1
step
=
"1"
name
=
"addMoreInputFields[0][peso]"
class
=
"form-control"
/>
</
td
>
<
td
>
<
select
name
=
"addMoreInputFields[0][prioridade][]"
class
=
"form-control"
>
<
option
value
=
""
selected
>--
ORDEM
--</
option
>
{{
--
@
for
(
$j
=
1
;
$j
<=
$edital
->
numParticipantes
;
$j
++
)
<
option
@
if
((
old
(
'ordem_prioridade'
)[
$i
]
??
""
)
==
$j
)
selected
@
endif
value
=
"{{
$j
}}"
>
{{
$j
}}
</
option
>
@
endfor
--
}}
</
select
>
</
td
>
<
td
><
button
type
=
"button"
name
=
"add"
id
=
"dynamic-ar"
class
=
"btn btn-outline-primary"
>
Adicionar
</
button
></
td
>
</
tr
>
</
table
>
<
hr
>
<
hr
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"row subtitulo"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
...
@@ -505,6 +539,23 @@
...
@@ -505,6 +539,23 @@
@
section
(
'javascript'
)
@
section
(
'javascript'
)
<
script
type
=
"text/javascript"
>
<
script
type
=
"text/javascript"
>
var
i
=
0
;
$
(
"#dynamic-ar"
)
.
click
(
function
()
{
++
i
;
$
(
"#dynamicAddRemove"
)
.
append
(
'<tr><td><input type="text" min=1 name="addMoreInputFields['
+
i
+
'][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
+
'][peso]" class="form-control" /></td><td><select name="addMoreInputFields['
+
i
+
'][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>'
);
console
.
log
(
i
)
});
$
(
document
)
.
on
(
'click'
,
'.remove-input-field'
,
function
()
{
$
(
this
)
.
parents
(
'tr'
)
.
remove
();
});
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