UI Samples

Table with scroll

A basic table that enables scrolling when it doesn't fit horizontally.

Rendered with

{% load sample_ui %}

<div class="overflow-auto">
  <table class="table">
    <thead>
      <tr>
        <th scope="col">#</th>
        <th scope="col">Name</th>
        <th scope="col">Title</th>
        <th scope="col">View</th>
      </tr>
    </thead>
    <tbody>
      {% sample_urls as samples %}
      {% for name, title in samples %}
        {% with url_name='sample_ui:'|add:name %}
          <tr>
            <th scope="row">{{ forloop.counter }}</th>
            <td class="text-nowrap">{{ name }}</td>
            <td>{{ title }}</td>
            <td>
              <a href="{% url url_name %}"><i class="bi bi-eye-fill"></i></a>
            </td>
          </tr>
        {% endwith %}
      {% endfor %}
    </tbody>
  </table>
</div>

# Name Title View
1 crispy:form-using-filter Using crispy filter
2 crispy:form-using-tag Using crispy tag
3 crispy:horizontal-helper-attr Horizontal via helper
4 crispy:horizontal-view-manip Horizontal via view
5 crispy:form-in-div Inside a div
6 crispy:form-full Fully loaded form
7 uie:form-bare Bare form
8 uie:form-simple Form in card
9 uie:form-horizontal Horizontal form
10 uie:form-by-field Form by field
11 uie:form-inline Inline form
12 uie:form-with-files Form with files
13 uie:form-full Fully loaded form
14 uie:formset Formset
15 uie:pagination Pagination
16 uie:misc Miscellaneous
17 styles:general General
18 styles:cards Cards
19 styles:forms Forms
20 styles:tables Tables
21 styles:info-box Info-box
22 styles:small-box Small-box
23 styles:timeline Timeline
24 tables:simple-scroll With scroll
25 tables:simple-overflow Overflowing