{% extends 'base.html' %} {% load static custom_filters %} {% block content %} {% if card_title %}
| No. | {% for key, value in fields.items %}{{ value }} | {% endfor %}Action | |
|---|---|---|---|
| {{ forloop.counter }} | {% for field in fields %} {% if field == 'image' %}
|
{% else %}
{{ item|get_field_value:field|safe }}
{% if field == 'location' %}
{% if item.maps_location %}
{# Hilangkan |urlencode jika datanya sudah berupa link utuh #}
View on Maps
{% endif %}
{% elif field == 'event_name' %}
{{ item.copy_link }}
{% endif %}
|
{% endif %}
{% endfor %}
{% if item.buttons_action %}
{% for value in item.buttons_action %}
{{ value|safe }}
{% endfor %}
{% endif %}
|