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
a6373131
Commit
a6373131
authored
Jul 06, 2022
by
GuilhermeGz
Browse files
Adicionadas janelas para confirmação de botões de remoção
parent
865c4674
Changes
5
Show whitespace changes
Inline
Side-by-side
resources/views/administrador/analisarProposta.blade.php
View file @
a6373131
...
@@ -916,8 +916,7 @@
...
@@ -916,8 +916,7 @@
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
href
=
"{{ route('admin.visualizarParecerInterno', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
]) }}"
>
Avaliado
</
a
>
@
endif
</
h9
>
</
h9
>
<
br
>
<
br
>
<
a
onclick
=
"return confirm('Tem certeza que deseja remover o avaliador
{
{$avaliador->user->name}
}
?')"
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#removerInterno{{
$avaliador->id
}}"
>
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
,'flag'=>1]) }}"
>
Remover
Remover
</
a
>
</
a
>
<
br
>
<
br
>
...
@@ -926,6 +925,26 @@
...
@@ -926,6 +925,26 @@
</
a
>
</
a
>
</
div
>
</
div
>
@
endif
@
endif
<!--
Modal
Remover
-->
<
div
class
=
"modal fade"
id
=
"removerInterno{{
$avaliador->id
}}"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
>
Remover
Avaliador
Interno
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
p
>
Você
tem
certeza
que
deseja
remover
o
avaliador
:
{{
$avaliador
->
user
->
name
}}
?</
p
>
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
Cancelar
</
button
>
<
a
type
=
"button"
class
=
"btn btn-danger"
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
,'flag'=>1]) }}"
>
Remover
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endforeach
@
endforeach
</
div
>
</
div
>
<
br
>
<
br
>
...
@@ -949,8 +968,7 @@
...
@@ -949,8 +968,7 @@
</
h9
>
</
h9
>
<
br
>
<
br
>
<
a
onclick
=
"return confirm('Tem certeza que deseja remover o avaliador
{
{$avaliador->user->name}
}
?')"
<
a
href
=
""
data
-
toggle
=
"modal"
data
-
target
=
"#removerAdHoc{{
$avaliador->id
}}"
>
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
,'flag'=>0]) }}"
>
Remover
Remover
</
a
>
</
a
>
<
br
>
<
br
>
...
@@ -959,6 +977,27 @@
...
@@ -959,6 +977,27 @@
</
a
>
</
a
>
</
div
>
</
div
>
@
endif
@
endif
<!--
Modal
Remover
-->
<
div
class
=
"modal fade"
id
=
"removerAdHoc{{
$avaliador->id
}}"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
>
Remover
Avaliador
Ad
Hoc
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
p
>
Você
tem
certeza
que
deseja
remover
o
avaliador
:
{{
$avaliador
->
user
->
name
}}
?</
p
>
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
Cancelar
</
button
>
<
a
type
=
"button"
class
=
"btn btn-danger"
href
=
"{{ route('admin.removerProjAval', ['trabalho_id' =>
$trabalho->id
, 'avaliador_id' =>
$avaliador->id
,'flag'=>0]) }}"
>
Remover
</
a
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endforeach
@
endforeach
</
div
>
</
div
>
</
div
>
</
div
>
...
...
resources/views/administrador/selecionarAvaliadores.blade.php
View file @
a6373131
...
@@ -154,9 +154,31 @@
...
@@ -154,9 +154,31 @@
@
csrf
@
csrf
<
input
type
=
"hidden"
name
=
"avaliador_id"
value
=
"{{
$avaliador->id
}}"
>
<
input
type
=
"hidden"
name
=
"avaliador_id"
value
=
"{{
$avaliador->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
input
type
=
"hidden"
name
=
"evento_id"
value
=
"{{
$evento->id
}}"
>
<
button
type
=
"
submit
"
class
=
"btn btn-danger"
@
if
(
$avaliador
->
trabalhos
->
where
(
'evento_id'
,
$evento
->
id
)
->
count
()
!=
0
)
disabled
=
"disabled"
@
endif
<
button
type
=
"
button
"
class
=
"btn btn-danger"
@
if
(
$avaliador
->
trabalhos
->
where
(
'evento_id'
,
$evento
->
id
)
->
count
()
!=
0
)
disabled
=
"disabled"
@
endif
onclick
=
"return confirm('Tem certeza que deseja remover o avaliador
{
{$avaliador->
user->name}
}
?')
"
data
-
toggle
=
"modal"
data
-
target
=
"#modal
{{
$avaliador->
id
}}
"
>
Remover
</
button
>
>
Remover
</
button
>
<!--
Modal
Remover
-->
<
div
class
=
"modal fade"
id
=
"modal{{
$avaliador->id
}}"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
>
Remover
Avaliador
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
p
>
Você
tem
certeza
que
deseja
remover
o
avaliador
:
{{
$avaliador
->
user
->
name
}}
?</
p
>
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
Cancelar
</
button
>
<
button
type
=
"submit"
class
=
"btn btn-danger"
>
Remover
</
button
>
</
div
>
</
div
>
</
div
>
</
div
>
</
form
>
</
form
>
<
form
action
=
"{{ route('admin.reenviarConvite') }}"
method
=
"POST"
>
<
form
action
=
"{{ route('admin.reenviarConvite') }}"
method
=
"POST"
>
@
csrf
@
csrf
...
...
resources/views/naturezas/area/detalhes.blade.php
View file @
a6373131
...
@@ -51,18 +51,38 @@
...
@@ -51,18 +51,38 @@
Editar
Editar
</
a
>
</
a
>
<
hr
class
=
"dropdown-hr"
>
<
hr
class
=
"dropdown-hr"
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.deletar', ['id' =>
$subArea->id
]) }}"
>
<
button
data
-
toggle
=
"modal"
data
-
target
=
"#removerSubarea{{
$subArea->id
}}"
class
=
"dropdown-item dropdown-item-delete text-center"
>
{{
csrf_field
()
}}
<
button
type
=
"submit"
class
=
"dropdown-item dropdown-item-delete text-center"
>
<
img
src
=
"
{
{asset('img/icons/logo_lixeira.png')}
}
"
alt
=
""
>
<
img
src
=
"
{
{asset('img/icons/logo_lixeira.png')}
}
"
alt
=
""
>
Deletar
Deletar
</
button
>
</
button
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
</
td
>
</
td
>
</
tr
>
</
tr
>
<!--
Modal
Remover
-->
<
div
class
=
"modal fade"
id
=
"removerSubarea{{
$subArea->id
}}"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
>
Remover
Subárea
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
p
>
Você
tem
certeza
que
deseja
remover
a
Subárea
:
{{
$subArea
->
nome
}}
?</
p
>
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
Cancelar
</
button
>
<
form
method
=
"POST"
action
=
"{{ route('subarea.deletar', ['id' =>
$subArea->id
]) }}"
>
@
csrf
<
button
type
=
"submit"
class
=
"btn btn-danger"
>
Remover
</
button
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endforeach
@
endforeach
</
tbody
>
</
tbody
>
</
table
>
</
table
>
...
...
resources/views/naturezas/grandeArea/collapse-grande-area.blade.php
View file @
a6373131
...
@@ -37,25 +37,45 @@
...
@@ -37,25 +37,45 @@
Editar
Editar
</a>
</a>
<hr
class=
"dropdown-hr"
>
<hr
class=
"dropdown-hr"
>
<form
method=
"POST"
action=
"{{ route('grandearea.deletar', ['id' => $grandeArea->id]) }}"
>
<button
data-toggle=
"modal"
data-target=
"#removerGrandeArea{{ $grandeArea->id }}"
class=
"dropdown-item dropdown-item-delete text-center"
>
{{ csrf_field() }}
<button
type=
"submit"
class=
"dropdown-item dropdown-item-delete text-center"
>
<img
src=
"{{asset('img/icons/logo_lixeira.png')}}"
alt=
""
>
<img
src=
"{{asset('img/icons/logo_lixeira.png')}}"
alt=
""
>
Deletar
Deletar
</button>
</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</h5>
</h5>
<div
id=
"collapse{{ $grandeArea->id }}"
class=
"collapse ml-3"
aria-labelledby=
"headingOne"
data-parent=
"#accordion1"
>
<div
id=
"collapse{{ $grandeArea->id }}"
class=
"collapse ml-3"
aria-labelledby=
"headingOne"
data-parent=
"#accordion1"
>
@include('naturezas.grandeArea.collapse-area')
@include('naturezas.grandeArea.collapse-area')
</div>
</div>
</div>
</div>
<!-- Modal Remover -->
<div
class=
"modal fade"
id=
"removerGrandeArea{{ $grandeArea->id }}"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"exampleModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-lg"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h5
class=
"modal-title"
id=
"exampleModalLabel"
>
Remover Grande Área
</h5>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</div>
<div
class=
"modal-body"
>
<p>
Você tem certeza que deseja remover a Grande Área: {{ $grandeArea->nome }}?
</p>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
Cancelar
</button>
<form
method=
"POST"
action=
"{{ route('grandearea.deletar', ['id' => $grandeArea->id]) }}"
>
@csrf
<button
type=
"submit"
class=
"btn btn-danger"
>
Remover
</button>
</form>
</div>
</div>
</div>
</div>
@endforeach
@endforeach
</div>
</div>
...
@@ -93,20 +113,39 @@
...
@@ -93,20 +113,39 @@
Editar
Editar
</a>
</a>
<hr
class=
"dropdown-hr"
>
<hr
class=
"dropdown-hr"
>
<form
method=
"POST"
action=
"{{ route('areaTematica.deletar', ['id' => $areasTematica->id]) }}"
>
<button
data-toggle=
"modal"
data-target=
"#removerAreaTematica{{ $areasTematica->id }}"
class=
"dropdown-item dropdown-item-delete text-center"
>
{{ csrf_field() }}
<button
type=
"submit"
class=
"dropdown-item dropdown-item-delete text-center"
>
<img
src=
"{{asset('img/icons/logo_lixeira.png')}}"
alt=
""
>
<img
src=
"{{asset('img/icons/logo_lixeira.png')}}"
alt=
""
>
Deletar
Deletar
</button>
</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</h5>
</h5>
</div>
</div>
<!-- Modal Remover -->
<div
class=
"modal fade"
id=
"removerAreaTematica{{ $areasTematica->id }}"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"exampleModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-lg"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<h5
class=
"modal-title"
id=
"exampleModalLabel"
>
Remover Área Temática
</h5>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
</div>
<div
class=
"modal-body"
>
<p>
Você tem certeza que deseja remover a Área Temática: {{ $areasTematica->nome }}?
</p>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-secondary"
data-dismiss=
"modal"
>
Cancelar
</button>
<form
method=
"POST"
action=
"{{ route('areaTematica.deletar', ['id' => $areasTematica->id]) }}"
>
@csrf
<button
type=
"submit"
class=
"btn btn-danger"
>
Remover
</button>
</form>
</div>
</div>
</div>
</div>
@endforeach
@endforeach
</div>
</div>
\ No newline at end of file
resources/views/naturezas/grandeArea/detalhes.blade.php
View file @
a6373131
...
@@ -55,18 +55,38 @@
...
@@ -55,18 +55,38 @@
Editar
Editar
</
a
>
</
a
>
<
hr
class
=
"dropdown-hr"
>
<
hr
class
=
"dropdown-hr"
>
<
form
method
=
"POST"
action
=
"{{ route('area.deletar', ['id' =>
$area->id
]) }}"
>
<
button
data
-
toggle
=
"modal"
data
-
target
=
"#removerArea{{
$area->id
}}"
class
=
"dropdown-item dropdown-item-delete text-center"
>
{{
csrf_field
()
}}
<
button
type
=
"submit"
class
=
"dropdown-item dropdown-item-delete text-center"
>
<
img
src
=
"
{
{asset('img/icons/logo_lixeira.png')}
}
"
alt
=
""
>
<
img
src
=
"
{
{asset('img/icons/logo_lixeira.png')}
}
"
alt
=
""
>
Deletar
Deletar
</
button
>
</
button
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
</
td
>
</
td
>
</
tr
>
</
tr
>
<!--
Modal
Remover
-->
<
div
class
=
"modal fade"
id
=
"removerArea{{
$area->id
}}"
tabindex
=
"-1"
role
=
"dialog"
aria
-
labelledby
=
"exampleModalLabel"
aria
-
hidden
=
"true"
>
<
div
class
=
"modal-dialog modal-lg"
>
<
div
class
=
"modal-content"
>
<
div
class
=
"modal-header"
>
<
h5
class
=
"modal-title"
id
=
"exampleModalLabel"
>
Remover
Área
</
h5
>
<
button
type
=
"button"
class
=
"close"
data
-
dismiss
=
"modal"
aria
-
label
=
"Close"
>
<
span
aria
-
hidden
=
"true"
>&
times
;
</
span
>
</
button
>
</
div
>
<
div
class
=
"modal-body"
>
<
p
>
Você
tem
certeza
que
deseja
remover
a
Área
:
{{
$area
->
nome
}}
?</
p
>
</
div
>
<
div
class
=
"modal-footer"
>
<
button
type
=
"button"
class
=
"btn btn-secondary"
data
-
dismiss
=
"modal"
>
Cancelar
</
button
>
<
form
method
=
"POST"
action
=
"{{ route('area.deletar', ['id' =>
$area->id
]) }}"
>
@
csrf
<
button
type
=
"submit"
class
=
"btn btn-danger"
>
Remover
</
button
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endforeach
@
endforeach
</
tbody
>
</
tbody
>
</
table
>
</
table
>
...
...
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