{% load partials powercrud %} {% if use_crispy %} {% load crispy_forms_tags %} {% endif %} {% with inline_enabled=inline_edit.enabled %}
{% if enable_bulk_edit %} {% endif %} {% for header in headers %} {% endfor %} {% for row in object_list %} {% if enable_bulk_edit %} {% endif %} {% for cell in row.cells %} {% with value_str=cell.value|stringformat:"s" %} {% endwith %} {% endfor %} {% endfor %}
{{ header.label }} {% if header.help_text %} {% endif %} {% if header.is_sortable %} {% if current_sort == header.field_name %} {% elif current_sort == '-'|add:header.field_name %} {% endif %} {% endif %} Actions
{% if inline_enabled and row.inline_allowed and cell.is_inline_editable %} {% with align_class=cell.align %} {% endwith %} {% else %}
{{ cell.value }}
{% endif %}
{{ row.actions }}
{% if enable_bulk_edit %} {% endif %} {% endwith %} {% partialdef inline_row_display %} {% with inline_enabled=inline_config.enabled %} {% if enable_bulk_edit %} {% endif %} {% for cell in row.cells %} {% with value_str=cell.value|stringformat:"s" %} {% if inline_enabled and row.inline_allowed and cell.is_inline_editable %} {% with align_class=cell.align %} {% endwith %} {% else %}
{{ cell.value }}
{% endif %} {% endwith %} {% endfor %}
{{ row.actions }}
{% endwith %} {% endpartialdef inline_row_display %} {% partialdef inline_row_form %} {% if enable_bulk_edit %} {% endif %} {% for cell in row.cells %} {% if cell.is_inline_editable and form %} {% with inline_field=form|get_form_field:cell.name %} {% if inline_field %}
{{ inline_field }}
{% if inline_field.errors %}
{{ inline_field.errors|join:", " }}
{% endif %} {% else %} {{ cell.value }} {% endif %} {% endwith %} {% else %}
{{ cell.value }}
{% endif %} {% endfor %} {% csrf_token %} {% for hidden_field in inline_hidden_fields %} {{ hidden_field.as_hidden }} {% endfor %} {% if form.non_field_errors %}
{{ form.non_field_errors|join:", " }}
{% endif %}
{% endpartialdef inline_row_form %}