Files
project-managment/templates/pages/kanban/board_list.html
T
sankalp 0537ea5e5e feat(templates): enrichUI with Tailwind styling and messaging component improvements
- Add custom border, background, and spacing utilities to base template
- Enhance message notification styling and layout
- Update delete modal button appearance and behavior
- Refine comment card component with Tailwind classes and responsive behavior
- Adjust sidebar responsiveness for mobile view
2026-05-28 00:51:41 +05:45

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-primary">Kanban Boards</h1>
<p class="text-tertiary mt-1">Manage your personal task boards.</p>
</div>
<a href="{% url 'board_create' %}" class="px-3 py-1.5 rounded-lg text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors">
<svg class="w-4 h-4 mr-1 inline" 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="card-surface hover:border-blue-300 transition-colors 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-muted">{{ board.columns.count }} columns</span>
</div>
<a href="{% url 'board_detail' board.pk %}" class="text-lg font-semibold text-primary hover:text-blue-600 transition-colors">{{ board.name }}</a>
<p class="text-sm text-tertiary mt-1">Owner: {{ board.owner.username }}</p>
{% if board.project %}<p class="text-xs text-muted mt-1">Project: {{ board.project.name }}</p>{% endif %}
</div>
<div class="px-5 py-3 bg-hover border-t border-subtle 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-tertiary hover:text-secondary 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 card-surface p-12 text-center">
<svg class="w-12 h-12 text-muted 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-tertiary">No boards yet.</p>
<a href="{% url 'board_create' %}" class="inline-block mt-3 px-3 py-1.5 rounded-lg text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 transition-colors">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 %}