Change edit forms to use the edit action

This commit is contained in:
Melon 2024-05-16 23:16:43 +01:00
parent 6db1e0eacd
commit c6bb9d7cba
Signed by: melon
GPG Key ID: 6C9D970C50D26A25
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@
<div class="center-box sm:max-w-2xl"> <div class="center-box sm:max-w-2xl">
<h1 class="box-title">Edit Client Application</h1> <h1 class="box-title">Edit Client Application</h1>
<form id="manage-apps-edit" method="POST" action="/manage/apps" class="space-y-4 md:space-y-6"> <form id="manage-apps-edit" method="POST" action="/manage/apps" class="space-y-4 md:space-y-6">
<input type="hidden" name="action" value="create"/> <input type="hidden" name="action" value="edit"/>
<input type="hidden" name="offset" value="{{.Offset}}"/> <input type="hidden" name="offset" value="{{.Offset}}"/>
<input type="hidden" name="subject" value="{{.EditApp.Subject}}"/> <input type="hidden" name="subject" value="{{.EditApp.Subject}}"/>
<div> <div>

View File

@ -11,7 +11,7 @@
<div class="center-box sm:max-w-2xl"> <div class="center-box sm:max-w-2xl">
<h1 class="box-title">Edit User</h1> <h1 class="box-title">Edit User</h1>
<form id="manage-users-edit" method="POST" action="/manage/users" class="space-y-4 md:space-y-6"> <form id="manage-users-edit" method="POST" action="/manage/users" class="space-y-4 md:space-y-6">
<input type="hidden" name="action" value="create"/> <input type="hidden" name="action" value="edit"/>
<input type="hidden" name="offset" value="{{.Offset}}"/> <input type="hidden" name="offset" value="{{.Offset}}"/>
<input type="hidden" name="subject" value="{{.EditUser.Subject}}"/> <input type="hidden" name="subject" value="{{.EditUser.Subject}}"/>
<div> <div>