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
d5962a6a
Commit
d5962a6a
authored
Nov 21, 2022
by
unknown
Browse files
retirar instituição no envio de convite para ser avaliador
parent
67855838
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/AdministradorController.php
View file @
d5962a6a
...
@@ -963,12 +963,17 @@ class AdministradorController extends Controller
...
@@ -963,12 +963,17 @@ class AdministradorController extends Controller
$avaliador
->
area
()
->
associate
(
$area
);
$avaliador
->
area
()
->
associate
(
$area
);
$avaliador
->
user
()
->
associate
(
$user
);
$avaliador
->
user
()
->
associate
(
$user
);
$avaliador
->
eventos
()
->
attach
(
$evento
);
$avaliador
->
eventos
()
->
attach
(
$evento
);
if
(
$evento
->
natureza_id
==
3
){
$avaliador
->
naturezas
()
->
sync
(
$evento
->
natureza_id
);
}
$user
->
save
();
$user
->
save
();
$avaliador
->
save
();
$avaliador
->
save
();
}
else
{
}
else
{
$avaliador
=
$user
->
avaliadors
;
$avaliador
=
$user
->
avaliadors
;
$avaliador
->
eventos
()
->
attach
(
$evento
);
$avaliador
->
eventos
()
->
attach
(
$evento
);
if
(
$evento
->
natureza_id
==
3
){
$avaliador
->
naturezas
()
->
sync
(
$evento
->
natureza_id
);
}
$user
->
save
();
$user
->
save
();
$avaliador
->
save
();
$avaliador
->
save
();
}
}
...
...
resources/views/administrador/analisarProposta.blade.php
View file @
d5962a6a
...
@@ -1577,16 +1577,18 @@
...
@@ -1577,16 +1577,18 @@
</select>
</select>
</div>
</div>
<div class="
form
-
group
">
@if(
$evento->natureza_id
!= 3)
<label for="
exampleFormControlSelect1
">Instituição <span
<div class="
form
-
group
">
style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<label for="
exampleFormControlSelect1
">Instituição <span
<select class="
form
-
control
" name="
instituicao
" id="
membro
" required
style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
onchange="
mostrarDiv
(
this
)
">
<select class="
form
-
control
" name="
instituicao
" id="
membro
" required
<option value="" disabled>-- Selecione a instituição --</option>
onchange="
mostrarDiv
(
this
)
">
<option value="
ufape
">Universidade Federal do Agreste de Pernambuco</option>
<option value="" disabled>-- Selecione a instituição --</option>
<option value="
outra
">Outra</option>
<option value="
ufape
">Universidade Federal do Agreste de Pernambuco</option>
</select>
<option value="
outra
">Outra</option>
</div>
</select>
</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
">
...
...
resources/views/administrador/selecionarAvaliadores.blade.php
View file @
d5962a6a
...
@@ -272,15 +272,17 @@
...
@@ -272,15 +272,17 @@
<option value="
avaliador
" >Avaliador</option>
<option value="
avaliador
" >Avaliador</option>
</select>
</select>
</div>
</div>
<div class="
form
-
group
">
@if(
$evento->natureza_id
!= 3)
<label for="
exampleFormControlSelect1
">Instituição <span style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<div class="
form
-
group
">
<select class="
form
-
control
" name="
instituicao
" id="
membro
" required onchange="
mostrarDiv
(
this
)
">
<label for="
exampleFormControlSelect1
">Instituição <span style="
color
:
red
;
font
-
weight
:
bold
">*</span></label>
<option value="" disabled>-- Selecione a instituição --</option>
<select class="
form
-
control
" name="
instituicao
" id="
membro
" required onchange="
mostrarDiv
(
this
)
">
<option value="
ufape
" >Universidade Federal do Agreste de Pernambuco</option>
<option value="" disabled>-- Selecione a instituição --</option>
<option value="
outra
" >Outra</option>
<option value="
ufape
" >Universidade Federal do Agreste de Pernambuco</option>
</select>
<option value="
outra
" >Outra</option>
</div>
</select>
</div>
@endif
<div class="
form
-
group
" id="
div
-
outra
" style="
@
if
(
old
(
'instituicao'
)
!=
null
&&
old
(
'instituicao'
)
==
"outra"
)
display
:
block
;
@
else
display
:
none
;
@
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>
<label for="
outra
">{{ __('Digite o nome da instituição') }}<span style="
color
:
red
;
font
-
weight
:
bold
;
"> *</span></label>
...
...
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