Files
project-managment/templates/pages/issues/issue_form.html
T
sankalp 001e6fac48 feat(templates): add core UItemplates for authentication and ticket management
New Features
- Added `templates/base.html` with Tailwind, HTMX, and project management title block.
- Introduced `templates/base/base.html` as a minimal fallback layout.
- Created `templates/components/navbar.html` with authenticated navigation menu.
- Implemented `templates/pages/accounts/login.html` for user authentication.
- Developed ticket management templates:
  - `templates/pages/tickets/ticket_list.html` for displaying tickets.
  - `templates/pages/tickets/ticket_form.html` for creating/editing tickets.

Enhancements
- Structured all new templates to inherit from the shared base layout.
- Integrated Tailwind CSS and HTMX via CDN for consistent styling and interactivity.
- Provided placeholder blocks for extra head and scripts to allow future extensions.

Bug Fixes- No bug fixes included in this commit.
2026-05-27 23:32:54 +05:45

24 lines
1017 B
HTML

{% extends "base.html" %}
{% block title %}{% if object %}Edit{% else %}New{% endif %} Issue{% endblock %}
{% block content %}
<div class="card bg-base-100 shadow-xl max-w-lg mx-auto">
<div class="card-body">
<h2 class="card-title text-2xl mb-4">{% if object %}Edit{% else %}New{% endif %} Issue</h2>
<form method="post">
{% csrf_token %}
{% for field in form %}
<div class="form-control">
<label class="label"><span class="label-text">{{ field.label }}</span></label>
{{ field }}
{% if field.errors %}<span class="text-error text-sm">{{ field.errors.0 }}</span>{% endif %}
</div>
{% endfor %}
<div class="form-control mt-6">
<button type="submit" class="btn btn-primary">Save</button>
<a href="{% url 'issue_list' %}" class="btn btn-ghost mt-2">Cancel</a>
</div>
</form>
</div>
</div>
{% endblock %}