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
015d3c6b
Commit
015d3c6b
authored
May 11, 2021
by
Carlos André
Browse files
criar e editar areas
parent
de8be23c
Changes
8
Hide whitespace changes
Inline
Side-by-side
resources/views/naturezas/area/detalhes.blade.php
View file @
015d3c6b
...
@@ -26,43 +26,47 @@
...
@@ -26,43 +26,47 @@
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
div
class
=
"row"
style
=
"margin-bottom: 200px;"
>
<
thead
>
<
div
class
=
"col-md-12"
>
<
tr
>
<
table
class
=
"table table-bordered"
>
<
th
scope
=
"col"
>
Nome
</
th
>
<
thead
>
<
th
scope
=
"col"
>
Opção
</
th
>
<
tr
>
</
tr
>
<
th
scope
=
"col"
>
Nome
</
th
>
</
thead
>
<
th
scope
=
"col"
>
Opção
</
th
>
<
tbody
>
</
tr
>
@
foreach
(
$subAreas
as
$subArea
)
</
thead
>
<
tr
>
<
tbody
>
<
td
>
@
foreach
(
$subAreas
as
$subArea
)
{{
$subArea
->
nome
}}
<
tr
>
</
td
>
<
td
>
<
td
>
{{
$subArea
->
nome
}}
<
div
class
=
"btn-group dropright dropdown-options"
>
</
td
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
td
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
div
class
=
"btn-group dropright dropdown-options"
>
</
a
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
div
class
=
"dropdown-menu"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
a
href
=
"{{ route('subarea.editar', ['id' =>
$subArea->id
]) }}"
class
=
"dropdown-item text-center"
>
</
a
>
Editar
<
div
class
=
"dropdown-menu"
>
</
a
>
<
a
href
=
"{{ route('subarea.editar', ['id' =>
$subArea->id
]) }}"
class
=
"dropdown-item text-center"
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.deletar', ['id' =>
$subArea->id
]) }}"
>
Editar
{{
csrf_field
()
}}
</
a
>
<
button
type
=
"submit"
class
=
"dropdown-item dropdown-item-delete text-center"
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.deletar', ['id' =>
$subArea->id
]) }}"
>
<
img
src
=
"
{
{asset('img/icons/logo_lixeira.png')}
}
"
alt
=
""
>
{{
csrf_field
()
}}
Deletar
<
button
type
=
"submit"
class
=
"dropdown-item dropdown-item-delete text-center"
>
</
button
>
<
img
src
=
"
{
{asset('img/icons/logo_lixeira.png')}
}
"
alt
=
""
>
Deletar
</
form
>
</
button
>
</
div
>
</
div
>
</
form
>
</
td
>
</
div
>
</
tr
>
</
div
>
@
endforeach
</
td
>
</
tbody
>
</
tr
>
</
table
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
endsection
\ No newline at end of file
resources/views/naturezas/area/editar_area.blade.php
View file @
015d3c6b
...
@@ -2,17 +2,17 @@
...
@@ -2,17 +2,17 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"container"
style
=
"margin-top: 50px; "
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"
margin-top: 100px;
"
>
{{
__
(
'Editar uma área'
)
}}
</
h2
>
<
h2
style
=
"
color: rgb(0, 140, 255);
"
>
{{
__
(
'Editar uma área'
)
}}
</
h2
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
form
method
=
"POST"
action
=
"{{ route('area.atualizar', ['id' =>
$area->id
])}}"
>
<
form
method
=
"POST"
action
=
"{{ route('area.atualizar', ['id' =>
$area->id
])}}"
>
@
csrf
@
csrf
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nome"
class
=
"col-form-label"
>
{{
__
(
'Nome'
)
}}
</
label
>
<
label
for
=
"nome"
class
=
"col-form-label"
style
=
"color: rgb(0, 140, 255);"
>
{{
__
(
'Nome'
)
}}
<
span
style
=
"color: red;"
>
*</
span
>
</
label
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{
$area->nome
}}"
required
autocomplete
=
"nome"
autofocus
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{
$area->nome
}}"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
@
error
(
'nome'
)
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</
span
>
</
span
>
@
enderror
@
enderror
<
button
type
=
"submit"
class
=
"btn btn-
primary
"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-
info
"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
</
div
>
</
div
>
</
form
>
</
form
>
</
div
>
</
div
>
...
...
resources/views/naturezas/area/nova_area.blade.php
View file @
015d3c6b
...
@@ -2,17 +2,17 @@
...
@@ -2,17 +2,17 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"container"
style
=
"margin-top: 50px;"
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"
margin-top: 100px;
"
>
{{
__
(
'Criar uma nova área'
)
}}
</
h2
>
<
h2
style
=
"
color: rgb(0, 140, 255);
"
>
{{
__
(
'Criar uma nova área'
)
}}
</
h2
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
form
method
=
"POST"
action
=
"{{ route('area.salvar', ['id' =>
$grandeAreaId
])}}"
>
<
form
method
=
"POST"
action
=
"{{ route('area.salvar', ['id' =>
$grandeAreaId
])}}"
>
@
csrf
@
csrf
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nome"
class
=
"col-form-label"
>
{{
__
(
'Nome'
)
}}
</
label
>
<
label
for
=
"nome"
class
=
"col-form-label"
style
=
"color: rgb(0, 140, 255);"
>
{{
__
(
'Nome'
)
}}
<
span
style
=
"color: red;"
>
*</
span
>
</
label
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{ old('nome') }}"
required
autocomplete
=
"nome"
autofocus
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{ old('nome') }}"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
@
error
(
'nome'
)
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</
span
>
</
span
>
@
enderror
@
enderror
<
button
type
=
"submit"
class
=
"btn btn-
primary
"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-
info
"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
</
div
>
</
div
>
</
form
>
</
form
>
</
div
>
</
div
>
...
...
resources/views/naturezas/grandeArea/editar_grande_area.blade.php
View file @
015d3c6b
...
@@ -2,17 +2,17 @@
...
@@ -2,17 +2,17 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"container"
style
=
"margin-top: 50px; "
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"
margin-top: 100px;
"
>
{{
__
(
'Editar uma área'
)
}}
</
h2
>
<
h2
style
=
"
color: rgb(0, 140, 255);
"
>
{{
__
(
'Editar uma área'
)
}}
</
h2
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
form
method
=
"POST"
action
=
"{{ route('grandearea.atualizar', ['id' =>
$grandeArea->id
])}}"
>
<
form
method
=
"POST"
action
=
"{{ route('grandearea.atualizar', ['id' =>
$grandeArea->id
])}}"
>
@
csrf
@
csrf
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nome"
class
=
"col-form-label"
>
{{
__
(
'Nome'
)
}}
</
label
>
<
label
for
=
"nome"
class
=
"col-form-label"
style
=
"color: rgb(0, 140, 255);"
>
{{
__
(
'Nome'
)
}}
<
span
style
=
"color: red;"
>
*</
span
>
</
label
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{
$grandeArea->nome
}}"
required
autocomplete
=
"nome"
autofocus
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{
$grandeArea->nome
}}"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
@
error
(
'nome'
)
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</
span
>
</
span
>
@
enderror
@
enderror
<
button
type
=
"submit"
class
=
"btn btn-
primary
"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-
info
"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
</
div
>
</
div
>
</
form
>
</
form
>
</
div
>
</
div
>
...
...
resources/views/naturezas/grandeArea/nova_grande_area.blade.php
View file @
015d3c6b
...
@@ -2,18 +2,18 @@
...
@@ -2,18 +2,18 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"container"
style
=
"margin-top: 50px;"
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"
margin-top: 100px;
"
>
{{
__
(
'Criar uma nova área'
)
}}
</
h2
>
<
h2
style
=
"
color: rgb(0, 140, 255);
"
>
{{
__
(
'Criar uma nova
grande
área'
)
}}
</
h2
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
form
method
=
"POST"
action
=
"{{ route('grandearea.salvar')}}"
>
<
form
method
=
"POST"
action
=
"{{ route('grandearea.salvar')}}"
>
@
csrf
@
csrf
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nome"
class
=
"col-form-label"
>
{{
__
(
'Nome'
)
}}
</
label
>
<
label
for
=
"nome"
class
=
"col-form-label"
style
=
"color: rgb(0, 140, 255);"
>
{{
__
(
'Nome'
)
}}
<
span
style
=
"color: red;"
>
*</
span
>
</
label
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{ old('nome') }}"
required
autocomplete
=
"nome"
autofocus
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{ old('nome') }}"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
@
error
(
'nome'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</
span
>
</
span
>
@
enderror
@
enderror
<
button
type
=
"submit"
class
=
"btn btn-
primary
"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-
info
"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
</
div
>
</
div
>
</
form
>
</
form
>
</
div
>
</
div
>
...
...
resources/views/naturezas/subArea/editar_subarea.blade.php
View file @
015d3c6b
...
@@ -2,17 +2,17 @@
...
@@ -2,17 +2,17 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"container"
style
=
"margin-top: 50px; "
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"
margin-top: 100px;
"
>
{{
__
(
'Editar uma subárea'
)
}}
</
h2
>
<
h2
style
=
"
color: rgb(0, 140, 255);
"
>
{{
__
(
'Editar uma subárea'
)
}}
</
h2
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.atualizar', ['id' =>
$subarea->id
])}}"
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.atualizar', ['id' =>
$subarea->id
])}}"
>
@
csrf
@
csrf
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nome"
class
=
"col-form-label"
>
{{
__
(
'Nome'
)
}}
</
label
>
<
label
for
=
"nome"
class
=
"col-form-label"
style
=
"color: rgb(0, 140, 255);"
>
{{
__
(
'Nome'
)
}}
<
span
style
=
"color: red;"
>
*</
span
>
</
label
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{
$subarea->nome
}}"
required
autocomplete
=
"nome"
autofocus
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{
$subarea->nome
}}"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
@
error
(
'nome'
)
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</
span
>
</
span
>
@
enderror
@
enderror
<
button
type
=
"submit"
class
=
"btn btn-
primary
"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-
info
"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
</
div
>
</
div
>
</
form
>
</
form
>
</
div
>
</
div
>
...
...
resources/views/naturezas/subArea/index.blade.php
View file @
015d3c6b
...
@@ -17,44 +17,48 @@
...
@@ -17,44 +17,48 @@
</
div
>
</
div
>
<
hr
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
div
class
=
"row"
style
=
"margin-bottom: 20px;"
>
<
thead
>
<
div
class
=
"col-md-12"
>
<
tr
>
<
table
class
=
"table table-bordered"
>
<
th
scope
=
"col"
>
Nome
</
th
>
<
thead
>
<
th
scope
=
"col"
>
Opção
</
th
>
<
tr
>
</
tr
>
<
th
scope
=
"col"
>
Nome
</
th
>
</
thead
>
<
th
scope
=
"col"
>
Opção
</
th
>
<
tbody
>
</
tr
>
@
foreach
(
$subAreas
as
$subArea
)
</
thead
>
<
tr
>
<
tbody
>
<
td
>
@
foreach
(
$subAreas
as
$subArea
)
{{
$subArea
->
nome
}}
<
tr
>
</
td
>
<
td
>
<
td
>
{{
$subArea
->
nome
}}
<
div
class
=
"btn-group dropright dropdown-options"
>
</
td
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
td
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
div
class
=
"btn-group dropright dropdown-options"
>
</
a
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
div
class
=
"dropdown-menu"
>
<
img
src
=
"
{
{asset('img/icons/ellipsis-v-solid.svg')}
}
"
style
=
"width:8px"
>
<
a
href
=
"{{ route('subarea.editar', ['id' =>
$subArea->id
]) }}"
class
=
"dropdown-item"
>
</
a
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
<
div
class
=
"dropdown-menu"
>
Editar
<
a
href
=
"{{ route('subarea.editar', ['id' =>
$subArea->id
]) }}"
class
=
"dropdown-item"
>
</
a
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.deletar', ['id' =>
$subArea->id
]) }}"
>
Editar
{{
csrf_field
()
}}
</
a
>
<
button
type
=
"submit"
class
=
"dropdown-item"
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.deletar', ['id' =>
$subArea->id
]) }}"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
{{
csrf_field
()
}}
Deletar
<
button
type
=
"submit"
class
=
"dropdown-item"
>
</
button
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
Deletar
</
form
>
</
button
>
</
div
>
</
div
>
</
form
>
</
td
>
</
div
>
</
tr
>
</
div
>
@
endforeach
</
td
>
</
tbody
>
</
tr
>
</
table
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endsection
@
endsection
\ No newline at end of file
resources/views/naturezas/subArea/nova_subarea.blade.php
View file @
015d3c6b
...
@@ -2,17 +2,17 @@
...
@@ -2,17 +2,17 @@
@
section
(
'content'
)
@
section
(
'content'
)
<
div
class
=
"container"
>
<
div
class
=
"container"
style
=
"margin-top: 50px; "
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
h2
style
=
"
margin-top: 100px;
"
>
{{
__
(
'Criar uma nova subárea'
)
}}
</
h2
>
<
h2
style
=
"
color: rgb(0, 140, 255);
"
>
{{
__
(
'Criar uma nova subárea'
)
}}
</
h2
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"row"
>
<
div
class
=
"row"
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.salvar', ['id' =>
$areaId
])}}"
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.salvar', ['id' =>
$areaId
])}}"
>
@
csrf
@
csrf
<
div
class
=
"col-sm-12"
>
<
div
class
=
"col-sm-12"
>
<
label
for
=
"nome"
class
=
"col-form-label"
>
{{
__
(
'Nome'
)
}}
</
label
>
<
label
for
=
"nome"
class
=
"col-form-label"
style
=
"color: rgb(0, 140, 255);"
>
{{
__
(
'Nome'
)
}}
<
span
style
=
"color: red;"
>
*</
span
>
</
label
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{ old('nome') }}"
required
autocomplete
=
"nome"
autofocus
>
<
input
id
=
"nome"
type
=
"text"
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
value
=
"{{ old('nome') }}"
required
autocomplete
=
"nome"
autofocus
>
@
error
(
'nome'
)
@
error
(
'nome'
)
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</
span
>
</
span
>
@
enderror
@
enderror
<
button
type
=
"submit"
class
=
"btn btn-
primary
"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-
info
"
style
=
"position:relative;top:10px;"
>
{{
__
(
'Salvar'
)
}}
</
button
>
</
div
>
</
div
>
</
form
>
</
form
>
</
div
>
</
div
>
...
...
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