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.
24 lines
1023 B
HTML
24 lines
1023 B
HTML
{% extends "base.html" %}
|
|
{% block title %}{% if object %}Edit{% else %}New{% endif %} Project{% 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 %} Project</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 'project_list' %}" class="btn btn-ghost mt-2">Cancel</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|