Skip to content

Instantly share code, notes, and snippets.

@ederrafo
Created January 19, 2023 15:38
Show Gist options
  • Save ederrafo/d47cc65914bdd38977ec1341ac9bfea9 to your computer and use it in GitHub Desktop.
Save ederrafo/d47cc65914bdd38977ec1341ac9bfea9 to your computer and use it in GitHub Desktop.
<form method="POST" th:action="@{/expenses/plannings/update}"
th:object="${planBranchReport}">
<input type="hidden" name="id" th:value="${ planBranchReport.id }">
<input type="hidden" name="status" value="V">
<input type="hidden" name="branch" th:value="${planBranchReport.branch}">
<input type="hidden" name="name" th:value="${officeName}">
<button th:if="${planBranchReport.status == 'O'}" type="submit"
class="btn btn-success" onclick="if (confirm('Esta Usted seguro?')) {
return true;
} else { return false; }"> Anular</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment