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
12906972
Commit
12906972
authored
3 years ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
Adição de editar edital como coordenador
parent
acc5cfea
master
carl-branch
dependabot/composer/dompdf/dompdf-1.2.2
dependabot/composer/guzzlehttp/guzzle-6.5.8
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/loader-utils-and-webpack-cli-1.4.2
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
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/Http/Controllers/EventoController.php
+8
-0
app/Http/Controllers/EventoController.php
resources/views/coordenadorComissao/editais.blade.php
+12
-0
resources/views/coordenadorComissao/editais.blade.php
with
20 additions
and
0 deletions
+20
-0
app/Http/Controllers/EventoController.php
View file @
12906972
...
@@ -376,6 +376,8 @@ class EventoController extends Controller
...
@@ -376,6 +376,8 @@ class EventoController extends Controller
public
function
update
(
Request
$request
,
$id
)
public
function
update
(
Request
$request
,
$id
)
{
{
//dd($request);
//dd($request);
$tipo_usuario
=
Auth
()
->
user
()
->
tipo
;
//dd($tipo_usuario);
$evento
=
Evento
::
find
(
$id
);
$evento
=
Evento
::
find
(
$id
);
$yesterday
=
Carbon
::
yesterday
(
'America/Recife'
);
$yesterday
=
Carbon
::
yesterday
(
'America/Recife'
);
$yesterday
=
$yesterday
->
toDateString
();
$yesterday
=
$yesterday
->
toDateString
();
...
@@ -492,7 +494,13 @@ class EventoController extends Controller
...
@@ -492,7 +494,13 @@ class EventoController extends Controller
$eventos
=
Evento
::
orderBy
(
'nome'
)
->
get
();
$eventos
=
Evento
::
orderBy
(
'nome'
)
->
get
();
if
(
$tipo_usuario
==
'coordenador'
){
return
redirect
(
route
(
'coordenador.editais'
)
)
->
with
([
'mensagem'
=>
'Edital salvo com sucesso!'
,
'eventos'
=>
$eventos
]);
}
return
redirect
(
route
(
'admin.editais'
)
)
->
with
([
'mensagem'
=>
'Edital salvo com sucesso!'
,
'eventos'
=>
$eventos
]);
return
redirect
(
route
(
'admin.editais'
)
)
->
with
([
'mensagem'
=>
'Edital salvo com sucesso!'
,
'eventos'
=>
$eventos
]);
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
resources/views/coordenadorComissao/editais.blade.php
View file @
12906972
...
@@ -12,6 +12,15 @@
...
@@ -12,6 +12,15 @@
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
hr
>
@
if
(
session
(
'mensagem'
))
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
style
=
"margin-top: 30px;"
>
<
div
class
=
"alert alert-success"
>
<
p
>
{{
session
(
'mensagem'
)}}
</
p
>
</
div
>
</
div
>
</
div
>
@
endif
<
table
class
=
"table table-bordered"
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
thead
>
<
tr
>
<
tr
>
...
@@ -35,6 +44,9 @@
...
@@ -35,6 +44,9 @@
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
</
a
>
</
a
>
<
div
class
=
"dropdown-menu"
>
<
div
class
=
"dropdown-menu"
>
<
a
href
=
"{{ route('evento.editar', ['id' =>
$evento->id
]) }}"
class
=
"dropdown-item text-center"
>
Editar
Edital
</
a
>
<
hr
class
=
"dropdown-hr"
>
<
hr
class
=
"dropdown-hr"
>
<
a
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item text-center"
>
<
a
href
=
"{{route('admin.analisar', ['evento_id' =>
$evento->id
])}}"
class
=
"dropdown-item text-center"
>
Visualizar
Projetos
Visualizar
Projetos
...
...
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