diff --git a/tests/django_admin/admin/base.html b/tests/django_admin/admin/base.html index b5fe1b8..f0e74af 100644 --- a/tests/django_admin/admin/base.html +++ b/tests/django_admin/admin/base.html @@ -59,14 +59,10 @@ {% endif %} {% endif %} {% if user.has_usable_password %} - - {% translate 'Change password' %} - + {% translate 'Change password' %} / {% endif %} - - {% translate 'Log out' %} - + {% translate 'Log out' %} {% endblock %} {% endif %} diff --git a/tests/django_admin/admin/change_list.html b/tests/django_admin/admin/change_list.html index a29b361..b967395 100644 --- a/tests/django_admin/admin/change_list.html +++ b/tests/django_admin/admin/change_list.html @@ -97,9 +97,7 @@
Generated by - - django cms - + django cms {% now "d.m.Y H:i:s" %}.
diff --git a/tests/django_cms/admin/cms/page/permissions.html b/tests/django_cms/admin/cms/page/permissions.html index b1e7e36..a0d7ca4 100644 --- a/tests/django_cms/admin/cms/page/permissions.html +++ b/tests/django_cms/admin/cms/page/permissions.html @@ -13,9 +13,7 @@{% if show_delete_link %} - - {% trans "Delete" %} - + {% trans "Delete" %} {% endif %} {% if show_buttons %} - - {% filter escapejs %}{% trans "last change on" %}{% endfilter %}: - + {% filter escapejs %}{% trans "last change on" %}{% endfilter %}: {{ page.changed_date|date:"Y-m-d H:i:s" }}
{% endif %} {% if page.get_template_display %}- - {% filter escapejs %}{% trans "template" %}{% endfilter %}: - + {% filter escapejs %}{% trans "template" %}{% endfilter %}: {{ page.get_template_display }}
{% endif %} {% if metadata %}- - {% filter escapejs %}{% trans "meta" %}{% endfilter %}: - + {% filter escapejs %}{% trans "meta" %}{% endfilter %}: {{ metadata }}
{% endif %} {% if page.site %}- - {% filter escapejs %}{% trans "site" %}{% endfilter %}: - + {% filter escapejs %}{% trans "site" %}{% endfilter %}: {{ page.site }}
{% endif %} diff --git a/tests/django_cms/admin/cms/page/tree/legend.html b/tests/django_cms/admin/cms/page/tree/legend.html index e098e66..a0d65b4 100644 --- a/tests/django_cms/admin/cms/page/tree/legend.html +++ b/tests/django_cms/admin/cms/page/tree/legend.html @@ -4,9 +4,7 @@- {% trans "It is being redirected to:" %} - - {{ cms_toolbar.redirect_url }} - -
+ {% endfor %} + {% endif %}Is Progressible: - - {% icon 'maki:roadblock-11' 24 %} - + {% icon 'maki:roadblock-11' 24 %} {% endif %}
You Still Owe: @@ -123,9 +121,7 @@ {% else %}
Is Accrued: - - {% icon 'maki:roadblock-11' 24 %} - + {% icon 'maki:roadblock-11' 24 %}
{% endif %}@@ -178,12 +174,8 @@ {% else %}
Is Progressible: - - {% icon 'maki:roadblock-11' 24 %} - + {% icon 'maki:roadblock-11' 24 %} {% endif %}
Owed to You: {% currency_symbol %}{{ invoice.get_amount_open | currency_format }} @@ -118,9 +116,7 @@ {% else %}
Is Progressible: - - {% icon 'maki:roadblock-11' 24 %} - + {% icon 'maki:roadblock-11' 24 %}
{% endif %}@@ -158,12 +154,8 @@ {% else %}
diff --git a/tests/django_ledger/pns_list.html b/tests/django_ledger/pns_list.html index 6c2e053..9c18d31 100644 --- a/tests/django_ledger/pns_list.html +++ b/tests/django_ledger/pns_list.html @@ -8,15 +8,11 @@
{{ discount.description }} @@ -255,16 +233,12 @@ {% endblock %} {% block order_total %}
@@ -194,9 +168,7 @@ {% url 'catalogue:reviews-add' product_slug=product.slug product_pk=product.id as add_review_url %} {% blocktrans %} This product does not have any reviews yet - - - be the first to write one - + be the first to write one . {% endblocktrans %} {% else %} @@ -218,9 +190,7 @@ {% with recommended_products=product.sorted_recommended_products|slice:":6" %} {% if recommended_products %}
diff --git a/tests/django_oscar/oscar/catalogue/reviews/review_detail.html b/tests/django_oscar/oscar/catalogue/reviews/review_detail.html index 8bcb6d1..77e57f6 100644 --- a/tests/django_oscar/oscar/catalogue/reviews/review_detail.html +++ b/tests/django_oscar/oscar/catalogue/reviews/review_detail.html @@ -12,15 +12,11 @@ {% with category=product.categories.all.0 %} {% for c in category.get_ancestors_and_self %}
{% trans "You can track the status of your order" %} diff --git a/tests/django_oscar/oscar/communication/email/email_detail.html b/tests/django_oscar/oscar/communication/email/email_detail.html index 72c4bd9..2c1761a 100644 --- a/tests/django_oscar/oscar/communication/email/email_detail.html +++ b/tests/django_oscar/oscar/communication/email/email_detail.html @@ -2,9 +2,7 @@ {% load i18n %} {% block extra_breadcrumbs %}
| {% trans 'Product' %} | -- {% trans 'Status' %} - | -- {% trans 'Quantity' %} - | -- {% trans 'Line price excl. tax' %} - | -- {% trans 'Line price incl. tax' %} - | +{% trans 'Status' %} | +{% trans 'Quantity' %} | +{% trans 'Line price excl. tax' %} | +{% trans 'Line price incl. tax' %} | {% iffeature "reviews" %}{% endiffeature %} @@ -85,18 +77,10 @@ {{ line.description }} {% endif %} - | - {{ line.shipping_status|default:"-" }} - | -- {{ line.quantity }} - | -- {{ line.line_price_before_discounts_excl_tax|currency:order.currency }} - | -- {{ line.line_price_before_discounts_incl_tax|currency:order.currency }} - | +{{ line.shipping_status|default:"-" }} | +{{ line.quantity }} | +{{ line.line_price_before_discounts_excl_tax|currency:order.currency }} | +{{ line.line_price_before_discounts_incl_tax|currency:order.currency }} | {% iffeature "reviews" %}{% if line.product|is_review_permitted:user %} @@ -112,9 +96,7 @@ {% for discount in order.discounts.all %} |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ discount.description }} | -- -{{ discount.amount|currency:order.currency }} - | +-{{ discount.amount|currency:order.currency }} | ||||||||||||||||
| - {% trans 'Basket total (inc. tax)' %} - | -- {{ order.basket_total_incl_tax|currency:order.currency }} - | +{% trans 'Basket total (inc. tax)' %} | +{{ order.basket_total_incl_tax|currency:order.currency }} | |||||||||||||||
| - {% trans 'Shipping charge (inc. tax)' %} - | -- {{ order.shipping_incl_tax|currency:order.currency }} - | +{% trans 'Shipping charge (inc. tax)' %} | +{{ order.shipping_incl_tax|currency:order.currency }} | |||||||||||||||
| - {% trans 'Order total' %} - | -- {{ order.total_incl_tax|currency:order.currency }} - | +{% trans 'Order total' %} | +{{ order.total_incl_tax|currency:order.currency }} | |||||||||||||||
- - {% trans "I've forgotten my password" %} - + {% trans "I've forgotten my password" %}
- - {{ line.description }} - + {{ line.description }}
{% else %}@@ -155,12 +151,8 @@ {% endblock %} {% block order_total %}
| - {% trans 'Address' %} - | -- {% trans 'Contact Number' %} - | -- {% trans 'Shipping Notes' %} - | +{% trans 'Address' %} | +{% trans 'Contact Number' %} | +{% trans 'Shipping Notes' %} |
|---|---|---|---|---|---|
|
@@ -207,12 +191,8 @@
{% endfor %} |
- - {{ order.shipping_address.phone_number|default:"-" }} - | -- {{ order.shipping_address.notes|linebreaks }} - | +{{ order.shipping_address.phone_number|default:"-" }} | +{{ order.shipping_address.notes|linebreaks }} |
| - {% trans "Name" %} - | -- {% trans "Code" %} - | -- {% trans "Status" %} - | +{% trans "Name" %} | +{% trans "Code" %} | +{% trans "Status" %} |
|---|---|---|---|---|---|
| - {% trans "No vouchers are attached to this offer." %} - | +{% trans "No vouchers are attached to this offer." %} |
| - {% trans "Order number" %} - | -- {% trans "Order date" %} - | +{% trans "Order number" %} | +{% trans "Order date" %} | {% trans "Order total" %} | diff --git a/tests/django_oscar/oscar/dashboard/offers/offer_list.html b/tests/django_oscar/oscar/dashboard/offers/offer_list.html index da53f59..efe36b7 100644 --- a/tests/django_oscar/oscar/dashboard/offers/offer_list.html +++ b/tests/django_oscar/oscar/dashboard/offers/offer_list.html @@ -10,9 +10,7 @@{% trans "Priority" %} | {% trans "Incentive" %} | {% trans "Condition" %} | -- {% trans "Is available?" %} - | -- {% trans "Restrictions" %} - | -- {% anchor 'num_applications' _('Uses') %} - | -- {% anchor 'total_discount' _('Cost') %} - | +{% trans "Is available?" %} | +{% trans "Restrictions" %} | +{% anchor 'num_applications' _('Uses') %} | +{% anchor 'total_discount' _('Cost') %} | {% for offer in offers %} @@ -127,31 +117,17 @@ {{ offer.name }} - | - {{ offer.offer_type }} - | +{{ offer.offer_type }} | {% if form.is_bound %} {% if form.is_voucher_offer_type or not form.cleaned_data.offer_type %} -- {{ offer.vouchers.count }} - | +{{ offer.vouchers.count }} | {% endif %} {% endif %} -- {{ offer.start_datetime|default:"-" }} - | -- {{ offer.end_datetime|default:"-" }} - | -- {{ offer.priority }} - | -- {{ offer.benefit.description|safe }} - | -- {{ offer.condition.description|safe }} - | +{{ offer.start_datetime|default:"-" }} | +{{ offer.end_datetime|default:"-" }} | +{{ offer.priority }} | +{{ offer.benefit.description|safe }} | +{{ offer.condition.description|safe }} | {% if offer.is_available %} {% trans "Yes" %} @@ -169,12 +145,8 @@ {% endif %} {% endfor %} | -- {{ offer.num_applications }} - | -- {{ offer.total_discount|currency }} - | +{{ offer.num_applications }} | +{{ offer.total_discount|currency }} |
@@ -212,9 +184,7 @@
{% endfor %}
{% else %}
- {% trans "No offers found." %}
- |
+ {% trans "No offers found." %} |
|
|---|
| - {% trans "Status" %} - | -- {{ line.status|default:"-" }} - | +{% trans "Status" %} | +{{ line.status|default:"-" }} |
|---|---|---|---|
| - {% trans "Partner" %} - | -- {{ line.partner_name }} - | +{% trans "Partner" %} | +{{ line.partner_name }} |
| - {% trans "Partner SKU" %} - | -- {{ line.partner_sku }} - | +{% trans "Partner SKU" %} | +{{ line.partner_sku }} |
| - {% trans "Partner reference number" %} - | -- {{ line.partner_line_reference|default:"-" }} - | +{% trans "Partner reference number" %} | +{{ line.partner_line_reference|default:"-" }} |
|---|---|---|---|
| - {% trans "Partner notes" %} - | -- {{ line.partner_line_notes|default:"-" }} - | +{% trans "Partner notes" %} | +{{ line.partner_line_notes|default:"-" }} |
| - {% trans "State" %} - | -- {% trans "Quantity" %} - | +{% trans "State" %} | +{% trans "Quantity" %} | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - {{ state.event_type.name }} - | +{{ state.event_type.name }} | {{ state.quantity }} | diff --git a/tests/django_oscar/oscar/dashboard/orders/order_detail.html b/tests/django_oscar/oscar/dashboard/orders/order_detail.html index 6a4f7cb..0ac076b 100644 --- a/tests/django_oscar/oscar/dashboard/orders/order_detail.html +++ b/tests/django_oscar/oscar/dashboard/orders/order_detail.html @@ -12,14 +12,10 @@|||||||||||||||
| {% trans "Order Total" %} | -- {% trans "Date of purchase" %} - | -- {% trans "Time of purchase" %} - | -- {% trans "Status" %} - | +{% trans "Date of purchase" %} | +{% trans "Time of purchase" %} | +{% trans "Status" %} | |||||||||||
| - {{ order.total_incl_tax|currency:order.currency }} - | -- {{ order.date_placed|date }} - | -- {{ order.date_placed|time }} - | -- {{ order.status|default:"N/A" }} - | +{{ order.total_incl_tax|currency:order.currency }} | +{{ order.date_placed|date }} | +{{ order.date_placed|time }} | +{{ order.status|default:"N/A" }} |
| - {% trans "Number of basket additions" %} - | -- {{ voucher.num_basket_additions }} - | +{% trans "Number of basket additions" %} | +{{ voucher.num_basket_additions }} |
|---|---|---|---|
| - {% trans "Number of orders" %} - | -- {{ voucher.num_orders }} - | +{% trans "Number of orders" %} | +{{ voucher.num_orders }} |
| - {% trans "Total discount" %} - | -- {{ voucher.total_discount|currency }} - | +{% trans "Total discount" %} | +{{ voucher.total_discount|currency }} |
| - Parameter - | -- Description - | +Parameter | +Description |
|---|
The request body should be a
+ {{ field.description|safe }}
+
- {{ field.description|safe }}
-
- {{ field.description|safe }}
-
+ {{ field.description|safe }}
+
-
- I forgot my password
-
+ I forgot my password
diff --git a/tests/jinja_adminlte/examples-profile.html b/tests/jinja_adminlte/examples-profile.html
index dd97159..acbba53 100644
--- a/tests/jinja_adminlte/examples-profile.html
+++ b/tests/jinja_adminlte/examples-profile.html
@@ -51,9 +51,7 @@
src="/static/assets/img/user4-128x128.jpg"
alt="User profile picture">
-
Software Engineer
@@ -213,16 +207,12 @@
src="/static/assets/img/user7-128x128.jpg"
alt="User Image">
-
- Sarah Ross
-
+ Sarah Ross
-
- Sent you a message - 3 days ago
-
+ Sent you a message - 3 days ago
@@ -236,9 +226,7 @@
-
- $18,230.00
-
+ $18,230.00
Sales Over Time
@@ -223,9 +221,7 @@
33.1%
-
- Since last month
-
+ Since last month
With supporting text below as a natural lead-in to additional content.
With supporting text below as a natural lead-in to additional content.
-
- I forgot my password
-
+ I forgot my password
diff --git a/tests/jinja_adminlte/mailbox-compose.html b/tests/jinja_adminlte/mailbox-compose.html
index 4973275..3d4c691 100644
--- a/tests/jinja_adminlte/mailbox-compose.html
+++ b/tests/jinja_adminlte/mailbox-compose.html
@@ -62,9 +62,7 @@
Inbox
-
- 12
-
+ 12
@@ -160,12 +154,8 @@
-
diff --git a/tests/django_rest/docs/sidebar.html b/tests/django_rest/docs/sidebar.html
index acc673b..d74e7f5 100644
--- a/tests/django_rest/docs/sidebar.html
+++ b/tests/django_rest/docs/sidebar.html
@@ -81,9 +81,7 @@
- Parameter
-
-
- Description
-
+ Parameter
+ Description
- {{ size|filesizeformat }}
-
+ {{ size|filesizeformat }}
{% endif %}
{% if admin_view.is_column_visible('date') %}
{{ timestamp_format(date) }}
diff --git a/tests/flask_admin/bootstrap2/admin/layout.html b/tests/flask_admin/bootstrap2/admin/layout.html
index a6ffa86..2076ab5 100644
--- a/tests/flask_admin/bootstrap2/admin/layout.html
+++ b/tests/flask_admin/bootstrap2/admin/layout.html
@@ -15,7 +15,7 @@
{%- endmacro %}
{% macro menu(menu_root=None) %}
{% if menu_root is none %}
-{% set menu_root = admin_view.admin.menu() %}
+ {% set menu_root = admin_view.admin.menu() %}
{% endif %}
{%- for item in menu_root %}
{%- if item.is_category() - %}
@@ -25,81 +25,81 @@
{%- if item.is_active(admin_view) %}
- {%- for child in children - %}
- {%- if child.is_category() - %}
- {{ menu(menu_root=[child]) }}
- {% else %}
- {% set class_name = child.get_class_name() %}
- {%- if child.is_active(admin_view) %}
-
-
+ {%- for child in children - %}
+ {%- if child.is_category() - %}
+ {{ menu(menu_root=[child]) }}
+ {% else %}
+ {% set class_name = child.get_class_name() %}
+ {%- if child.is_active(admin_view) %}
+
+
+ {% endif %}
+ {%- else %}
+ {%- if item.is_accessible() and item.is_visible() - %}
+ {% set class_name = item.get_class_name() %}
+ {%- if item.is_active(admin_view) %}
+
{% if page > 0 %}
{% endmacro %}
{% macro search_form(input_class=None) %}
{% endmacro %}
{% macro page_size_form(generator, btn_class='dropdown-toggle') %}
-{{ page_size }} {{ _gettext('items') }}
-
+ {{ page_size }} {{ _gettext('items') }}
+
+ {% for e in field.errors if e is string %}
+
+ {% endif %}
+
- {% for e in field.errors if e is string %}
-
- {% endif %}
-{{ text }}
{% endmacro %}
{% macro render_form_fields(form, form_opts=None) %}
{% if form.hidden_tag is defined %}
-{{ form.hidden_tag() }}
+ {{ form.hidden_tag() }}
{% else %}
-{% if csrf_token %}
-
-{% endif %}
-{% for f in form if f.widget.input_type == 'hidden' %}
-{{ f }}
-{% endfor %}
+ {% if csrf_token %}
+
+ {% endif %}
+ {% for f in form if f.widget.input_type == 'hidden' %}
+ {{ f }}
+ {% endfor %}
{% endif %}
{% if form_opts and form_opts.form_rules %}
-{% for r in form_opts.form_rules %}{{ r(form, form_opts=form_opts) }}{% endfor %}
+ {% for r in form_opts.form_rules %}{{ r(form, form_opts=form_opts) }}{% endfor %}
{% else %}
-{% for f in form if f.widget.input_type != 'hidden' %}
-{% if form_opts %}
-{% set kwargs = form_opts.widget_args.get(f.short_name, {}) %}
-{% else %}
-{% set kwargs = {} %}
-{% endif %}
-{{ render_field(form, f, kwargs) }}
-{% endfor %}
+ {% for f in form if f.widget.input_type != 'hidden' %}
+ {% if form_opts %}
+ {% set kwargs = form_opts.widget_args.get(f.short_name, {}) %}
+ {% else %}
+ {% set kwargs = {} %}
+ {% endif %}
+ {{ render_field(form, f, kwargs) }}
+ {% endfor %}
{% endif %}
{% endmacro %}
{% macro form_tag(form=None, action=None) %}
{% endmacro %}
{% macro render_form_buttons(cancel_url, extra=None, is_modal=False) %}
- {% for export_type in admin_view.export_types %}
-
-
+ {% for export_type in admin_view.export_types %}
+
+
-
{% endmacro %}
diff --git a/tests/flask_admin/bootstrap2/admin/model/row_actions.html b/tests/flask_admin/bootstrap2/admin/model/row_actions.html
index 01e248c..44debdc 100644
--- a/tests/flask_admin/bootstrap2/admin/model/row_actions.html
+++ b/tests/flask_admin/bootstrap2/admin/model/row_actions.html
@@ -22,16 +22,16 @@
{% endmacro %}
{% macro delete_row(action, row_id, row) %}
{% endmacro %}
diff --git a/tests/flask_admin/bootstrap3/admin/actions.html b/tests/flask_admin/bootstrap3/admin/actions.html
index d91a83d..f188027 100644
--- a/tests/flask_admin/bootstrap3/admin/actions.html
+++ b/tests/flask_admin/bootstrap3/admin/actions.html
@@ -16,25 +16,25 @@
{% endmacro %}
{% macro form(actions, url) %}
{% if actions %}
-
+
{% endif %}
{% endmacro %}
{% macro script(message, actions, actions_confirmation) %}
{% if actions %}
-
- {%- for child in children - %}
- {%- if child.is_category() - %}
- {{ menu(menu_root=[child]) }}
- {% else %}
- {% set class_name = child.get_class_name() %}
- {%- if child.is_active(admin_view) %}
-
-
+ {%- for child in children - %}
+ {%- if child.is_category() - %}
+ {{ menu(menu_root=[child]) }}
+ {% else %}
+ {% set class_name = child.get_class_name() %}
+ {%- if child.is_active(admin_view) %}
+
+
+ {% endif %}
+ {%- else %}
+ {%- if item.is_accessible() and item.is_visible() - %}
+ {% set class_name = item.get_class_name() %}
+ {%- if item.is_active(admin_view) %}
+
{% if page > 0 %}
- {% for e in field.errors if e is string %}
-
- {% endif %}
-
+ {% for e in field.errors if e is string %}
+
+ {% endif %}
+ {{ text }}
{% endmacro %}
{% macro render_form_fields(form, form_opts=None) %}
{% if form.hidden_tag is defined %}
-{{ form.hidden_tag() }}
+ {{ form.hidden_tag() }}
{% else %}
-{% if csrf_token %}
-
-{% endif %}
-{% for f in form if f.widget.input_type == 'hidden' %}
-{{ f }}
-{% endfor %}
+ {% if csrf_token %}
+
+ {% endif %}
+ {% for f in form if f.widget.input_type == 'hidden' %}
+ {{ f }}
+ {% endfor %}
{% endif %}
{% if form_opts and form_opts.form_rules %}
-{% for r in form_opts.form_rules %}{{ r(form, form_opts=form_opts) }}{% endfor %}
+ {% for r in form_opts.form_rules %}{{ r(form, form_opts=form_opts) }}{% endfor %}
{% else %}
-{% for f in form if f.widget.input_type != 'hidden' %}
-{% if form_opts %}
-{% set kwargs = form_opts.widget_args.get(f.short_name, {}) %}
-{% else %}
-{% set kwargs = {} %}
-{% endif %}
-{{ render_field(form, f, kwargs) }}
-{% endfor %}
+ {% for f in form if f.widget.input_type != 'hidden' %}
+ {% if form_opts %}
+ {% set kwargs = form_opts.widget_args.get(f.short_name, {}) %}
+ {% else %}
+ {% set kwargs = {} %}
+ {% endif %}
+ {{ render_field(form, f, kwargs) }}
+ {% endfor %}
{% endif %}
{% endmacro %}
{% macro form_tag(form=None, action=None) %}
@@ -183,23 +173,23 @@
role="form"
class="admin-form form-horizontal"
enctype="multipart/form-data">
-{{ caller() }}
+ {{ caller() }}
{% endmacro %}
{% macro render_form_buttons(cancel_url, extra=None, is_modal=False) %}
- {% for export_type in admin_view.export_types %}
-
-
+ {% for export_type in admin_view.export_types %}
+
+
-
{% endmacro %}
diff --git a/tests/flask_admin/bootstrap3/admin/model/row_actions.html b/tests/flask_admin/bootstrap3/admin/model/row_actions.html
index 816b509..a10e574 100644
--- a/tests/flask_admin/bootstrap3/admin/model/row_actions.html
+++ b/tests/flask_admin/bootstrap3/admin/model/row_actions.html
@@ -22,16 +22,16 @@
{% endmacro %}
{% macro delete_row(action, row_id, row) %}
{% endmacro %}
diff --git a/tests/flask_admin/bootstrap4/admin/actions.html b/tests/flask_admin/bootstrap4/admin/actions.html
index 53da13b..37db593 100644
--- a/tests/flask_admin/bootstrap4/admin/actions.html
+++ b/tests/flask_admin/bootstrap4/admin/actions.html
@@ -19,25 +19,25 @@
{% endmacro %}
{% macro form(actions, url) %}
{% if actions %}
-
+
{% endif %}
{% endmacro %}
{% macro script(message, actions, actions_confirmation) %}
{% if actions %}
-
- {%- for child in children - %}
- {%- if child.is_category() - %}
- {{ menu(menu_root=[child]) }}
- {% else %}
- {% set class_name = child.get_class_name() %}
-
-
+ {%- for child in children - %}
+ {%- if child.is_category() - %}
+ {{ menu(menu_root=[child]) }}
+ {% else %}
+ {% set class_name = child.get_class_name() %}
+
+
+ {% endif %}
+ {%- else %}
+ {%- if item.is_accessible() and item.is_visible() - %}
+ {% set class_name = item.get_class_name() %}
+ {%- if item.is_active(admin_view) %}
+
{% if page > 0 %}
- {% for e in field.errors if e is string %}
-
+ {% if direct_error %}
+
+ {% for e in field.errors if e is string %}
+
+ {{ text }}
{% endmacro %}
{% macro render_form_fields(form, form_opts=None) %}
{% if form.hidden_tag is defined %}
-{{ form.hidden_tag() }}
+ {{ form.hidden_tag() }}
{% else %}
-{% if csrf_token %}
-
-{% endif %}
-{% for f in form if f.widget.input_type == 'hidden' %}
-{{ f }}
-{% endfor %}
+ {% if csrf_token %}
+
+ {% endif %}
+ {% for f in form if f.widget.input_type == 'hidden' %}
+ {{ f }}
+ {% endfor %}
{% endif %}
{% if form_opts and form_opts.form_rules %}
-{% for r in form_opts.form_rules %}{{ r(form, form_opts=form_opts) }}{% endfor %}
+ {% for r in form_opts.form_rules %}{{ r(form, form_opts=form_opts) }}{% endfor %}
{% else %}
-{% for f in form if f.widget.input_type != 'hidden' %}
-{% if form_opts %}
-{% set kwargs = form_opts.widget_args.get(f.short_name, {}) %}
-{% else %}
-{% set kwargs = {} %}
-{% endif %}
-{{ render_field(form, f, kwargs) }}
-{% endfor %}
+ {% for f in form if f.widget.input_type != 'hidden' %}
+ {% if form_opts %}
+ {% set kwargs = form_opts.widget_args.get(f.short_name, {}) %}
+ {% else %}
+ {% set kwargs = {} %}
+ {% endif %}
+ {{ render_field(form, f, kwargs) }}
+ {% endfor %}
{% endif %}
{% endmacro %}
{% macro form_tag(form=None, action=None) %}
{% endmacro %}
{% macro render_form_buttons(cancel_url, extra=None, is_modal=False) %}
{% if is_modal %}
-
-{% if extra %}{{ extra }}{% endif %}
-{% if cancel_url %}
-
-{{ _gettext('Cancel') }}
-
-{% endif %}
+
+ {% if extra %}{{ extra }}{% endif %}
+ {% if cancel_url %}
+
+ {{ _gettext('Cancel') }}
+
+ {% endif %}
{% else %}
-
-
+
{% endmacro %}
{% macro search_form(input_class="col-auto") %}
{% endmacro %}
{% macro page_size_form(generator, btn_class='nav-link dropdown-toggle') %}
-{{ page_size }} {{ _gettext('items') }}
-
+ {{ page_size }} {{ _gettext('items') }}
+
- LOWA Men’s Renegade GTX Mid Hiking Boots Review
-
+ LOWA Men’s Renegade GTX Mid Hiking Boots Review
1
Call of Duty
-
- 455-981-221
-
-
- El snort testosterone trophy driving gloves handsome
-
-
- $64.50
-
+ 455-981-221
+ El snort testosterone trophy driving gloves handsome
+ $64.50
-
- 1
-
-
- Need for Speed IV
-
-
- 247-925-726
-
-
- Wes Anderson umami biodiesel
-
-
- $50.00
-
+ 1
+ Need for Speed IV
+ 247-925-726
+ Wes Anderson umami biodiesel
+ $50.00
-
- 1
-
-
- Monsters DVD
-
-
- 735-845-642
-
-
- Terry Richardson helvetica tousled street art master
-
-
- $10.70
-
+ 1
+ Monsters DVD
+ 735-845-642
+ Terry Richardson helvetica tousled street art master
+ $10.70
-
- 1
-
-
- Grown Ups Blue Ray
-
-
- 422-568-642
-
+ 1
+ Grown Ups Blue Ray
+ 422-568-642
Tousled lomo letterpress
diff --git a/tests/jinja_adminlte/examples-invoice.html b/tests/jinja_adminlte/examples-invoice.html
index 406f2e8..8ce78b1 100644
--- a/tests/jinja_adminlte/examples-invoice.html
+++ b/tests/jinja_adminlte/examples-invoice.html
@@ -137,60 +137,28 @@
1
Call of Duty
-
- 455-981-221
-
-
- El snort testosterone trophy driving gloves handsome
-
-
- $64.50
-
+ 455-981-221
+ El snort testosterone trophy driving gloves handsome
+ $64.50
-
- 1
-
-
- Need for Speed IV
-
-
- 247-925-726
-
-
- Wes Anderson umami biodiesel
-
-
- $50.00
-
+ 1
+ Need for Speed IV
+ 247-925-726
+ Wes Anderson umami biodiesel
+ $50.00
-
- 1
-
-
- Monsters DVD
-
-
- 735-845-642
-
-
- Terry Richardson helvetica tousled street art master
-
-
- $10.70
-
+ 1
+ Monsters DVD
+ 735-845-642
+ Terry Richardson helvetica tousled street art master
+ $10.70
-
- 1
-
-
- Grown Ups Blue Ray
-
-
- 422-568-642
-
+ 1
+ Grown Ups Blue Ray
+ 422-568-642
Tousled lomo letterpress
diff --git a/tests/jinja_adminlte/examples-login.html b/tests/jinja_adminlte/examples-login.html
index 1b90176..71bbd89 100644
--- a/tests/jinja_adminlte/examples-login.html
+++ b/tests/jinja_adminlte/examples-login.html
@@ -80,9 +80,7 @@
- Nina Mcintire
-
+ Nina Mcintire
-
- Support Team
-
+ Support Team
sent you an email
-
- Sarah Young
-
+ Sarah Young
accepted your friend request
@@ -386,9 +360,7 @@
27 mins ago
-
- Jay White
-
+ Jay White
commented on your post
-
- Mina Lee
-
+ Mina Lee
uploaded new photos
- Files
-
+ Files
+
#
- #
-
-
-
- AdminLTE v3
-
+ AdminLTE v3
Created 01.01.2019
@@ -345,9 +339,7 @@
-
- Success
-
+ Success
@@ -365,13 +357,9 @@
+
#
- #
-
-
-
- AdminLTE v3
-
+ AdminLTE v3
Created 01.01.2019
@@ -413,9 +401,7 @@
-
- Success
-
+ Success
@@ -433,13 +419,9 @@
+
#
- #
-
-
-
- AdminLTE v3
-
+ AdminLTE v3
Created 01.01.2019
@@ -473,9 +455,7 @@
-
- Success
-
+ Success
@@ -493,13 +473,9 @@
+
#
- #
-
-
-
- AdminLTE v3
-
+ AdminLTE v3
Created 01.01.2019
@@ -536,9 +512,7 @@
-
- Success
-
+ Success
@@ -556,13 +530,9 @@
+
#
- #
-
-
-
- AdminLTE v3
-
+ AdminLTE v3
Created 01.01.2019
@@ -604,9 +574,7 @@
-
- Success
-
+ Success
diff --git a/tests/jinja_adminlte/forms-advanced.html b/tests/jinja_adminlte/forms-advanced.html
index c8c04f3..121f975 100644
--- a/tests/jinja_adminlte/forms-advanced.html
+++ b/tests/jinja_adminlte/forms-advanced.html
@@ -266,9 +266,7 @@
-
- Samsung Smart TV
-
+ Samsung Smart TV
Pending
@@ -877,9 +845,7 @@
OR7429
-
- iPhone 6 Plus
-
+ iPhone 6 Plus
Delivered
@@ -897,9 +863,7 @@
OR9842
-
- Call of Duty IV
-
+ Call of Duty IV
Shipped
diff --git a/tests/jinja_adminlte/index3.html b/tests/jinja_adminlte/index3.html
index 0a5af30..81c0f0f 100644
--- a/tests/jinja_adminlte/index3.html
+++ b/tests/jinja_adminlte/index3.html
@@ -213,9 +213,7 @@
- Online Store Overview
-
+ Online Store Overview
@@ -284,9 +276,7 @@
0.8%
-
- SALES RATE
-
+ SALES RATE
- Featured
-
+ Featured
- Special title treatment
-
+ Special title treatment
Message Subject Is Placed Here
From: support@adminlte.io
-
- 15 Feb. 2015 11:03 PM
-
+ 15 Feb. 2015 11:03 PM
diff --git a/tests/jinja_adminlte/mailbox.html b/tests/jinja_adminlte/mailbox.html
index 448c469..bac2190 100644
--- a/tests/jinja_adminlte/mailbox.html
+++ b/tests/jinja_adminlte/mailbox.html
@@ -62,9 +62,7 @@
Inbox
-
- 12
-
+ 12
-
- 28 mins ago
-
+ 28 mins ago
@@ -255,9 +249,7 @@
-
- Alexander Pierce
-
+ Alexander Pierce
@@ -268,9 +260,7 @@
-
- 11 hours ago
-
+ 11 hours ago
@@ -285,9 +275,7 @@
-
- Alexander Pierce
-
+ Alexander Pierce
@@ -296,9 +284,7 @@
- Trying to find a solution to this problem...
-
- 15 hours ago
-
+ 15 hours ago
@@ -313,9 +299,7 @@
-
- Alexander Pierce
-
+ Alexander Pierce
@@ -326,9 +310,7 @@
-
- Yesterday
-
+ Yesterday
@@ -343,9 +325,7 @@
-
- Alexander Pierce
-
+ Alexander Pierce
@@ -356,9 +336,7 @@
-
- 2 days ago
-
+ 2 days ago
diff --git a/tests/jinja_adminlte/tables-data.html b/tests/jinja_adminlte/tables-data.html
index d398ebc..3b5ff4a 100644
--- a/tests/jinja_adminlte/tables-data.html
+++ b/tests/jinja_adminlte/tables-data.html
@@ -72,72 +72,40 @@
X
-
- Trident
-
+ Trident
Internet
Explorer 5.0
-
- Win 95+
-
-
- 5
-
-
- C
-
+ Win 95+
+ 5
+ C
-
- Trident
-
+ Trident
Internet
Explorer 5.5
-
- Win 95+
-
-
- 5.5
-
-
- A
-
+ Win 95+
+ 5.5
+ A
-
- Trident
-
+ Trident
Internet
Explorer 6
-
- Win 98+
-
-
- 6
-
-
- A
-
+ Win 98+
+ 6
+ A
-
- Trident
-
-
- Internet Explorer 7
-
-
- Win XP SP2+
-
-
- 7
-
+ Trident
+ Internet Explorer 7
+ Win XP SP2+
+ 7
A
diff --git a/tests/jinja_adminlte/tables-simple.html b/tests/jinja_adminlte/tables-simple.html
index 0ddb49f..6f58166 100644
--- a/tests/jinja_adminlte/tables-simple.html
+++ b/tests/jinja_adminlte/tables-simple.html
@@ -96,9 +96,7 @@
4.
-
- Fix and squish bugs
-
+ Fix and squish bugs
@@ -141,37 +133,23 @@
- Condensed Full Width Table
-
+ Condensed Full Width Table
-
- #
-
-
- Task
-
-
- Progress
-
-
- Label
-
+ #
+ Task
+ Progress
+ Label
-
- 1.
-
-
- Update software
-
+ 1.
+ Update software
-
- 55%
-
+ 55%
-
- 2.
-
-
- Clean database
-
+ 2.
+ Clean database
-
- 70%
-
+ 70%
-
- 3.
-
-
- Cron job running
-
+ 3.
+ Cron job running
-
- 30%
-
+ 30%
-
@@ -249,35 +207,23 @@
- 4.
-
-
- Fix and squish bugs
-
+ 4.
+ Fix and squish bugs
-
- 90%
-
+ 90%
- Simple Full Width Table
-
+ Simple Full Width Table
@@ -290,12 +236,8 @@
#
-
- Task
-
-
- Progress
-
+ Task
+ Progress
Label
@@ -303,12 +245,8 @@
-
- 1.
-
-
- Update software
-
+ 1.
+ Update software
-
- 2.
-
+ 2.
Clean database
diff --git a/tests/jinja_adminlte/ui-buttons.html b/tests/jinja_adminlte/ui-buttons.html
index b6a408d..3c86b17 100644
--- a/tests/jinja_adminlte/ui-buttons.html
+++ b/tests/jinja_adminlte/ui-buttons.html
@@ -865,15 +865,9 @@
@@ -904,12 +898,8 @@