Skip to content

Commit

Permalink
Implemented function under button Editar to go to Cadastro page w…
Browse files Browse the repository at this point in the history
…ith an existing `PlanoConta`
  • Loading branch information
disouzam committed Dec 20, 2024
1 parent 48096e7 commit 4b4c542
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<td>@item.Nome</td>
<td>@item.Tipo</td>
<td>
<button type="button" class="btn btn-warning" onclick="Editar()">Editar</button>
<button type="button" class="btn btn-warning" onclick="Editar(@item.Id)">Editar</button>
</td>
<td>
<button type="button" class="btn btn-danger" onclick="Excluir()">Excluir</button>
Expand All @@ -47,8 +47,8 @@
</table>

<script>
function Editar() {
alert("Aqui estará a lógica do botão Editar")
function Editar(id) {
window.location.href = "../PlanoConta/Cadastro/" + id;
}
function Excluir() {
Expand Down

0 comments on commit 4b4c542

Please sign in to comment.