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
a01d19d0
Commit
a01d19d0
authored
2 years ago
by
Lucas Henrique
Browse files
Options
Download
Plain Diff
Merge branch 'develop' into feature/removendo-obrigatoriedade-discente
parents
f350db36
b780d76a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
app/Http/Controllers/TrabalhoController.php
+5
-1
app/Http/Controllers/TrabalhoController.php
app/Trabalho.php
+1
-0
app/Trabalho.php
database/migrations/2022_11_08_162425_add_conflitos_interesse_to_trabalhos_table.php
+32
-0
..._08_162425_add_conflitos_interesse_to_trabalhos_table.php
resources/views/administrador/analisarProposta.blade.php
+7
-0
resources/views/administrador/analisarProposta.blade.php
resources/views/evento/formulario/proponente.blade.php
+15
-3
resources/views/evento/formulario/proponente.blade.php
resources/views/projeto/editaFormulario/proponente.blade.php
+15
-3
resources/views/projeto/editaFormulario/proponente.blade.php
resources/views/projeto/formularioVisualizar/proponente.blade.php
+11
-0
...s/views/projeto/formularioVisualizar/proponente.blade.php
resources/views/projeto/formularioVisualizar/proponente2.blade.php
+12
-0
.../views/projeto/formularioVisualizar/proponente2.blade.php
with
98 additions
and
7 deletions
+98
-7
app/Http/Controllers/TrabalhoController.php
View file @
a01d19d0
...
@@ -178,7 +178,7 @@ class TrabalhoController extends Controller
...
@@ -178,7 +178,7 @@ class TrabalhoController extends Controller
$trabalho
->
status
=
'Rascunho'
;
$trabalho
->
status
=
'Rascunho'
;
$stringKeys
=
[
'titulo'
,
'linkGrupoPesquisa'
,
'linkLattesEstudante'
,
'pontuacaoPlanilha'
,
'anexoProjeto'
,
$stringKeys
=
[
'titulo'
,
'linkGrupoPesquisa'
,
'linkLattesEstudante'
,
'pontuacaoPlanilha'
,
'anexoProjeto'
,
'anexoPlanilhaPontuacao'
,
'anexoLattesCoordenador'
];
'anexoPlanilhaPontuacao'
,
'anexoLattesCoordenador'
,
'conflitosInteresse'
];
$intKeys
=
[
'grande_area_id'
,
'area_id'
,
'sub_area_id'
,
'coordenador_id'
];
$intKeys
=
[
'grande_area_id'
,
'area_id'
,
'sub_area_id'
,
'coordenador_id'
];
$trabalho
->
fill
(
$trabalho
->
fill
(
...
@@ -205,6 +205,9 @@ class TrabalhoController extends Controller
...
@@ -205,6 +205,9 @@ class TrabalhoController extends Controller
if
(
!
(
is_null
(
$request
->
linkGrupo
))){
if
(
!
(
is_null
(
$request
->
linkGrupo
))){
$trabalho
->
linkGrupoPesquisa
=
$request
->
linkGrupo
;
$trabalho
->
linkGrupoPesquisa
=
$request
->
linkGrupo
;
}
}
if
(
!
(
is_null
(
$request
->
conflitosInteresse
))){
$trabalho
->
conflitosInteresse
=
$request
->
conflitosInteresse
;
}
//Anexos do projeto
//Anexos do projeto
...
@@ -1218,6 +1221,7 @@ class TrabalhoController extends Controller
...
@@ -1218,6 +1221,7 @@ class TrabalhoController extends Controller
$projeto
->
evento_id
=
$request
->
editalId
;
$projeto
->
evento_id
=
$request
->
editalId
;
$projeto
->
status
=
'submetido'
;
$projeto
->
status
=
'submetido'
;
$projeto
->
proponente_id
=
$proponente
->
id
;
$projeto
->
proponente_id
=
$proponente
->
id
;
$projeto
->
conflitosInteresse
=
$request
->
conflitosInteresse
;
// Salvando anexos no storage
// Salvando anexos no storage
$projeto
->
save
();
$projeto
->
save
();
...
...
This diff is collapsed.
Click to expand it.
app/Trabalho.php
View file @
a01d19d0
...
@@ -21,6 +21,7 @@ class Trabalho extends Model
...
@@ -21,6 +21,7 @@ class Trabalho extends Model
'linkLattesEstudante'
,
'linkLattesEstudante'
,
'comentario'
,
'comentario'
,
'modalidade'
,
'modalidade'
,
'conflitosInteresse'
,
'anexoDecisaoCONSU'
,
'anexoDecisaoCONSU'
,
'anexoAutorizacaoComiteEtica'
,
'anexoAutorizacaoComiteEtica'
,
...
...
This diff is collapsed.
Click to expand it.
database/migrations/2022_11_08_162425_add_conflitos_interesse_to_trabalhos_table.php
0 → 100644
View file @
a01d19d0
<?php
use
Illuminate\Database\Migrations\Migration
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Support\Facades\Schema
;
class
AddConflitosInteresseToTrabalhosTable
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'trabalhos'
,
function
(
Blueprint
$table
)
{
$table
->
text
(
'conflitosInteresse'
)
->
nullable
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'trabalhos'
,
function
(
Blueprint
$table
)
{
$table
->
dropColumn
(
'conflitosInteresse'
);
});
}
}
This diff is collapsed.
Click to expand it.
resources/views/administrador/analisarProposta.blade.php
View file @
a01d19d0
...
@@ -140,6 +140,13 @@
...
@@ -140,6 +140,13 @@
<
a
style
=
"color: #4D4D4D;"
>
{{
$trabalho
->
modalidade
}}
</
a
>
<
a
style
=
"color: #4D4D4D;"
>
{{
$trabalho
->
modalidade
}}
</
a
>
</
div
>
</
div
>
@
endif
@
endif
@
if
(
$trabalho
->
conflitosInteresse
!=
null
)
<
div
class
=
"col-md-12"
>
<
br
>
<
b
style
=
"color: #4D4D4D;"
>
Conflitos
de
Interesse
:
</
b
>
<
a
style
=
"color: #4D4D4D;"
>
{{
$trabalho
->
conflitosInteresse
}}
</
a
>
</
div
>
@
endif
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/evento/formulario/proponente.blade.php
View file @
a01d19d0
...
@@ -85,9 +85,21 @@
...
@@ -85,9 +85,21 @@
</div>
</div>
@endif
@endif
<div
class=
"col-md-2"
>
<br>
<label
for=
"conflitosInteresse"
class=
"col-form-label font-tam"
style=
"font-weight: bold"
>
{{ __('Conflitos de interesse: ') }}
</label>
</div>
<div
class=
"col-md-10"
>
<br>
<textarea
class=
"form-control @error('conflitosInteresse') is-invalid @enderror"
autocomplete=
"conflitosInteresse"
autofocus
id=
"conflitosInteresse"
name=
"conflitosInteresse"
rows=
"4"
>
{{ old('conflitosInteresse') }}
</textarea>
@error('conflitosInteresse')
<span
class=
"invalid-feedback"
role=
"alert"
>
<strong>
{{ $message }}
</strong>
</span>
@enderror
</div>
</div>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
resources/views/projeto/editaFormulario/proponente.blade.php
View file @
a01d19d0
...
@@ -96,9 +96,21 @@
...
@@ -96,9 +96,21 @@
</div>
</div>
@endif
@endif
<div
class=
"col-md-2"
>
<br>
<label
for=
"conflitosInteresse"
class=
"col-form-label font-tam"
style=
"font-weight: bold"
>
{{ __('Conflitos de interesse: ') }}
</label>
</div>
<div
class=
"col-md-10"
>
<br>
<textarea
class=
"form-control @error('conflitosInteresse') is-invalid @enderror"
autocomplete=
"conflitosInteresse"
autofocus
id=
"conflitosInteresse"
name=
"conflitosInteresse"
rows=
"4"
>
{{ $projeto->conflitosInteresse }}
</textarea>
@error('conflitosInteresse')
<span
class=
"invalid-feedback"
role=
"alert"
>
<strong>
{{ $message }}
</strong>
</span>
@enderror
</div>
</div>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
resources/views/projeto/formularioVisualizar/proponente.blade.php
View file @
a01d19d0
...
@@ -49,6 +49,17 @@
...
@@ -49,6 +49,17 @@
</span>
</span>
@enderror
@enderror
</div>
</div>
@if ($projeto->conflitosInteresse != null
&&
(Auth::user()->tipo == 'administrador' ||
Auth::user()->tipo == 'administradorResponsavel' ||
Auth::user()->tipo == 'coordenador'))
<div
class=
"form-group col-md-6"
>
<label
for=
"conflitosInteresse"
>
Conflitos de interesse:
</label>
<textarea
class=
"form-control @error('conflitosInteresse') is-invalid @enderror"
name=
"conflitosInteresse"
rows=
"4"
disabled
>
{{ $projeto->conflitosInteresse }}
</textarea>
</div>
@endif
</div>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
resources/views/projeto/formularioVisualizar/proponente2.blade.php
View file @
a01d19d0
...
@@ -76,6 +76,18 @@
...
@@ -76,6 +76,18 @@
</div>
</div>
@endif
@endif
@if ($projeto->conflitosInteresse != null
&&
(Auth::user()->tipo == 'administrador' ||
Auth::user()->tipo == 'administradorResponsavel' ||
Auth::user()->tipo == 'coordenador' ||
Auth::user()->id == $projeto->proponente->user->id))
<div
class=
"col-md-12"
>
<br>
<b
style=
"color: #4D4D4D;"
>
Conflitos de Interesse:
</b>
<a
style=
"color: #4D4D4D;"
>
{{ $projeto->conflitosInteresse }}
</a>
</div>
@endif
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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