Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
efb6d9ce
Commit
efb6d9ce
authored
2 years ago
by
S-Nathalia
Browse files
Options
Download
Plain Diff
merge
parents
40a31de8
69dcbf71
master
carl-branch
dependabot/composer/symfony/http-kernel-4.4.50
dependabot/npm_and_yarn/decode-uri-component-0.2.2
dependabot/npm_and_yarn/express-4.18.2
dependabot/npm_and_yarn/json5-and-json5-2.2.3
dependabot/npm_and_yarn/minimist-and-mkdirp-1.2.8
dependabot/npm_and_yarn/qs-and-express-6.11.0
excluir_projeto_submetido
updates_mar
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/Http/Controllers/AdministradorController.php
+12
-2
app/Http/Controllers/AdministradorController.php
resources/views/administrador/analisarProposta.blade.php
+12
-10
resources/views/administrador/analisarProposta.blade.php
resources/views/administrador/selecionarAvaliadores.blade.php
+11
-9
...urces/views/administrador/selecionarAvaliadores.blade.php
with
35 additions
and
21 deletions
+35
-21
app/Http/Controllers/AdministradorController.php
View file @
efb6d9ce
...
...
@@ -33,6 +33,8 @@ use Illuminate\Support\Facades\Storage;
use
Illuminate\Support\Str
;
use
Illuminate\Validation\Rule
;
use
PDF
;
use
DB
;
class
AdministradorController
extends
Controller
{
...
...
@@ -639,8 +641,11 @@ class AdministradorController extends Controller
$grandeAreas
=
GrandeArea
::
orderBy
(
'nome'
)
->
get
();
$avalSelecionados
=
$evento
->
avaliadors
;
$avalNaoSelecionadosId
=
$evento
->
avaliadors
->
pluck
(
'id'
);
$avaliadores
=
Avaliador
::
whereNotIn
(
'id'
,
$avalNaoSelecionadosId
)
->
get
();
$trabalhos
=
$evento
->
trabalhos
->
whereNotIn
(
'status'
,
'rascunho'
);
$avaliadores
=
Avaliador
::
join
(
'naturezas_avaliadors'
,
'avaliadors.id'
,
'='
,
'naturezas_avaliadors.avaliador_id'
)
->
whereNotIn
(
'avaliadors.id'
,
$avalNaoSelecionadosId
)
->
where
(
'naturezas_avaliadors.natureza_id'
,
$evento
->
natureza_id
)
->
get
();
if
((
Auth
::
user
()
->
id
!=
$coordenador_id
->
user_id
)
&&
(
$user
->
tipo
!=
'administrador'
))
{
return
redirect
()
->
back
();
...
...
@@ -958,12 +963,17 @@ class AdministradorController extends Controller
$avaliador
->
area
()
->
associate
(
$area
);
$avaliador
->
user
()
->
associate
(
$user
);
$avaliador
->
eventos
()
->
attach
(
$evento
);
if
(
$evento
->
natureza_id
==
3
){
$avaliador
->
naturezas
()
->
sync
(
$evento
->
natureza_id
);
}
$user
->
save
();
$avaliador
->
save
();
}
else
{
$avaliador
=
$user
->
avaliadors
;
$avaliador
->
eventos
()
->
attach
(
$evento
);
if
(
$evento
->
natureza_id
==
3
){
$avaliador
->
naturezas
()
->
sync
(
$evento
->
natureza_id
);
}
$user
->
save
();
$avaliador
->
save
();
}
...
...
This diff is collapsed.
Click to expand it.
resources/views/administrador/analisarProposta.blade.php
View file @
efb6d9ce
...
...
@@ -1584,16 +1584,18 @@
</select>
</div>
<div class="
form
-
group
">
<label for="
exampleFormControlSelect1
">Instituição <span
style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<select class="
form
-
control
" name="
instituicao
" id="
membro
" required
onchange="
mostrarDiv
(
this
)
">
<option value="" disabled>-- Selecione a instituição --</option>
<option value="
ufape
">Universidade Federal do Agreste de Pernambuco</option>
<option value="
outra
">Outra</option>
</select>
</div>
@if(
$evento->natureza_id
!= 3)
<div class="
form
-
group
">
<label for="
exampleFormControlSelect1
">Instituição <span
style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<select class="
form
-
control
" name="
instituicao
" id="
membro
" required
onchange="
mostrarDiv
(
this
)
">
<option value="" disabled>-- Selecione a instituição --</option>
<option value="
ufape
">Universidade Federal do Agreste de Pernambuco</option>
<option value="
outra
">Outra</option>
</select>
</div>
@endif
<div class="
form
-
group
" id="
div
-
outra
"
style="
@
if
(
old
(
'instituicao'
)
!=
null
&&
old
(
'instituicao'
)
==
"outra"
)
display
:
block
;
@
else
display
:
none
;
@
endif
">
...
...
This diff is collapsed.
Click to expand it.
resources/views/administrador/selecionarAvaliadores.blade.php
View file @
efb6d9ce
...
...
@@ -272,15 +272,17 @@
<option value="
avaliador
" >Avaliador</option>
</select>
</div>
<div class="
form
-
group
">
<label for="
exampleFormControlSelect1
">Instituição <span style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<select class="
form
-
control
" name="
instituicao
" id="
membro
" required onchange="
mostrarDiv
(
this
)
">
<option value="" disabled>-- Selecione a instituição --</option>
<option value="
ufape
" >Universidade Federal do Agreste de Pernambuco</option>
<option value="
outra
" >Outra</option>
</select>
</div>
@if(
$evento->natureza_id
!= 3)
<div class="
form
-
group
">
<label for="
exampleFormControlSelect1
">Instituição <span style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<select class="
form
-
control
" name="
instituicao
" id="
membro
" required onchange="
mostrarDiv
(
this
)
">
<option value="" disabled>-- Selecione a instituição --</option>
<option value="
ufape
" >Universidade Federal do Agreste de Pernambuco</option>
<option value="
outra
" >Outra</option>
</select>
</div>
@endif
<div class="
form
-
group
" id="
div
-
outra
" style="
@
if
(
old
(
'instituicao'
)
!=
null
&&
old
(
'instituicao'
)
==
"outra"
)
display
:
block
;
@
else
display
:
none
;
@
endif
">
<label for="
outra
">{{ __('Digite o nome da instituição') }}<span style="
color
:
red
;
font
-
weight
:
bold
;
"> *</span></label>
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help