Files
project-managment/templates/pages/projects/project_form.html
T
sankalp a42fd580b7 refactor(templates/pages): redesign login, profile, and ticket list UI with Tailwind improvements
Added branding and updated layouts using base_authenticated.html; applied consistent Tailwind styling across authentication and ticket pages; improved usability with hover effects and clearer typography.

New Features:
-

Enhancements:
- Refactored login page layout to use a centered card with branding and modern styling.
- Updated profile page to use the authenticated base template and a refined card design.
- Enhanced ticket list page with a descriptive subtitle, SVG icon, and refined table styling including hover states and better typography.

Bug Fixes:
- Fixed template inheritance to use base_authenticated.html for profile and tickets pages.
- Corrected form button text and styling for consistency.
2026-05-28 00:00:06 +05:45

27 lines
1.3 KiB
HTML

{% extends "base_authenticated.html" %}
{% block title %}{% if object %}Edit{% else %}New{% endif %} Project{% endblock %}
{% block content_inner %}
<div class="max-w-2xl mx-auto">
<div class="bg-white rounded-2xl shadow-sm border border-gray-100 p-6">
<h1 class="text-xl font-bold text-gray-900 mb-1">{% if object %}Edit{% else %}New{% endif %} Project</h1>
<p class="text-sm text-gray-500 mb-6">{% if object %}Update the project details below.{% else %}Fill in the details to create a new project.{% endif %}</p>
<form method="post" class="space-y-4">
{% csrf_token %}
{% for field in form %}
<div>
<label class="text-sm font-medium text-gray-700">{{ field.label }}</label>
{{ field }}
{% if field.errors %}<p class="text-red-500 text-xs mt-1">{{ field.errors.0 }}</p>{% endif %}
</div>
{% endfor %}
<div class="flex gap-3 pt-2">
<button type="submit" class="btn bg-blue-600 text-white hover:bg-blue-700 border-0">
{% if object %}Save Changes{% else %}Create Project{% endif %}
</button>
<a href="{% url 'project_list' %}" class="btn btn-ghost">Cancel</a>
</div>
</form>
</div>
</div>
{% endblock %}