django_spire/core/management/commands/spire_opencode_pkg/skills/detail_templates/SKILL.md
Examples on how we implement our detail templates (page and card).
npx skillsauth add stratusadv/django-spire detail-templatesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
details_page.html
{% extends 'django_spire/page/full_page.html' %}
{% block full_page_content %}
<div class="row g-3">
<div class="col-12">
{% include 'friend/card/detail_card.html' %}
</div>
<div class="col-md-8">
{% include 'friend/chin_waggle/card/list_card.html' %}
</div>
<div class="col-md-4">
{% include 'django_spire/activity/card/list_card.html' with activity_log=friend.activity_log.prefetch_user %}
</div>
</div>
{% endblock %}
detail_card.html
{% extends 'django_spire/card/title_card.html' %}
{% block card_title %}
Friend
{% endblock %}
{% block card_button %}
{% if perms.friend.change_friend %}
{% url 'mort:friend:form:update' pk=friend.pk as friend_edit_url %}
{% include 'django_spire/button/primary_dark_button.html' with button_text='Edit' button_icon='bi bi-pencil' button_href=friend_edit_url %}
{% endif %}
{% endblock %}
{% block card_title_content %}
<div class="row g-3">
<div class="col-12">
{% include 'django_spire/element/attribute_element.html' with attribute_title='Name' attribute_value=friend.first_name %}
</div>
<div class="col-12">
{% include 'django_spire/element/attribute_element.html' with attribute_title='Description' attribute_value=friend.last_name %}
</div>
</div>
{% endblock %}
development
How to implement table templates in Django Spire.
development
How to implement tab templates in Django Spire.
development
Service layer best practices on django models
development
Best practices for seeding django models