fix: misc
This commit is contained in:
+7
-3
@@ -21,12 +21,12 @@
|
||||
<input type="text" id="name" name="name" value="{{ .Name }}" class="w-full border border-gray-300 rounded-md p-2 focus:outline-none focus:ring focus:ring-blue-500">
|
||||
</div>
|
||||
|
||||
<form action="/access/{{ .Id }}" method="POST">
|
||||
<form action="/groups/{{ .Id }}" method="POST">
|
||||
{{ range .Cards }}
|
||||
<div class="mx-auto p-4 m-4 bg-gray-100 flex flex-wrap border rounded shadow-md">
|
||||
{{ .Name }} - {{ .CardSerial }}
|
||||
<div class="grid grid-cols-2 mt-4 flex flex-wrap gap-2 w-full">
|
||||
<button type="submit" name="action" value="removeGroup" class="bg-red-500 hover:bg-red-700 text-white
|
||||
<button type="submit" name="action" value="deleteCard" class="bg-red-500 hover:bg-red-700 text-white
|
||||
text-sm/6 font-bold py-2 px-4 rounded">Remove Card</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -34,13 +34,17 @@
|
||||
</form>
|
||||
|
||||
<div class="mb-4">
|
||||
<form action="/access/{{ .Id }}" method="POST">
|
||||
<form action="/groups/{{ .Id }}" method="POST">
|
||||
<label for="variant-value1" class="block text-sm/6 font-medium text-gray-900">Card Name</label>
|
||||
<input type="text" id="name" name="name" placeholder="name" class="w-full border border-gray-300 rounded-md p-2 focus:outline-none focus:ring focus:ring-blue-500">
|
||||
<div class="grid grid-cols-2 mt-4 flex flex-wrap gap-2 w-full">
|
||||
<button type="submit" name="action" value="addCard" class="bg-green-500 hover:bg-red-700 text-white
|
||||
text-sm/6 font-bold py-2 px-4 rounded">Add Card</button>
|
||||
</div>
|
||||
<div class="grid grid-cols-2 mt-4 flex flex-wrap gap-2 w-full">
|
||||
<button type="submit" name="action" value="deleteCard" class="bg-red-500 hover:bg-red-700 text-white
|
||||
text-sm/6 font-bold py-2 px-4 rounded">Remove Card</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user