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
c9288303
Unverified
Commit
c9288303
authored
May 10, 2023
by
José Fernando Mendes da Costa
Committed by
GitHub
May 10, 2023
Browse files
Merge pull request #802 from jofernando/edicao
Edicao somente de rascunho
parents
529aa6fd
9c868d36
Changes
3
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
c9288303
...
...
@@ -505,6 +505,8 @@ class TrabalhoController extends Controller
$projeto
=
Trabalho
::
find
(
$id
);
}
else
{
$projeto
=
Auth
::
user
()
->
proponentes
->
trabalhos
()
->
where
(
'id'
,
$id
)
->
first
();
if
(
$projeto
->
status
!=
'rascunho'
)
return
redirect
()
->
back
()
->
with
(
'mensagem'
,
'Não é possível alterar uma proposta já submetida'
);
}
$proponente
=
Proponente
::
where
(
'user_id'
,
$projeto
->
proponente
->
user_id
)
->
first
();
...
...
resources/views/proponente/projetos.blade.php
View file @
c9288303
...
...
@@ -105,7 +105,7 @@
</
a
>
<
div
class
=
"dropdown-menu"
>
@
if
(
$hoje
<=
$projeto
->
evento
->
fimSubmissao
)
@
if
(
$hoje
<=
$projeto
->
evento
->
fimSubmissao
&&
$projeto
->
status
==
'rascunho'
)
<
a
href
=
"{{ route('trabalho.editar', ['id' =>
$projeto->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center;"
>
Editar
</
a
>
...
...
resources/views/proponente/projetosEdital.blade.php
View file @
c9288303
...
...
@@ -117,7 +117,7 @@
</
a
>
<
div
class
=
"dropdown-menu"
>
@
if
(
$hoje
<=
$edital
->
fimSubmissao
)
@
if
(
$hoje
<=
$edital
->
fimSubmissao
&&
$projeto
->
status
==
'rascunho'
)
<
a
href
=
"{{ route('trabalho.editar', ['id' =>
$projeto->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center;"
>
Editar
</
a
>
...
...
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