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
e119449a
Commit
e119449a
authored
May 22, 2022
by
Abraão Barbosa
Browse files
commit to merge with main branch
parent
9823e9cb
Changes
70
Expand all
Show whitespace changes
Inline
Side-by-side
public/bootstrap-4.1.3/js/bootstrap.js.map
0 → 100644
View file @
e119449a
This diff is collapsed.
Click to expand it.
public/bootstrap-4.1.3/js/bootstrap.min.js
0 → 100644
View file @
e119449a
This diff is collapsed.
Click to expand it.
public/bootstrap-4.1.3/js/bootstrap.min.js.map
0 → 100644
View file @
e119449a
This diff is collapsed.
Click to expand it.
public/css/dashboard.css
View file @
e119449a
:root
{
--main-bg-color
:
pink
;
}
*
{
font-family
:
"Electrolize"
,
sans-serif
;
}
/* content que contem o preview do perfil */
.content
{
position
:
relative
;
...
...
@@ -5,53 +13,62 @@
width
:
100%
;
padding
:
18px
6%
10px
6%
;
margin
:
0
0
30px
0
;
border-bottom
:
1px
solid
#dee2e6
!important
;
border-bottom
:
1px
solid
#dee2e6
!important
;
}
body
{
position
:
relative
;
}
header
{
background-color
:
#
DFDFDF
;
header
{
background-color
:
#
dfdfdf
;
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
;
}
header
.header-left-side
{
header
.header-left-side
{
width
:
60vw
;
font-family
:
'Electrolize'
,
sans-serif
;
background
:
linear-gradient
(
110deg
,
#F7F7F7
60%
,
#DFDFDF
60%
);
background
:
linear-gradient
(
110deg
,
#f7f7f7
60%
,
#dfdfdf
60%
);
padding-left
:
15vh
;
}
header
.header-right-side
{
header
.header-right-side
{
padding-right
:
15vh
;
}
.main-container
{
.main-container
{
display
:
flex
;
flex-direction
:
row
;
}
main
{
main
{
min-height
:
70vh
;
margin-right
:
15vh
!important
;
/* max-height: 70vh; */
}
nav
{
nav
{
margin-left
:
13vh
;
margin-right
:
1em
;
border-radius
:
.5em
;
border
:
1px
solid
#dee2e6
!important
;
border-radius
:
0
.5em
;
border
:
1px
solid
#dee2e6
!important
;
}
nav
ul
li
a
{
nav
ul
li
a
{
color
:
#17223b
;
font-size
:
large
;
}
nav
ul
.active
{
background-color
:
#
DFDFDF
!important
;
color
:
#17223b
!important
;
nav
ul
.active
{
background-color
:
#
dfdfdf
!important
;
color
:
#17223b
!important
;
font-weight
:
bold
;
/* border: 1px solid #007bff; */
}
nav
.content-user-info
{
nav
.content-user-info
{
font-weight
:
bold
;
}
...
...
public/jquery-3.1.1/jquery-3.1.1.min.js
0 → 100644
View file @
e119449a
This diff is collapsed.
Click to expand it.
resources/views/campus/create.blade.php
View file @
e119449a
...
...
@@ -12,18 +12,43 @@
])
@
endsection
@
section
(
'body'
)
<
div
class
=
"content mx-auto"
>
<
h1
class
=
"titulo pt-4 pb-4 mb-3 border-bottom"
>
CADASTRO
CAMPUS
</
h1
>
<
p
class
=
"pb-4 mb-3 text-center text-muted align-items-center"
>
Insira
os
dados
correspondentes
nos
campos
exibidos
abaixo
</
p
>
<!--
Formulario
-->
<
form
action
=
"{{ route('campus_store') }}"
method
=
"post"
>
@
csrf
@
method
(
'POST'
)
<
input
type
=
"text"
name
=
"name"
id
=
"name"
placeholder
=
"Nome"
>
<
select
name
=
"unidade_id"
id
=
"unidade_id"
>
<
div
class
=
"form-group"
>
<
label
for
=
"inputNameCampus"
>
Nome
do
Campus
</
label
>
<
input
type
=
"text"
name
=
"name"
class
=
"form-control"
id
=
"inputNameCampus"
placeholder
=
"Insira o nome do Campus"
value
=
"{{ old('name') }}"
>
@
error
(
'name'
)
<
span
class
=
"text-danger"
>
{{
$message
}}
</
span
>
@
enderror
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"selectCampus"
>
Campus
</
label
>
<
select
class
=
"custom-select"
name
=
"unidade_id"
id
=
"unidade_id"
>
<
option
value
=
""
disabled
selected
hidden
>
selecione
...
</
option
>
@
foreach
(
$unidades
as
$unidade
)
<
option
value
=
"{{
$unidade->id
}}"
>
{{
$unidade
->
name
}}
</
option
>
<
option
value
=
"{{
$unidade->id
}}"
{{
old
(
'unidade_id'
)
==
$unidade
->
id
?
'selected'
:
''
}}
>
{{
$unidade
->
name
}}
</
option
>
@
endforeach
</
select
>
<
button
type
=
"submit"
>
Enviar
</
button
>
@
error
(
'unidade_id'
)
<
span
class
=
"text-danger"
>
{{
$message
}}
</
span
>
@
enderror
</
div
>
<
div
class
=
"d-flex justify-content-between"
>
@
include
(
'components.buttons.btn-cancel'
,
[
'route'
=>
route
(
'campus_index'
),
])
@
include
(
'components.buttons.btn-save'
)
</
div
>
</
form
>
</
div
>
@
endsection
\ No newline at end of file
resources/views/campus/index.blade.php
View file @
e119449a
...
...
@@ -12,10 +12,43 @@
])
@
endsection
@
section
(
'body'
)
@
include
(
'components.alerts'
)
<
div
class
=
"d-flex justify-content-between align-items-center border-bottom"
>
<
h2
class
=
""
>
TODOS
OS
CAMPUS
</
h2
>
@
include
(
'components.buttons.btn-create'
,
[
'route'
=>
route
(
'campus_create'
),
'css'
=>
''
,
'text'
=>
'Novo Campus'
,
'id'
=>
''
'id'
=>
''
,
])
</
div
>
<!--
Tabela
-->
<
div
class
=
"table-responsive mt-5"
>
<
table
class
=
"table table-hover table-striped"
>
<
thead
class
=
"thead-dark"
>
<
tr
>
<
th
scope
=
"col"
>
Nome
</
th
>
<
th
scope
=
"col"
>
Unidade
</
th
>
<
th
scope
=
"col"
>
Ações
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$campus
as
$camp
)
<
tr
>
<
td
>
{{
$camp
->
name
}}
</
td
>
<
td
>
{{
$camp
->
unidade
}}
</
td
>
<
td
>
@
include
(
'components.buttons.btn-edit'
,
[
'route'
=>
route
(
'campus_edit'
,
[
'id'
=>
$camp
->
id
]),
])
@
include
(
'components.buttons.btn-soft-delete'
,
[
'modal_id'
=>
$camp
->
id
,
'route'
=>
route
(
'campus_delete'
,
[
'id'
=>
$camp
->
id
])
])
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
resources/views/campus/update.blade.php
View file @
e119449a
@
extends
(
'layouts.main'
)
@
section
(
'title'
,
'Campus'
)
@
section
(
'header'
)
@
include
(
'layouts.header'
,
[
'user'
=>
Auth
::
user
(),
])
@
endsection
@
section
(
'nav'
)
@
include
(
'layouts.navigation'
,
[
'index_menu'
=>
$index_menu
,
])
@
endsection
@
section
(
'body'
)
<
div
class
=
"content mx-auto"
>
<
h1
class
=
"titulo pt-4 pb-4 mb-3 border-bottom"
>
Atualizar
CAMPUS
</
h1
>
<
p
class
=
"pb-4 mb-3 text-center text-muted align-items-center"
>
Insira
os
dados
correspondentes
nos
campos
exibidos
abaixo
</
p
>
<!--
Formulario
-->
<
form
action
=
"{{ route('campus_update',
$campus->id
) }}"
method
=
"post"
>
@
csrf
@
method
(
'POST'
)
<
div
class
=
"form-group"
>
<
label
for
=
"inputNameCampus"
>
Nome
do
Campus
</
label
>
<
input
type
=
"text"
name
=
"name"
class
=
"form-control"
id
=
"inputNameCampus"
placeholder
=
"Insira o nome do Campus"
value
=
"{{
$campus->name
}}{{ old('name') }}"
>
@
error
(
'name'
)
<
span
class
=
"text-danger"
>
{{
$message
}}
</
span
>
@
enderror
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"selectCampus"
>
Campus
</
label
>
<
select
class
=
"custom-select"
name
=
"unidade_id"
id
=
"unidade_id"
>
<
option
value
=
""
disabled
selected
hidden
>
selecione
...
</
option
>
@
foreach
(
$unidades
as
$unidade
)
<
option
value
=
"{{
$unidade->id
}}"
{{
$campus
->
unidade
->
id
==
$unidade
->
id
?
'selected'
:
''
}}
>
{{
$unidade
->
name
}}
</
option
>
@
endforeach
</
select
>
@
error
(
'unidade_id'
)
<
span
class
=
"text-danger"
>
{{
$message
}}
</
span
>
@
enderror
</
div
>
<
div
class
=
"d-flex justify-content-between"
>
@
include
(
'components.buttons.btn-cancel'
,
[
'route'
=>
route
(
'campus_index'
),
])
@
include
(
'components.buttons.btn-save'
)
</
div
>
</
form
>
</
div
>
@
endsection
\ No newline at end of file
resources/views/components/buttons/btn-cancel.blade.php
0 → 100644
View file @
e119449a
<a
class=
"btn btn-secondary"
href=
"{{$route}}"
>
<i
class=
"bi bi-x-square-fill"
></i>
Cancelar
</a>
resources/views/components/buttons/btn-create.blade.php
View file @
e119449a
<a
class=
"{{$css}}"
href=
"{{$route}}"
id=
"{{$id}}"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
width=
"36"
height=
"36"
fill=
"currentColor"
class=
"bi bi-plus-circle"
viewBox=
"0 0 16 16"
>
<path
d=
"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"
/>
<path
d=
"M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"
/>
</svg>
<a
class=
"btn btn-outline-primary {{$css}}"
href=
"{{$route}}"
id=
"{{$id}}"
>
<i
class=
"bi bi-plus-circle"
></i>
{{$text}}
</a>
resources/views/components/buttons/btn-delete.blade.php
View file @
e119449a
<!-- Button trigger modal -->
<button
type=
"button"
class=
"btn btn-danger"
data-toggle=
"modal"
data-target=
"#modal-delete"
>
<button
type=
"button"
class=
"btn btn-danger"
data-toggle=
"modal"
data-target=
"#modal-delete
-0
"
>
<i
class=
"fas fa-trash"
></i>
</button>
<!-- Modal -->
<div
class=
"modal fade"
id=
"modal-delete"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"modal-delete-label"
aria-hidden=
"true"
>
<div
class=
"modal fade"
id=
"modal-delete-0"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"modal-delete-label"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
...
...
@@ -19,7 +19,7 @@
</div>
<div
class=
"modal-footer"
>
<button
id=
"btn-cancel"
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
Cancelar
</button>
<form
action=
"{{$route}}"
method=
"post"
>
<form
action=
"{{
$route
}}"
method=
"post"
>
@method('DELETE')
@csrf
<button
id=
"btn-ok"
type=
"submit"
class=
"btn btn-primary"
>
OK
</button>
...
...
resources/views/components/buttons/btn-edit.blade.php
View file @
e119449a
<a
class=
"btn btn-primary"
href=
"{{$route}}"
><i
class=
"fas fa-edit"
></i></a>
<a
class=
"btn btn-secondary"
href=
"{{$route}}"
><i
class=
"fas fa-edit"
></i></a>
\ No newline at end of file
resources/views/components/buttons/btn-save.blade.php
0 → 100644
View file @
e119449a
<button
class=
"btn btn-success"
type=
"submit"
>
<i
class=
"bi bi-sd-card-fill"
></i>
Salvar
</button>
resources/views/components/buttons/btn-soft-delete.blade.php
0 → 100644
View file @
e119449a
<!-- Button trigger modal -->
<button
type=
"button"
class=
"btn btn-danger"
data-toggle=
"modal"
data-target=
"#modal-delete-{{ $modal_id }}"
>
<i
class=
"fas fa-trash"
></i>
</button>
<!-- Modal -->
<div
class=
"modal fade"
id=
"modal-delete-{{ $modal_id }}"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"modal-delete-label"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
role=
"document"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h5
class=
"modal-title"
id=
"modal-delete-label"
>
Excluir Item
</h5>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</div>
<div
class=
"modal-body"
>
Você tem certeza que deseja excluir esse item?
</div>
<div
class=
"modal-footer"
>
<button
id=
"btn-cancel"
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
Cancelar
</button>
<form
action=
"{{ $route }}"
method=
"post"
>
@method('DELETE')
@csrf
<button
id=
"btn-ok"
type=
"submit"
class=
"btn btn-primary"
>
OK
</button>
</form>
</div>
</div>
</div>
</div>
resources/views/coordenador/create.blade.php
0 → 100644
View file @
e119449a
@
extends
(
'layouts.main'
)
@
section
(
'title'
,
'Campus'
)
@
section
(
'header'
)
@
include
(
'layouts.header'
,
[
'user'
=>
Auth
::
user
(),
])
@
endsection
@
section
(
'nav'
)
@
include
(
'layouts.navigation'
,
[
'index_menu'
=>
$index_menu
,
])
@
endsection
@
section
(
'body'
)
<
div
class
=
"content mx-auto"
>
<
h1
class
=
"titulo pt-4 pb-4 mb-3 border-bottom"
>
CADASTRO
DE
CORRDENADORES
</
h1
>
<
p
class
=
"pb-4 mb-3 text-center text-muted align-items-center"
>
Insira
os
dados
correspondentes
nos
campos
exibidos
abaixo
</
p
>
<!--
Formulario
-->
<
form
action
=
"{{ route('diretor_store') }}"
method
=
"post"
>
@
csrf
@
method
(
'POST'
)
<
div
class
=
"form-group"
>
<
label
for
=
"inputNameCoordenador"
>
Nome
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"inputNameCoordenador"
placeholder
=
"Nome"
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"inputEmailCoordenador"
>
Email
</
label
>
<
input
type
=
"email"
class
=
"form-control"
id
=
"inputEmailCoordenador"
placeholder
=
"nome@upe.br"
>
</
div
>
<
div
class
=
"form-row"
>
<
div
class
=
"form-group col-md-6"
>
<
label
for
=
"inputCPF"
>
CPF
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"inputCPF"
placeholder
=
"000.000.000-00"
>
</
div
>
<
div
class
=
"form-group col-md-6"
>
<
label
for
=
"inputMatricula"
>
Matricula
</
label
>
<
input
type
=
"text"
class
=
"form-control"
id
=
"inputMatricula"
placeholder
=
"Nº Matricula"
>
</
div
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"selectArea"
>
Dimensão
de
atuação
</
label
>
<
select
class
=
"custom-select mr-sm-2"
id
=
"inlineFormCustomSelect"
aria
-
label
=
"Default select example"
>
<
option
selected
>
Selecionar
dimensão
de
atuação
</
option
>
<
option
value
=
"1"
>
ENSINO
</
option
>
<
option
value
=
"2"
>
PESQUISA
</
option
>
<
option
value
=
"3"
>
EXTENSÃO
</
option
>
<
option
value
=
"4"
>
GESTÃO
</
option
>
</
select
>
</
div
>
<!--
<
div
class
=
"form-row"
>
<
div
class
=
"form-group col-md-6"
>
<
label
for
=
"selectCampus"
>
Campus
</
label
>
<
select
class
=
"custom-select mr-sm-2"
id
=
"inlineFormCustomSelect"
aria
-
label
=
"Default select example"
>
<
option
selected
>
Selecionar
Campus
</
option
>
<
option
value
=
"1"
>
Um
</
option
>
<
option
value
=
"2"
>
Dois
</
option
>
<
option
value
=
"3"
>
Três
</
option
>
</
select
>
</
div
>
<
div
class
=
"form-group col-md-6"
>
<
label
for
=
"selectCurso"
>
Curso
</
label
>
<
select
class
=
"custom-select mr-sm-2"
id
=
"inlineFormCustomSelect"
aria
-
label
=
"Default select example"
>
<
option
selected
>
Selecionar
Curso
</
option
>
<
option
value
=
"1"
>
Um
</
option
>
<
option
value
=
"2"
>
Dois
</
option
>
<
option
value
=
"3"
>
Três
</
option
>
</
select
>
</
div
>
</
div
>
-->
<
div
class
=
"d-flex justify-content-between"
>
@
include
(
'components.buttons.btn-cancel'
,
[
'route'
=>
route
(
'unidade_index'
),
])
@
include
(
'components.buttons.btn-save'
)
</
div
>
</
form
>
</
div
>
@
endsection
resources/views/coordenador/index.blade.php
0 → 100644
View file @
e119449a
@
extends
(
'layouts.main'
)
@
section
(
'title'
,
'Campus'
)
@
section
(
'header'
)
@
include
(
'layouts.header'
,
[
'user'
=>
Auth
::
user
(),
])
@
endsection
@
section
(
'nav'
)
@
include
(
'layouts.navigation'
,
[
'index_menu'
=>
$index_menu
,
])
@
endsection
@
section
(
'body'
)
<
div
class
=
"d-flex justify-content-between align-items-center border-bottom"
>
<
h2
class
=
""
>
TODOS
OS
COORDENADORES
</
h2
>
@
include
(
'components.buttons.btn-create'
,
[
'route'
=>
route
(
'coordenador_create'
),
'css'
=>
''
,
'text'
=>
'Novo Coordenador'
,
'id'
=>
''
,
])
</
div
>
<!--
Tabela
-->
<
div
class
=
"table-responsive mt-5"
>
<
table
class
=
"table table-hover table-striped"
>
<
thead
class
=
"thead-dark"
>
<
tr
>
<
th
scope
=
"col"
>
Nome
</
th
>
<
th
scope
=
"col"
>
CPF
</
th
>
<
th
scope
=
"col"
>
Ações
</
th
>
</
tr
>
</
thead
>
<
tbody
>
@
foreach
(
$coordenadores
as
$coordenador
)
<
tr
>
<
td
>
{{
$coordenador
->
name
}}
</
td
>
<
td
>
{{
$coordenador
->
document
}}
</
td
>
<
td
>
@
include
(
'components.buttons.btn-edit'
,
[
'route'
=>
route
(
'coordenador_edit'
,
[
'id'
=>
$coordenador
->
id
]),
])
@
include
(
'components.buttons.btn-delete'
,
[
'route'
=>
route
(
'coordenador_delete'
,
[
'id'
=>
$coordenador
->
id
]),
'modal_id'
=>
$coordenador
->
id
,
])
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
@
endsection
resources/views/coordenador/update.blade.php
0 → 100644
View file @
e119449a
resources/views/curso/create.blade.php
0 → 100644
View file @
e119449a
@
extends
(
'layouts.main'
)
@
section
(
'title'
,
'Campus'
)
@
section
(
'header'
)
@
include
(
'layouts.header'
,
[
'user'
=>
Auth
::
user
(),
])
@
endsection
@
section
(
'nav'
)
@
include
(
'layouts.navigation'
,
[
'index_menu'
=>
$index_menu
,
])
@
endsection
@
section
(
'body'
)
<
div
class
=
"content mx-auto"
>
<
h1
class
=
"titulo pt-4 pb-4 mb-3 border-bottom"
>
CADASTRO
CURSO
</
h1
>
<
p
class
=
"pb-4 mb-3 text-center text-muted align-items-center"
>
Insira
os
dados
correspondentes
nos
campos
exibidos
abaixo
</
p
>
<!--
Formulario
-->
<
form
action
=
"{{ route('curso_store') }}"
method
=
"post"
>
@
csrf
@
method
(
'POST'
)
<
div
class
=
"form-group"
>
<
label
for
=
"inputNameCurso"
>
Nome
do
Curso
</
label
>
<
input
type
=
"text"
class
=
"form-control"
name
=
"name"
id
=
"inputNameCurso"
placeholder
=
"Insira o nome do Curso"
value
=
"{{ old('name') }}"
>
@
error
(
'name'
)
<
span
class
=
"text-danger"
>
{{
$message
}}
</
span
>
@
enderror
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"selectCampus"
>
Campus
</
label
>
<
select
class
=
"custom-select mr-sm-2"
name
=
"campus_id"
id
=
"inlineFormCustomSelect"
aria
-
label
=
"Default select example"
>
<
option
value
=
""
disabled
selected
hidden
>
selecione
...
</
option
>
@
foreach
(
$allCampus
as
$campus
)
<
option
value
=
"{{
$campus->id
}}"
{{
old
(
'campus_id'
)
==
$campus
->
id
?
'selected'
:
''
}}
>
{{
$campus
->
name
}}
</
option
>
@
endforeach
</
select
>
@
error
(
'campus_id'
)
<
span
class
=
"text-danger"
>
{{
$message
}}
</
span
>
@
enderror
</
div
>
<
div
class
=
"d-flex justify-content-between"
>
@
include
(
'components.buttons.btn-cancel'
,
[
'route'
=>
route
(
'curso_index'
),
])
@
include
(
'components.buttons.btn-save'
)
</
div
>
</
form
>
</
div
>
@
endsection
resources/views/curso/index.blade.php
View file @
e119449a
This diff is collapsed.
Click to expand it.
resources/views/curso/update.blade.php
0 → 100644
View file @
e119449a
@
extends
(
'layouts.main'
)
@
section
(
'title'
,
'Campus'
)
@
section
(
'header'
)
@
include
(
'layouts.header'
,
[
'user'
=>
Auth
::
user
(),
])
@
endsection
@
section
(
'nav'
)
@
include
(
'layouts.navigation'
,
[
'index_menu'
=>
$index_menu
,
])
@
endsection
@
section
(
'body'
)
<
div
class
=
"content mx-auto"
>
<
h1
class
=
"titulo pt-4 pb-4 mb-3 border-bottom"
>
CADASTRO
CURSO
</
h1
>
<
p
class
=
"pb-4 mb-3 text-center text-muted align-items-center"
>
Insira
os
dados
correspondentes
nos
campos
exibidos
abaixo
</
p
>
<!--
Formulario
-->
<
form
action
=
"{{ route('curso_update',
$curso->id
) }}"
method
=
"post"
>
@
csrf
@
method
(
'POST'
)
<
div
class
=
"form-group"
>
<
label
for
=
"inputNameCurso"
>
Nome
do
Curso
</
label
>
<
input
type
=
"text"
class
=
"form-control"
name
=
"name"
id
=
"inputNameCurso"
placeholder
=
"Insira o nome do Curso"
value
=
"{{
$curso->name
}}"
>
</
div
>
<
div
class
=
"form-group"
>
<
label
for
=
"selectCampus"
>
Campus
</
label
>
<
select
class
=
"custom-select mr-sm-2"
name
=
"campus_id"
id
=
"inlineFormCustomSelect"
aria
-
label
=
"Default select example"
>
<
option
selected
>
Selecionar
o
Campus
</
option
>
@
foreach
(
$allCampus
as
$campus
)
<
option
value
=
"{{
$campus->id
}}"
{{
$curso
->
campus
->
id
==
$campus
->
id
?
'selected'
:
''
}}
>
{{
$campus
->
name
}}
</
option
>
@
endforeach
</
select
>
</
div
>
<
div
class
=
"d-flex justify-content-between"
>
@
include
(
'components.buttons.btn-cancel'
,
[
'route'
=>
route
(
'curso_index'
),
])
@
include
(
'components.buttons.btn-save'
)
</
div
>
</
form
>
</
div
>
@
endsection
Prev
1
2
3
4
Next
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