File tree 1 file changed +4
-3
lines changed
src/main/resources/templates/project
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ <h5 class="modal-title">Deletar Registro</h5>
82
82
< a
83
83
class ="btn btn-sm btn-primary "
84
84
th:href ="@{/project/edit/{id}(id=${project.id})} "> Editar</ a >
85
- < a th:id ="${project.id} "
85
+ < a th:id ="${project.id} " th:name =" ${project.name} "
86
86
class ="delete btn btn-sm btn-danger confirModal "> Excluir</ a >
87
87
</ div >
88
88
</ td >
@@ -116,11 +116,12 @@ <h5 class="modal-title">Deletar Registro</h5>
116
116
/* Guardando o ID do registro (foi colocado como um atributo n o botão) */
117
117
118
118
const id = $ ( this ) . attr ( "id" ) ;
119
+ const name = $ ( this ) . attr ( "name" ) ;
119
120
120
121
/* Adicionando o texto ao modal */
121
122
$ ( "#texto-modal" ) . text (
122
- "Tem certeza que deseja deletar o registro # "
123
- + id + "?" ) ;
123
+ "Tem certeza que deseja excluir o projeto: "
124
+ + id + " - " + name + " ?") ;
124
125
125
126
/* Adicionando a URL para delete */
126
127
$ ( "#link-delete" )
You can’t perform that action at this time.
0 commit comments