mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 13:19:16 -05:00
list views
This commit is contained in:
17
cookbook/templates/generic/list_template.html
Normal file
17
cookbook/templates/generic/list_template.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{% extends "base.html" %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% load i18n %}
|
||||
{% load django_tables2 %}
|
||||
|
||||
{% block title %}{% trans 'List' %} - {{ title }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h3>{{ title }} {% trans 'List' %}</h3>
|
||||
<br/>
|
||||
|
||||
{% if table %}
|
||||
{% render_table table %}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
@@ -4,8 +4,8 @@
|
||||
<div class="row">
|
||||
<div class="table-responsive">
|
||||
{% block table %}
|
||||
<table style='font-size: 24px' {% if table.attrs %}
|
||||
{{ table.attrs.as_html }}{% else %}class="table table-bordered table-xl"{% endif %}>
|
||||
<table {% if table.attrs %} <!-- style='font-size: 24px' removed because smaller looked better -->
|
||||
{{ table.attrs.as_html }}{% else %}class="table table-bordered"{% endif %}>
|
||||
{% block table.thead %}
|
||||
{% if table.show_header %}
|
||||
<thead>
|
||||
|
||||
Reference in New Issue
Block a user