{% extends "base.html" %} {% load i18n %} {% block head-title %}👋 Top Level Title with Emoji{% endblock %} {% block page-title %}TAB DEBAT MALAYSIA Style Guide{% endblock %} {% block nav %}{% endblock %} {% block content %}
Alerts (notify of system events)
{% include "components/alert.html" with type="info" message="This is an alert of an informative event that has happened." %} {% include "components/alert.html" with type="success" message="This is an alert of a successful event that has happened." %} {% include "components/alert.html" with type="warning" message="This is a message of a warning." %} {% include "components/alert.html" with type="danger" message="This is a message of an error or bad thing that happened" %}
Nav actions
{% include "components/item-action.html" with text="Nav Action Item" icon="feather" %}
Calls to Action (prompt for necessary actions)
{% include "components/item-action.html" with url="#" alone=True text="Go to the draw area to allocate adjudicators." type="success" to_complete=True %}
Info Cards (explain crucial information on a page)
{% blocktrans trimmed asvar p1 %}This style of info card announces critical information. Link.{% endblocktrans %} {% include "components/explainer-card.html" with type="warning" %} {% blocktrans trimmed asvar p1 %}This style of info card announces general information.{% endblocktrans %} {% include "components/explainer-card.html" with type="info" p2="This is a second paragraph" %}
Action Cards (i.e. for checkins)
Thing B
{% include "components/item-info.html" with p1="This is a possibly important issue to be rectified with the below action" type="warning" %} {% include "components/item-info.html" with p1="This is a crucial issue to be rectified with the below action" type="danger" %} {% include "components/item-action.html" with text="Edit a thing" type="primary" %}
Thing C
{% include "components/item-info.html" with p1="This is an informative note relevant to the below action" type="info" %} {% include "components/item-info.html" with p1="This is an even less informative note" type="secondary" %} {% include "components/item-action.html" with text="Do a thing" type="success" to_complete=True %}
Cards (for sections of info or link blocks)

Info Title

Info description
Tables

Optional Table Title

Title Title Title
Content Content Content
Content Content Content
Action Buttons (for forms or headers with actions)
Primary Data-Altering Action
Disabled PDAA
Secondary Data-Altering Action
Disabled SDA
Destructive Action
Disabled DA

Info (unused?)
Warning (unused?)
Nav Buttons (acting as links or navigation items in headers)
A link to somewhere
An active link to somewhere (typically indicates current page)
Forms
{% trans "Form Title" context "page title" as title %} {% trans "Sub Title Title" as text %} {% include "components/form-title.html" with icon="feather" %}
This is an error message raised by the form
Hint for form field
Hint for form field
  • Error for form field
{% trans "Log In" context "button" as title %} {% trans "I forgot my password" context "button" as subtitle %} {% url 'password_reset' as suburl %} {% include "components/form-submit.html" %}
Diversity Colors

Allocation Conflicts Colors

Allocation Histories Colors

Allocation Adj Ranking Colors
Positions Colors
OG
OO
CG
CO

Aff
Neg
{% endblock content %}