- New Features - Add delete buttons with confirmation modals for users, expenses, invoices, and tickets - Introduce a priority column with styled badges in the ticket list - Refactor form fields to a shared partial for cleaner markup - Enhancements - Rename “Creator” to “Assignee” and improve status/priority badge rendering - Fix empty‑state colspan and correct broken delete‑modal label closing tag - Initialize Quill editor on the ticket detail page - Bug Fixes - Resolve typo in button class name and mismatched table header count
47 lines
3.2 KiB
HTML
47 lines
3.2 KiB
HTML
{% extends "base_authenticated.html" %}
|
|
{% block title %}Kanban Boards{% endblock %}
|
|
{% block content_inner %}
|
|
<div class="flex items-center justify-between mb-6">
|
|
<div>
|
|
<h1 class="text-2xl font-bold text-gray-900">Kanban Boards</h1>
|
|
<p class="text-gray-500 mt-1">Manage your personal task boards.</p>
|
|
</div>
|
|
<a href="{% url 'board_create' %}" class="btn bg-blue-600 text-white hover:bg-blue-700 border-0">
|
|
<svg class="w-4 h-4 mr-1" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"/></svg>
|
|
New Board
|
|
</a>
|
|
</div>
|
|
<div class="grid gap-4 md:grid-cols-2 lg:grid-cols-3">
|
|
{% for board in boards %}
|
|
<div class="bg-white rounded-2xl shadow-sm border border-gray-100 hover:shadow-md transition-shadow overflow-hidden">
|
|
<div class="p-5">
|
|
<div class="flex items-center justify-between mb-3">
|
|
<div class="w-10 h-10 rounded-xl bg-blue-600 flex items-center justify-center text-white font-bold text-sm">B</div>
|
|
<span class="text-xs text-gray-400">{{ board.columns.count }} columns</span>
|
|
</div>
|
|
<a href="{% url 'board_detail' board.pk %}" class="text-lg font-semibold text-gray-900 hover:text-blue-600 transition-colors">{{ board.name }}</a>
|
|
<p class="text-sm text-gray-500 mt-1">Owner: {{ board.owner.username }}</p>
|
|
{% if board.project %}<p class="text-xs text-gray-400 mt-1">Project: {{ board.project.name }}</p>{% endif %}
|
|
</div>
|
|
<div class="px-5 py-3 bg-gray-50 border-t border-gray-100 flex gap-2">
|
|
<a href="{% url 'board_detail' board.pk %}" class="text-sm text-blue-600 hover:text-blue-800 font-medium">Open</a>
|
|
<a href="{% url 'board_edit' board.pk %}" class="text-sm text-gray-500 hover:text-gray-700 ml-auto">Edit</a>
|
|
<label for="delete-board-{{ board.pk }}" class="text-sm text-red-600 hover:text-red-800 font-medium cursor-pointer">Delete</label>
|
|
</div>
|
|
</div>
|
|
{% empty %}
|
|
<div class="col-span-full bg-white rounded-2xl shadow-sm border border-gray-100 p-12 text-center">
|
|
<svg class="w-12 h-12 text-gray-300 mx-auto mb-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 17V7m0 10a2 2 0 01-2 2H5a2 2 0 01-2-2V7a2 2 0 012-2h2a2 2 0 012 2m0 10a2 2 0 002 2h2a2 2 0 002-2M9 7a2 2 0 012-2h2a2 2 0 012 2m0 10V7"/></svg>
|
|
<p class="text-gray-500">No boards yet.</p>
|
|
<a href="{% url 'board_create' %}" class="btn bg-blue-600 text-white hover:bg-blue-700 border-0 mt-3">Create your first board</a>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% for board in boards %}
|
|
{% with board_id=board.pk|stringformat:"s" %}
|
|
{% url 'board_delete' board.pk as delete_url %}
|
|
{% include "components/delete_modal.html" with modal_id="delete-board-"|add:board_id title="Delete Board" message="Are you sure you want to delete this board? This action cannot be undone." delete_url=delete_url %}
|
|
{% endwith %}
|
|
{% endfor %}
|
|
{% endblock %}
|