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
pad-upe
Commits
515ed357
Commit
515ed357
authored
Jul 06, 2022
by
Abraão Barbosa
Browse files
atualização da pagina de edição de diretor
parent
c91c35f5
Changes
6
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/DiretorController.php
View file @
515ed357
...
...
@@ -2,7 +2,7 @@
namespace
App\Http\Controllers
;
use
App\Models\
Unidade
;
use
App\Models\
Campus
;
use
App\Models\User
;
use
App\Models\Util\MenuItemsAdmin
;
use
Illuminate\Http\Request
;
...
...
@@ -82,7 +82,7 @@ class DiretorController extends Controller
$user
=
User
::
findOrFail
(
$id
);
return
view
(
'diretor.update'
,
[
'index_menu'
=>
MenuItemsAdmin
::
DIRETORES
,
'
unidades'
=>
Unidade
::
all
(),
'
campus'
=>
Campus
::
all
(),
'user'
=>
$user
,
]);
}
...
...
public/css/dashboard.css
View file @
515ed357
:root
{
--main-bg-color
:
pink
;
:root
{
--main-bg-color
:
#dfdfdf
;
--main-bg-light-color
:
#f7f7f7
;
--main-border-grey-color
:
#dee2e6
;
--main-default-link-color
:
#2e4363
;
--main-success-color
:
#0d6efd
;
--main-danger-color
:
#c43c3c
;
--main-warning-color
:
#dacc53
;
}
*
{
*
{
font-family
:
"Electrolize"
,
sans-serif
;
}
...
...
@@ -13,82 +19,110 @@
width
:
100%
;
padding
:
18px
6%
10px
6%
;
margin
:
0
0
30px
0
;
border-bottom
:
1px
solid
#dee2e6
!important
;
border-bottom
:
1px
solid
var
(
--main-border-grey-color
)
!important
;
}
body
{
body
{
position
:
relative
;
}
/*Main header - top*/
header
{
background-color
:
#dfdfdf
;
background-color
:
var
(
--main-bg-color
)
;
margin-bottom
:
30px
;
-webkit-box-shadow
:
0px
1px
6px
0px
rgba
(
50
,
50
,
50
,
0.5
);
-moz-box-shadow
:
0px
1px
6px
0px
rgba
(
50
,
50
,
50
,
0.5
);
box-shadow
:
0px
1px
6px
0px
rgba
(
50
,
50
,
50
,
0.5
);
position
:
sticky
!important
;
position
:
sticky
!important
;
}
header
.header-left-side
{
background-color
:
#f7f7f7
;
background-color
:
var
(
--main-bg-light-color
)
;
padding
:
1em
3em
1em
15vh
;
background
:
linear-gradient
(
110deg
,
#f7f7f7
90%
,
#dfdfdf
0%
);
background
:
linear-gradient
(
110deg
,
var
(
--main-bg-light-color
)
90%
,
var
(
--main-bg-color
)
0%
);
}
header
.header-right-side
{
padding-right
:
15vh
;
}
/***************************/
/* Nav bar and content main*/
.main-container
{
display
:
flex
;
flex-direction
:
row
;
}
/**************/
/*content main*/
main
{
min-height
:
70vh
;
margin-right
:
15vh
!important
;
/* max-height: 70vh; */
margin-right
:
15vh
!important
;
}
/****************/
/* Left nav bar */
nav
{
margin-left
:
13vh
;
margin-right
:
1em
;
border-radius
:
0.5em
;
border
:
2px
solid
#dee2e6
!important
;
border
:
2px
solid
var
(
--main-border-grey-color
)
!important
;
padding
:
.5em
;
}
nav
ul
li
a
{
color
:
#17223b
;
color
:
var
(
--main-default-link-color
)
;
font-size
:
large
;
}
nav
ul
.active
{
background-color
:
#dfdfdf
!important
;
color
:
#17223b
!important
;
background-color
:
var
(
--main-bg-color
)
!important
;
color
:
var
(
--main-default-link-color
)
!important
;
font-weight
:
bold
;
border-left
:
solid
3px
#0d6efd
;
/* border: 1px solid #007bff; */
border-left
:
solid
3px
var
(
--main-success-color
);
}
nav
.content-user-info
{
font-weight
:
bold
;
}
nav
.custom-nav-link
{
nav
.custom-nav-link
{
display
:
block
;
padding
:
.5rem
1rem
;
color
:
#2e4363
;
color
:
var
(
--main-default-link-color
)
;
text-decoration
:
none
;
border-radius
:
.2em
;
transition
:
color
.15s
ease-in-out
,
background-color
.15s
ease-in-out
,
border-color
.15s
ease-in-out
;
transition
:
color
.15s
ease-in-out
,
background-color
.15s
ease-in-out
,
border-color
.15s
ease-in-out
;
}
nav
.custom-nav-link
:hover
{
color
:
#0d6efd
;
nav
.custom-nav-link
:hover
{
color
:
var
(
--main-success-color
)
;
}
/*
.custom-btn-create:hover {
background-color: #f1f1f1 !important;
color: var(--main-success-color) !important;
border-bottom: solid 3px var(--main-success-color);
}*/
/*************************/
@media
(
min-width
:
768px
)
{
.bd-placeholder-img-lg
{
font-size
:
3.5rem
;
}
}
}
\ No newline at end of file
resources/views/components/buttons/btn-create.blade.php
View file @
515ed357
<a
class=
"btn {{$class}}"
href=
"{{$route}}"
id=
"{{$id}}"
>
<a
class=
"btn
btn-outline-success
{{$class}}"
href=
"{{$route}}"
id=
"{{$id}}"
>
<i
class=
"bi bi-plus-circle"
></i>
{{$content}}
</a>
resources/views/coordenador/update.blade.php
View file @
515ed357
{{
dd
(
$user
)
}}
\ No newline at end of file
resources/views/diretor/update.blade.php
View file @
515ed357
@
extends
(
'layouts.main'
)
@
section
(
'title'
,
'Atulizar Perfil'
)
@
section
(
'title'
,
'Atu
a
lizar Perfil'
)
@
section
(
'header'
)
@
include
(
'layouts.header'
,
[
...
...
@@ -17,13 +17,13 @@
@
section
(
'body'
)
@
include
(
'components.alerts'
)
{{
dd
(
$user
)
}}
<
div
class
=
"d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"
>
<
h1
class
=
"h2"
>
Atualizar
Perfil
</
h1
>
<
h1
class
=
"h2"
>
Atualizar
Perfil
</
h1
>
</
div
>
<
div
class
=
"content"
>
<
form
class
=
""
method
=
"post"
action
=
"{{ route('diretor_update',
$user->id
) }}"
>
<
form
class
=
""
method
=
"post"
action
=
"{{ route('diretor_update',
$user->id
) }}"
>
@
csrf
@
method
(
'POST'
)
...
...
@@ -57,13 +57,13 @@
<
div
class
=
"form-group"
>
<
label
for
=
"selectUnidade"
>
Unidade
</
label
>
<
select
class
=
"
custo
m-select
mr-sm-2
"
name
=
"
unidade
_id"
id
=
"select
Unidade
"
<
select
class
=
"
for
m-select
form-select
"
name
=
"
campus
_id"
id
=
"select
Campus
"
aria
-
label
=
"Default select example"
>
<
option
value
=
""
disabled
selected
hidden
>
selecione
...
</
option
>
@
foreach
(
$
unidades
as
$unidade
)
<
option
value
=
"{{
$unidade->id
}}"
{{
$user
->
unidade_id
==
$unidade
->
id
?
'selected'
:
''
}}
>
{{
$user
->
unidade_id
}}
-
{{
$unidade
->
id
}}
</
option
>
@
foreach
(
$
campus
as
$camp
)
<
option
value
=
"{{
$camp->id
}}"
{{
$user
->
campus_id
==
$camp
->
id
?
'selected'
:
''
}}
>
{{
$camp
->
name
}}
</
option
>
@
endforeach
</
select
>
@
error
(
'unidade_id'
)
...
...
@@ -71,21 +71,29 @@
@
enderror
</
div
>
{{
--
<
div
class
=
"row"
>
<
div
class
=
"col-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"password"
>
Senha
</
label
>
<
input
type
=
"password"
class
=
"form-control"
name
=
"password"
id
=
"password"
placeholder
=
"Senha"
value
=
""
>
<
small
id
=
"password_information"
class
=
"form-text text-muted"
>
{{
--
--
}}
</
small
>
@
error
(
'password'
)
<
span
class
=
"text-danger"
>
{{
$message
}}
</
span
>
@
enderror
</
div
>
<
div
class
=
"form-check mt-3"
>
<
input
class
=
"form-check-input"
type
=
"checkbox"
value
=
""
name
=
"alter-password"
id
=
"alter-password"
>
<
label
class
=
"form-check-label"
for
=
"flexCheckDefault"
>
Alterar
senha
</
label
>
</
div
>
<
div
class
=
"col-6"
>
<
div
class
=
"form-group"
>
<
label
for
=
"password"
>
Senha
</
label
>
<
input
type
=
"password"
class
=
"form-control"
name
=
"password"
id
=
"password"
placeholder
=
"Senha"
value
=
""
disabled
>
<
small
id
=
"password_information"
class
=
"form-text text-muted"
>
{{
--
--
}}
</
small
>
@
error
(
'password'
)
<
span
class
=
"text-danger"
>
{{
$message
}}
</
span
>
@
enderror
</
div
>
</
div
>
--
}}
</
div
>
<
div
class
=
"d-flex justify-content-end"
>
<
button
class
=
"btn btn-success"
type
=
"submit"
>
Atualizar
</
button
>
<
div
class
=
"form-group"
>
<
div
class
=
"d-flex justify-content-end mt-3"
>
<
button
class
=
"btn btn-success"
type
=
"submit"
>
Atualizar
</
button
>
</
div
>
</
div
>
</
form
>
</
div
>
...
...
resources/views/layouts/user-jquery/jquery_admin.blade.php
View file @
515ed357
...
...
@@ -68,6 +68,14 @@ $("#btn-update-perfil").on('click', () => {
$
(
"
#update-perfil-tab
"
).
click
()
})
// Update director and coordinators profile from admin page
$
(
'
#alter-password
'
).
on
(
'
change
'
,
function
()
{
if
(
$
(
'
#alter-password
'
).
is
(
'
:checked
'
)
){
$
(
"
#password
"
).
removeAttr
(
'
disabled
'
);
}
else
{
$
(
"
#password
"
).
attr
(
'
disabled
'
,
'
disabled
'
);
}
});
// $('#')
</script>
...
...
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