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
c3e3ef3d
Commit
c3e3ef3d
authored
Dec 19, 2022
by
unknown
Browse files
Alteração para o convite de avaliadores no edital de extensão
parent
0001a1d2
Changes
2
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
c3e3ef3d
...
@@ -689,6 +689,7 @@ class AdministradorController extends Controller
...
@@ -689,6 +689,7 @@ class AdministradorController extends Controller
$evento
=
Evento
::
where
(
'id'
,
$request
->
evento_id
)
->
first
();
$evento
=
Evento
::
where
(
'id'
,
$request
->
evento_id
)
->
first
();
$trabalhos
=
$evento
->
trabalhos
;
$trabalhos
=
$evento
->
trabalhos
;
$grandesAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
$grandesAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
$areasTematicas
=
AreaTematica
::
orderBy
(
'nome'
)
->
get
();
$avaliadores
=
$evento
->
avaliadors
;
$avaliadores
=
$evento
->
avaliadors
;
foreach
(
$trabalhos
as
$key
=>
$trabalho
)
{
foreach
(
$trabalhos
as
$key
=>
$trabalho
)
{
$avalSelecionadosId
=
$trabalho
->
avaliadors
->
pluck
(
'id'
);
$avalSelecionadosId
=
$trabalho
->
avaliadors
->
pluck
(
'id'
);
...
@@ -703,6 +704,7 @@ class AdministradorController extends Controller
...
@@ -703,6 +704,7 @@ class AdministradorController extends Controller
'trabalhos'
=>
$trabalhos
,
'trabalhos'
=>
$trabalhos
,
'avaliadores'
=>
$avaliadores
,
'avaliadores'
=>
$avaliadores
,
'grandesAreas'
=>
$grandesAreas
,
'grandesAreas'
=>
$grandesAreas
,
'areasTematicas'
=>
$areasTematicas
]);
]);
}
}
...
...
resources/views/administrador/selecionarProjetos.blade.php
View file @
c3e3ef3d
...
@@ -323,7 +323,7 @@
...
@@ -323,7 +323,7 @@
<input type="
hidden
" name="
evento_id
" value="
{{
$evento
->
id
}}
">
<input type="
hidden
" name="
evento_id
" value="
{{
$evento
->
id
}}
">
<input type="
hidden
" id="
trabalho_id
" name="
trabalho_id
" value="
{{
$trabalho
->
id
}}
">
<input type="
hidden
" id="
trabalho_id
" name="
trabalho_id
" value="
{{
$trabalho
->
id
}}
">
<div class="
form
-
group
">
<div class="
form
-
group
">
<label for="
exampleInputEmail1
">Nome Completo
<span style="
color
:
red
;
">*</span></label>
<label for="
exampleInputEmail1
">Nome Completo<span style="
color
:
red
;
">*</span></label>
<input type="
text
" class="
form
-
control
" name="
nomeAvaliador
" id="
exampleInputNome1
"
<input type="
text
" class="
form
-
control
" name="
nomeAvaliador
" id="
exampleInputNome1
"
required>
required>
</div>
</div>
...
@@ -334,6 +334,7 @@
...
@@ -334,6 +334,7 @@
</div>
</div>
<div class="
form
-
group
">
<div class="
form
-
group
">
@if(
$evento->natureza_id
!= 3)
<label for="
grandeArea
" class="
col
-
form
-
label
">{{ __('Grande Área') }} <span
<label for="
grandeArea
" class="
col
-
form
-
label
">{{ __('Grande Área') }} <span
style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<select class="
form
-
control
" id="
grandeAreaConvite
" name="
grande_area_id
" onchange="
areas
()
"
<select class="
form
-
control
" id="
grandeAreaConvite
" name="
grande_area_id
" onchange="
areas
()
"
...
@@ -357,7 +358,19 @@
...
@@ -357,7 +358,19 @@
<option value="
avaliador
">Avaliador</option>
<option value="
avaliador
">Avaliador</option>
</select>
</select>
</div>
</div>
@else
<label for="
grandeArea
" class="
col
-
form
-
label
">{{ __('Áreas Temáticas') }} <span
style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<select class="
form
-
control
" id="
grandeAreaConvite
" name="
area_tematica_id
"
required>
<option value="" disabled selected hidden>-- Áreas Temáticas --</option>
@foreach(
$areasTematicas
as
$areaTematica
)
<option value="
{{
$areaTematica
->
id
}}
">
{
{$areaTematica->nome}
}
</option>
@endforeach
</select>
@endif
@if(
$evento->natureza_id
!= 3)
<div class="
form
-
group
">
<div class="
form
-
group
">
<label for="
exampleFormControlSelect1
">Instituição <span
<label for="
exampleFormControlSelect1
">Instituição <span
style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
...
@@ -368,6 +381,7 @@
...
@@ -368,6 +381,7 @@
<option value="
outra
">Outra</option>
<option value="
outra
">Outra</option>
</select>
</select>
</div>
</div>
@endif
<div class="
form
-
group
" id="
div
-
outra
"
<div class="
form
-
group
" id="
div
-
outra
"
style="
@
if
(
old
(
'instituicao'
)
!=
null
&&
old
(
'instituicao'
)
==
"outra"
)
display
:
block
;
@
else
display
:
none
;
@
endif
">
style="
@
if
(
old
(
'instituicao'
)
!=
null
&&
old
(
'instituicao'
)
==
"outra"
)
display
:
block
;
@
else
display
:
none
;
@
endif
">
...
...
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