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
d4f888b1
Commit
d4f888b1
authored
May 11, 2021
by
Carlos André
Browse files
natureza
parent
cf63daf9
Changes
2
Show whitespace changes
Inline
Side-by-side
resources/views/administrador/editais.blade.php
View file @
d4f888b1
resources/views/naturezas/index.blade.php
View file @
d4f888b1
...
@@ -6,17 +6,18 @@
...
@@ -6,17 +6,18 @@
{{
--
Modal
criar
nova
natureza
--
}}
{{
--
Modal
criar
nova
natureza
--
}}
<
div
class
=
"modal fade"
id
=
"modalNewCenter"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"modalCenterTitle"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal fade"
id
=
"modalNewCenter"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"modalCenterTitle"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
<
div
class
=
"modal-dialog modal-dialog-centered"
role
=
"document"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-content
modal-submeta
"
>
<
div
class
=
"modal-header"
>
<
div
class
=
"modal-header
modal-header-submeta
"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLongTitle"
>
{{
__
(
'Nova natureza'
)}}
</
h5
>
<
h5
class
=
"modal-title
titulo-table
"
id
=
"exampleModalLongTitle"
>
{{
__
(
'Nova natureza'
)}}
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
button
>
</
div
>
</
div
>
<
div
class
=
"modal-body"
>
<
div
class
=
"modal-body"
>
<
form
id
=
"formNew"
method
=
"POST"
action
=
"{{ route('natureza.salvar') }}"
>
<
form
id
=
"formNew"
method
=
"POST"
action
=
"{{ route('natureza.salvar') }}"
class
=
"labels-blue"
>
@
csrf
@
csrf
<
input
form
=
"formNew"
type
=
"text"
value
=
""
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
required
autocomplete
=
"nome"
autofocus
>
<
label
for
=
""
>
Nome
da
natureza
<
span
style
=
"color: red;"
>*</
span
></
label
>
<
input
form
=
"formNew"
type
=
"text"
required
class
=
"form-control @error('nome') is-invalid @enderror"
name
=
"nome"
autocomplete
=
"nome"
autofocus
placeholder
=
"Nome da natureza"
>
@
error
(
'nome'
)
@
error
(
'nome'
)
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
span
class
=
"invalid-feedback"
role
=
"alert"
>
<
strong
>
{{
$message
}}
</
strong
>
<
strong
>
{{
$message
}}
</
strong
>
...
@@ -25,8 +26,7 @@
...
@@ -25,8 +26,7 @@
</
form
>
</
form
>
</
div
>
</
div
>
<
div
class
=
"modal-footer"
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
{{
__
(
'Cancelar'
)}}
</
button
>
<
button
type
=
"button"
onclick
=
"submeterFormNew()"
class
=
"btn btn-info"
style
=
"width: 100%;"
>
{{
__
(
'Salvar'
)}}
</
button
>
<
button
type
=
"button"
onclick
=
"submeterFormNew()"
class
=
"btn btn-primary"
>
{{
__
(
'Salvar'
)}}
</
button
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -39,14 +39,21 @@
...
@@ -39,14 +39,21 @@
</
div
>
</
div
>
</
div
>
</
div
>
@
endif
@
endif
<
div
class
=
"col-sm-9"
>
<
h2
style
=
"margin-top: 100px; "
>
{{
__
(
'Naturezas'
)
}}
</
h2
>
</
div
>
</
div
>
<
div
class
=
"col-sm-3"
>
<
div
class
=
"row"
style
=
"margin-top: 30px;"
>
<
a
href
=
""
class
=
"btn btn-info"
style
=
"position:relative;top:100px; float: right;"
data
-
toggle
=
"modal"
data
-
target
=
"#modalNewCenter"
>
{{
__
(
'Criar natureza'
)
}}
</
a
>
<
div
class
=
"col-md-1"
>
<
a
href
=
"{{ route('admin.index') }}"
class
=
"btn btn-secondary"
>
Voltar
</
a
>
</
div
>
<
div
class
=
"col-md-9"
style
=
"text-align: center;"
>
<
h3
class
=
"titulo-table"
>
{{
__
(
'Naturezas'
)
}}
</
h3
>
</
div
>
<
div
class
=
"col-md-2"
>
<!--
Button
trigger
modal
-->
<
a
href
=
""
class
=
"btn btn-info"
style
=
"float: right;"
data
-
toggle
=
"modal"
data
-
target
=
"#modalNewCenter"
>
{{
__
(
'Criar natureza'
)
}}
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
>
<
hr
>
<
table
class
=
"table table-bordered"
>
<
table
class
=
"table table-bordered"
>
<
thead
>
<
thead
>
...
@@ -113,21 +120,19 @@
...
@@ -113,21 +120,19 @@
<
td
>
<
td
>
{{
$natureza
->
creat_at
}}
{{
$natureza
->
creat_at
}}
</
td
>
</
td
>
<
td
>
<
td
>
@
if
(
is_null
(
$natureza
->
projetos
->
first
()))
@
if
(
is_null
(
$natureza
->
projetos
->
first
()))
<
div
class
=
"btn-group dropright dropdown-options"
>
<
div
class
=
"btn-group dropright dropdown-options"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
a
id
=
"options"
class
=
"dropdown-toggle "
data
-
toggle
=
"dropdown"
aria
-
haspopup
=
"true"
aria
-
expanded
=
"false"
>
<
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
data
-
toggle
=
"modal"
data
-
target
=
"#modalEditCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item text-center"
style
=
"color: rgb(0, 140, 255);"
>
<
a
class
=
"dropdown-item"
data
-
toggle
=
"modal"
data
-
target
=
"#modalEditCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item"
>
<
img
src
=
"
{
{asset('img/icons/edit-regular.svg')}
}
"
class
=
"icon-card"
alt
=
""
>
{{
__
(
'Editar'
)}}
{{
__
(
'Editar'
)}}
</
a
>
</
a
>
<
a
class
=
"dropdown-
item"
data
-
toggle
=
"modal"
data
-
target
=
"#modalDelCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item
"
>
<
hr
class
=
"dropdown-
hr
"
>
<
img
src
=
"
{
{asset('img/icons/trash-alt-regular.svg')}
}
"
class
=
"icon-card"
alt
=
"
"
>
<
a
data
-
toggle
=
"modal"
data
-
target
=
"#modalDelCenter
{
{$natureza->id}
}
"
class
=
"dropdown-item dropdown-item-delete text-center"
style
=
"color: white;
"
>
{{
__
(
'Deletar'
)}}
<
img
src
=
"
{
{asset('img/icons/logo_lixeira.png')}
}
"
alt
=
""
>
{{
__
(
'Deletar'
)}}
</
a
>
</
a
>
</
div
>
</
div
>
</
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