Download add_transaction.html from Seunkinsy/codehire-coders-galore: direct link, hf CLI and curl.
- Browser
- Download file 2.54 kB
-
https://huggingface.co/spaces/Seunkinsy/codehire-coders-galore/resolve/main/add_transaction.html
- Command line
-
hf download hf://spaces/Seunkinsy/codehire-coders-galore/add_transaction.html
-
curl -L -o add_transaction.html https://huggingface.co/spaces/Seunkinsy/codehire-coders-galore/resolve/main/add_transaction.html
2.54 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Add Transaction</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <div class="min-h-screen flex items-center justify-center"> | |
| <div class="bg-white p-8 rounded-lg shadow-md w-full max-w-md"> | |
| <div class="mb-4"> | |
| <a href="{% url 'dashboard' %}" class="text-blue-600 hover:text-blue-800">← Back</a> | |
| </div> | |
| <h1 class="text-2xl font-bold text-gray-800 mb-6 text-center">Add Transaction</h1> | |
| <form method="post" class="space-y-4"> | |
| {% csrf_token %} | |
| <div> | |
| <label for="title" class="block text-sm font-medium text-gray-700">Title</label> | |
| <input type="text" id="title" name="title" required | |
| class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"> | |
| </div> | |
| <div> | |
| <label for="amount" class="block text-sm font-medium text-gray-700">Amount</label> | |
| <input type="number" id="amount" name="amount" step="0.01" required | |
| class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"> | |
| </div> | |
| <div> | |
| <label for="type" class="block text-sm font-medium text-gray-700">Type</label> | |
| <select id="type" name="type" required | |
| class="mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500"> | |
| <option value="">Select Type</option> | |
| <option value="Income">Income</option> | |
| <option value="Expense">Expense</option> | |
| </select> | |
| </div> | |
| <button type="submit" | |
| class="w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"> | |
| Save Transaction | |
| </button> | |
| </form> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |