en un clic
tab-template
How to implement tab templates in Django Spire.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
How to implement tab templates in Django Spire.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
Service layer best practices on django models
How to implement badges in html templates.
How to implement Django Spire buttons in HTML templates.
How to implement container templates in Django Spire.
How to implement table templates in Django Spire.
Best practice for working with Django models
| name | tab-template |
| description | How to implement tab templates in Django Spire. |
└── template/
└── partner/
└── tab/
├── tabs.html
├── contact_tab.html
├── work_tab.html
└── notes_tab.html
For each tab section, you must create a dedicated template that extends the Django Spire tab section element:
templates/partner/tab/tabs.html
{% extends 'django_spire/tab/tab.html' %}
{% block tab_triggers %}
{% include 'django_spire/tab/element/tab_trigger_element.html' with trigger_title='Contacts' %}
{% include 'django_spire/tab/element/tab_trigger_element.html' with trigger_title='Work' %}
{% include 'django_spire/tab/element/tab_trigger_element.html' with trigger_title='Notes' %}
{% endblock %}
{% block tab_sections %}
{% include 'partner/tab/contact_tab.html' %}
{% include 'partner/tab/work_tab.html' %}
{% include 'partner/tab/notes_tab.html' %}
{% endblock %}
Each tab section should extend the base tab section element:
templates/partner/tab/contact_tab.html
{% extends 'django_spire/tab/element/tab_section_element.html' %}
{% block tab_section_content %}
<h3>Partner Contacts</h3>
<p>Contact information would go here.</p>
{% endblock %}
templates/partner/tab/work_tab.html
{% extends 'django_spire/tab/element/tab_section_element.html' %}
{% block tab_section_content %}
<h3>Partner Work Information</h3>
<p>Work details would go here.</p>
{% endblock %}
templates/partner/tab/notes_tab.html
{% extends 'django_spire/tab/element/tab_section_element.html' %}
{% block tab_section_content %}
<h3>Partner Notes</h3>
<p>Notes and comments would go here.</p>
{% endblock %}
django_spire/tab/element/tab_section_element.html