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
3e48f4d1
Unverified
Commit
3e48f4d1
authored
Jul 05, 2022
by
GuilhermeGz
Committed by
GitHub
Jul 05, 2022
Browse files
Merge pull request #440 from antonioDurval/master
Correções de erro e atualizações da semana
parents
b2677c52
de299588
Changes
6
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/ProponenteController.php
View file @
3e48f4d1
...
...
@@ -110,12 +110,16 @@ class ProponenteController extends Controller
}
public
function
projetosEdital
(
$id
)
{
$edital
=
Evento
::
find
(
$id
);
$projetos
=
Trabalho
::
where
(
'evento_id'
,
'='
,
$id
)
->
where
(
'proponente_id'
,
Auth
::
user
()
->
proponentes
->
id
)
->
orderBy
(
'titulo'
)
->
paginate
(
10
);
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
return
view
(
'proponente.projetosEdital'
)
->
with
([
'edital'
=>
$edital
,
'projetos'
=>
$projetos
,
'hoje'
=>
$hoje
]);
$edital
=
Evento
::
find
(
$id
);
if
(
Auth
::
user
()
->
proponentes
!=
null
){
$projetos
=
Trabalho
::
where
(
'evento_id'
,
'='
,
$id
)
->
where
(
'proponente_id'
,
Auth
::
user
()
->
proponentes
->
id
)
->
orderBy
(
'titulo'
)
->
paginate
(
10
);
$hoje
=
Carbon
::
today
(
'America/Recife'
);
$hoje
=
$hoje
->
toDateString
();
return
view
(
'proponente.projetosEdital'
)
->
with
([
'edital'
=>
$edital
,
'projetos'
=>
$projetos
,
'hoje'
=>
$hoje
]);
}
else
{
return
redirect
()
->
route
(
'inicial'
);
}
}
public
function
solicitarDesligamento
(
Request
$request
){
...
...
resources/views/administrador/analisarProposta.blade.php
View file @
3e48f4d1
...
...
@@ -991,13 +991,13 @@
<
input
class
=
"col-md-1"
type
=
"radio"
id
=
"aprovado"
name
=
"statusProp"
value
=
"aprovado"
required
@
if
(
$trabalho
->
status
==
"aprovado"
)
checked
@
endif
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Recomendad
o
</
a
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Recomendad
a
</
a
>
<
br
>
<
input
class
=
"col-md-1"
type
=
"radio"
id
=
"reprovado"
name
=
"statusProp"
value
=
"reprovado"
required
@
if
(
$trabalho
->
status
==
"reprovado"
)
checked
@
endif
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Não
Recomendad
o
</
a
>
<
a
style
=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Não
Recomendad
a
</
a
>
</
div
>
</
div
>
...
...
@@ -1575,7 +1575,7 @@
document
.
getElementById
(
"aprovado"
)
.
onclick
=
function
()
{
var
s
=
document
.
getElementById
(
"comentario"
);
s
.
innerHTML
=
'Proposta cumpriu todos os requisitos estabelecidos no edital'
;
s
.
innerHTML
=
'Proposta cumpriu todos os requisitos estabelecidos no edital
.
'
;
};
document
.
getElementById
(
"reprovado"
)
.
onclick
=
function
()
{
var
s
=
document
.
getElementById
(
"comentario"
);
...
...
resources/views/projeto/editaFormulario/proponente.blade.php
View file @
3e48f4d1
...
...
@@ -22,6 +22,7 @@
<div
class=
"col-md-11"
>
<br>
<input
class=
"form-control @error('linkLattesEstudante') is-invalid @enderror"
type=
"text"
name=
"linkLattesEstudante"
readonly=
"readonly"
@
if
(
Auth
()
-
>
user()->proponentes != null
&&
Auth()->user()->proponentes->linkLattes != null)
value="{{ Auth()->user()->proponentes->linkLattes }}"
@else
...
...
resources/views/projeto/formularioVisualizar/resultado2.blade.php
View file @
3e48f4d1
...
...
@@ -16,12 +16,12 @@
<div
class=
"col-md-3"
style=
"margin-top: 15px"
>
<input
class=
"col-md-1"
type=
"radio"
id=
"aprovado"
name=
"statusProp"
value=
"aprovado"
required
disabled
@
if
($
projeto-
>
status=="aprovado") checked @endif>
<a
style=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Recomendad
o
</a>
<a
style=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Recomendad
a
</a>
<br>
<input
class=
"col-md-1"
type=
"radio"
id=
"reprovado"
name=
"statusProp"
value=
"reprovado"
required
disabled
@
if
($
projeto-
>
status=="reprovado") checked @endif>
<a
style=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Não Recomendad
o
</a>
<a
style=
"color: #234B8B; font-weight: bold;font-size: 18px;"
>
Não Recomendad
a
</a>
</div>
</div>
</div>
...
...
resources/views/proponente/projetos.blade.php
View file @
3e48f4d1
...
...
@@ -87,12 +87,13 @@
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('trabalho.editar', ['id' =>
$projeto->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center;"
>
Editar
</
a
>
<
hr
class
=
"dropdown-hr"
>
@
if
(
$hoje
<=
$projeto
->
evento
->
inicioProjeto
)
<
a
href
=
"{{ route('trabalho.editar', ['id' =>
$projeto->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center;"
>
Editar
</
a
>
<
hr
class
=
"dropdown-hr"
>
@
endif
@
if
(
$projeto
->
status
==
'aprovado'
)
<
a
href
=
"{{route('trabalho.trocaParticipante', ['evento_id' =>
$projeto->evento
->id, 'projeto_id' =>
$projeto->id
])}}"
class
=
"dropdown-item"
style
=
"text-align: center;"
>
...
...
resources/views/proponente/projetosEdital.blade.php
View file @
3e48f4d1
...
...
@@ -108,11 +108,14 @@
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
<
div
class
=
"dropdown-menu"
>
@
if
(
$hoje
<=
$edital
->
inicioProjeto
)
<
a
href
=
"{{ route('trabalho.editar', ['id' =>
$projeto->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center;"
>
Editar
</
a
>
<
hr
class
=
"dropdown-hr"
>
@
endif
@
if
(
$projeto
->
status
==
'aprovado'
)
<
a
href
=
"{{route('trabalho.trocaParticipante', ['evento_id' =>
$projeto->evento
->id, 'projeto_id' =>
$projeto->id
])}}"
class
=
"dropdown-item"
style
=
"text-align: center;"
>
Solicitar
Substituições
...
...
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