{% extends 'base.html' %} {% load static custom_filters %} {% block content %} {% if card_form %}
| No. | {# Menggunakan Objek Form #} {% for field in form %}{{ field.label }} | {% endfor %} {# Menggunakan Mapping Label #} {% for key, value in fields.items %}{{ value }} | {% endfor %}Action |
|---|---|---|---|
| {{ forloop.counter }} | {# Menggunakan Objek Form #} {% for field in form %}{{ item|get_field_value:field.name|safe }} | {% endfor %} {# Menggunakan Mapping Label #} {% for field in fields %}{{ item|get_field_value:field|safe }}{{ field }} | {% endfor %}
{% if item.buttons_action %}
{% for value in item.buttons_action %}
{{ value|safe }}
{% endfor %}
{% endif %}
|