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
1febc555
"resources/views/evento/backupForm.blade.php" did not exist on "fb170a7694873dd072484f17282475ee09da99df"
Commit
1febc555
authored
May 14, 2021
by
Carlos André
Browse files
ajustes de fluxo
parent
b8e96d8a
Changes
4
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/EventoController.php
View file @
1febc555
...
...
@@ -199,7 +199,7 @@ class EventoController extends Controller
// Mail::to($user->email)
// ->send(new EventoCriado($user, $subject));
return
redirect
()
->
route
(
'
coord.home'
);
return
redirect
()
->
route
(
'
admin.editais'
)
->
with
([
'mensagem'
=>
'Edital criado com sucesso!'
]
);
}
public
function
armazenarAnexosTemp
(
Request
$request
){
...
...
@@ -403,7 +403,8 @@ class EventoController extends Controller
$evento
->
update
();
$eventos
=
Evento
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'administrador.editais'
,[
'eventos'
=>
$eventos
]);
return
redirect
(
route
(
'admin.editais'
)
)
->
with
([
'mensagem'
=>
'Edital salvo com sucesso!'
,
'eventos'
=>
$eventos
]);
}
/**
...
...
app/Http/Controllers/HomeController.php
View file @
1febc555
...
...
@@ -6,6 +6,7 @@ use Illuminate\Http\Request;
use
Auth
;
use
Illuminate\Support\Facades\Log
;
use
Illuminate\Support\Facades\Storage
;
use
App\Evento
;
class
HomeController
extends
Controller
{
...
...
@@ -29,7 +30,9 @@ class HomeController extends Controller
$eventos
=
\
App\Evento
::
all
();
if
(
Auth
::
user
()
->
administradors
!=
null
){
return
view
(
'administrador.index'
);
$eventos
=
Evento
::
orderBy
(
'nome'
)
->
get
();
return
view
(
'administrador.editais'
)
->
with
([
'eventos'
=>
$eventos
]);
}
else
if
(
Auth
::
user
()
->
AdministradorResponsavel
!=
null
)
{
return
view
(
'administradorResponsavel.index'
);
...
...
resources/views/administrador/editais.blade.php
View file @
1febc555
...
...
@@ -28,6 +28,17 @@
</
div
>
</
div
>
<
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
<
div
class
=
"row"
>
<
div
class
=
"col-md-12"
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
tr
>
...
...
@@ -110,6 +121,8 @@
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
</
div
>
...
...
resources/views/layouts/app.blade.php
View file @
1febc555
...
...
@@ -145,9 +145,12 @@
</form>
</div>
<a
href=
"{{ route('register') }}"
class=
"btn navbar-text btn-azul-destaque negrito"
style=
"color: rgb(0, 140, 255);"
>
{{ __('Cadastre-se') }}
</a>
@else
@if(Auth::user()->administradors != null)
<a
href=
"{{route('admin.editais')}}"
class=
"btn navbar-text negrito "
style=
"color: rgb(0, 140, 255);"
>
Home
</a>
@else
<a
href=
"{{route('coord.home')}}"
class=
"btn navbar-text negrito "
style=
"color: rgb(0, 140, 255);"
>
Home
</a>
@endif
<a
id=
"navbarDropdown"
class=
"btn navbar-text negrito dropdown-toggle"
style=
"color: rgb(0, 140, 255);"
href=
"#"
role=
"button"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
v-pre
>
{{ Auth::user()->name }}
<span
class=
"caret"
></span>
</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