fixed rolodex page
This commit is contained in:
@@ -1,35 +1,4 @@
|
||||
{#
|
||||
Reusable macros for answer-table pattern: summary, table with selection,
|
||||
bulk actions bar, and pagination controls.
|
||||
|
||||
Usage in a page:
|
||||
{% from "partials/answer_table_macros.html" import results_summary, pagination, answer_table, bulk_actions_bar %}
|
||||
|
||||
<div class="col-12 text-muted small">{{ results_summary(start_index, end_index, total) }}</div>
|
||||
|
||||
{% set headers = [
|
||||
{ 'title': 'Name', 'width': '220px' },
|
||||
{ 'title': 'Company' },
|
||||
{ 'title': 'Address' },
|
||||
{ 'title': 'City' },
|
||||
{ 'title': 'State', 'width': '80px' },
|
||||
{ 'title': 'ZIP', 'width': '110px' },
|
||||
{ 'title': 'Phones', 'width': '200px' },
|
||||
{ 'title': 'Actions', 'width': '140px', 'align': 'end' },
|
||||
] %}
|
||||
|
||||
{% call(answer_table(headers, form_action='/reports/phone-book', select_name='client_ids', enable_bulk=enable_bulk)) %}
|
||||
{# render <tr>...</tr> rows here #}
|
||||
{% endcall %}
|
||||
|
||||
{% if enable_bulk %}
|
||||
{% call(bulk_actions_bar()) %}
|
||||
{# render bulk action buttons/links here #}
|
||||
{% endcall %}
|
||||
{% endif %}
|
||||
|
||||
{{ pagination('/rolodex', page, total_pages, page_size, {'q': q, 'phone': phone}) }}
|
||||
#}
|
||||
{# Jinja macros for reusable table patterns. #}
|
||||
|
||||
{% macro results_summary(start_index, end_index, total) -%}
|
||||
{% if total and total > 0 %}
|
||||
|
||||
Reference in New Issue
Block a user