cfone/app/home/templates/tables-bootstrap.html
2021-09-22 23:46:35 -04:00

466 lines
15 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "layouts/base.html" %}
{% block title %} UI Tables {% endblock %}
<!-- Specific Page CSS goes HERE -->
{% block stylesheets %}{% endblock stylesheets %}
{% block content %}
<main class="content">
<div class="container-fluid p-0">
<h1 class="h3 mb-3">Tables</h1>
<div class="row">
<div class="col-12 col-xl-6">
<div class="card">
<div class="card-header">
<h5 class="card-title">Basic Table</h5>
<h6 class="card-subtitle text-muted">Using the most basic table markup, heres how .table-based tables look in Bootstrap.</h6>
</div>
<table class="table">
<thead>
<tr>
<th style="width:40%;">Name</th>
<th style="width:25%">Phone Number</th>
<th class="d-none d-md-table-cell" style="width:25%">Date of Birth</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>Vanessa Tucker</td>
<td>864-348-0485</td>
<td class="d-none d-md-table-cell">June 21, 1961</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr>
<td>William Harris</td>
<td>914-939-2458</td>
<td class="d-none d-md-table-cell">May 15, 1948</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr>
<td>Sharon Lessman</td>
<td>704-993-5435</td>
<td class="d-none d-md-table-cell">September 14, 1965</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr>
<td>Christina Mason</td>
<td>765-382-8195</td>
<td class="d-none d-md-table-cell">April 2, 1971</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr>
<td>Robin Schneiders</td>
<td>202-672-1407</td>
<td class="d-none d-md-table-cell">October 12, 1966</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-12 col-xl-6">
<div class="card">
<div class="card-header">
<h5 class="card-title">Striped Rows</h5>
<h6 class="card-subtitle text-muted">Use <code>.table-striped</code> to add zebra-striping to any table row within the <code>&lt;tbody&gt;</code>.</h6>
</div>
<table class="table table-striped">
<thead>
<tr>
<th style="width:40%;">Name</th>
<th style="width:25%">Phone Number</th>
<th class="d-none d-md-table-cell" style="width:25%">Date of Birth</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>Vanessa Tucker</td>
<td>864-348-0485</td>
<td class="d-none d-md-table-cell">June 21, 1961</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr>
<td>William Harris</td>
<td>914-939-2458</td>
<td class="d-none d-md-table-cell">May 15, 1948</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr>
<td>Sharon Lessman</td>
<td>704-993-5435</td>
<td class="d-none d-md-table-cell">September 14, 1965</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr>
<td>Christina Mason</td>
<td>765-382-8195</td>
<td class="d-none d-md-table-cell">April 2, 1971</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr>
<td>Robin Schneiders</td>
<td>202-672-1407</td>
<td class="d-none d-md-table-cell">October 12, 1966</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-12 col-xl-6">
<div class="card">
<div class="card-header">
<h5 class="card-title">Condensed Table</h5>
<h6 class="card-subtitle text-muted">Add <code>.table-sm</code> to make tables more compact by cutting cell padding in half.</h6>
</div>
<table class="table table-striped table-sm">
<thead>
<tr>
<th>Operation System</th>
<th class="text-right">Users</th>
<th class="text-right">Share</th>
</tr>
</thead>
<tbody>
<tr>
<td>Windows</td>
<td class="text-right">8.232</td>
<td class="text-right">40%</td>
</tr>
<tr>
<td>Mac OS</td>
<td class="text-right">3.322</td>
<td class="text-right">20%</td>
</tr>
<tr>
<td>Linux</td>
<td class="text-right">4.232</td>
<td class="text-right">34%</td>
</tr>
<tr>
<td>FreeBSD</td>
<td class="text-right">1.121</td>
<td class="text-right">12%</td>
</tr>
<tr>
<td>Chrome OS</td>
<td class="text-right">1.331</td>
<td class="text-right">15%</td>
</tr>
<tr>
<td>Android</td>
<td class="text-right">2.301</td>
<td class="text-right">20%</td>
</tr>
<tr>
<td>iOS</td>
<td class="text-right">1.162</td>
<td class="text-right">14%</td>
</tr>
<tr>
<td>Windows Phone</td>
<td class="text-right">562</td>
<td class="text-right">7%</td>
</tr>
<tr>
<td>Other</td>
<td class="text-right">1.181</td>
<td class="text-right">14%</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-12 col-xl-6">
<div class="card">
<div class="card-header">
<h5 class="card-title">Hoverable Rows</h5>
<h6 class="card-subtitle text-muted">Add <code>.table-hover</code> to enable a hover state on table rows within a <code>&lt;tbody&gt;</code>.</h6>
</div>
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Name</th>
<th>Phone Number</th>
<th>Date of Birth</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<img src="/static/assets/img/avatars/avatar-5.jpg" width="48" height="48" class="rounded-circle mr-2" alt="Avatar"> Vanessa Tucker
</td>
<td>864-348-0485</td>
<td>June 21, 1961</td>
</tr>
<tr>
<td>
<img src="/static/assets/img/avatars/avatar-2.jpg" width="48" height="48" class="rounded-circle mr-2" alt="Avatar"> William Harris
</td>
<td>914-939-2458</td>
<td>May 15, 1948</td>
</tr>
<tr>
<td>
<img src="/static/assets/img/avatars/avatar-3.jpg" width="48" height="48" class="rounded-circle mr-2" alt="Avatar"> Sharon Lessman
</td>
<td>704-993-5435</td>
<td>September 14, 1965</td>
</tr>
<tr>
<td>
<img src="/static/assets/img/avatars/avatar-4.jpg" width="48" height="48" class="rounded-circle mr-2" alt="Avatar"> Christina Mason
</td>
<td>765-382-8195</td>
<td>April 2, 1971</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-12 col-xl-6">
<div class="card">
<div class="card-header">
<h5 class="card-title">Bordered Table</h5>
<h6 class="card-subtitle text-muted">Add <code>.table-bordered</code> for borders on all sides of the table and cells.</h6>
</div>
<table class="table table-bordered">
<thead>
<tr>
<th style="width:40%;">Name</th>
<th style="width:25%">Phone Number</th>
<th class="d-none d-md-table-cell" style="width:25%">Date of Birth</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>Vanessa Tucker</td>
<td>864-348-0485</td>
<td class="d-none d-md-table-cell">June 21, 1961</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr>
<td>William Harris</td>
<td>914-939-2458</td>
<td class="d-none d-md-table-cell">May 15, 1948</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr>
<td>Sharon Lessman</td>
<td>704-993-5435</td>
<td class="d-none d-md-table-cell">September 14, 1965</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr>
<td>Christina Mason</td>
<td>765-382-8195</td>
<td class="d-none d-md-table-cell">April 2, 1971</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr>
<td>Robin Schneiders</td>
<td>202-672-1407</td>
<td class="d-none d-md-table-cell">October 12, 1966</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-12 col-xl-6">
<div class="card">
<div class="card-header">
<h5 class="card-title">Contextual Classes</h5>
<h6 class="card-subtitle text-muted">Use contextual classes to color table rows or individual cells.</h6>
</div>
<table class="table">
<thead>
<tr>
<th style="width:40%;">Name</th>
<th style="width:25%">Phone Number</th>
<th class="d-none d-md-table-cell" style="width:25%">Date of Birth</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>Vanessa Tucker</td>
<td>864-348-0485</td>
<td class="d-none d-md-table-cell">June 21, 1961</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr class="table-primary">
<td>William Harris</td>
<td>914-939-2458</td>
<td class="d-none d-md-table-cell">May 15, 1948</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr>
<td>Sharon Lessman</td>
<td>704-993-5435</td>
<td class="d-none d-md-table-cell">September 14, 1965</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr class="table-success">
<td>Christina Mason</td>
<td>765-382-8195</td>
<td class="d-none d-md-table-cell">April 2, 1971</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
<tr>
<td>Robin Schneiders</td>
<td>202-672-1407</td>
<td class="d-none d-md-table-cell">October 12, 1966</td>
<td class="table-action">
<a href="#"><i class="align-middle" data-feather="edit-2"></i></a>
<a href="#"><i class="align-middle" data-feather="trash"></i></a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-12">
<div class="card">
<div class="card-header">
<h5 class="card-title">Always responsive</h5>
<h6 class="card-subtitle text-muted">Across every breakpoint, use <code>.table-responsive</code> for horizontally scrolling tables.</h6>
</div>
<div class="table-responsive">
<table class="table mb-0">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Heading</th>
<th scope="col">Heading</th>
<th scope="col">Heading</th>
<th scope="col">Heading</th>
<th scope="col">Heading</th>
<th scope="col">Heading</th>
<th scope="col">Heading</th>
<th scope="col">Heading</th>
<th scope="col">Heading</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
</tr>
<tr>
<th scope="row">3</th>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
<td>Cell</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</main>
{% endblock content %}
<!-- Specific Page JS goes HERE -->
{% block javascripts %}{% endblock javascripts %}