{% extends 'aa_contacts/base.html' %} {% block page_title %}Alliance Contacts{% endblock page_title %} {% block extra_css %} {% include "bundles/datatables-css-bs5.html" %} {% endblock %} {% block aacontactscontent %}

{{ alliance.alliance_name }} Contacts

Last update
{% if token is None %}

No token present

{% else %}

{{ token.last_update|date:"d/m/Y G:i e" }}

{% endif %}
Actions
{% if token is None %} Add token {% else %} Update {% endif %}
{% for contact in contacts %} {% endfor %}
Contact Contact Type Labels Standing Notes
{{ contact.contact_name }} {{ contact.contact_type }} {% for label in contact.labels.all %}{{ label.label_name }}{% if not forloop.last %}, {% endif %}{% endfor %} {{ contact.standing }} {{ contact.notes }}
{% endblock aacontactscontent %} {% block extra_javascript %} {% include "bundles/datatables-js-bs5.html" %} {% include "bundles/filterdropdown-js.html" %} {% endblock extra_javascript %} {% block extra_script %} $(document).ready(function() { $('.table').DataTable({ columnDefs: [ { targets: [5], sortable: false, searchable: false } ], "pageLength": 50, filterDropDown: { bootstrap: true, bootstrap_version: 5, columns: [ { idx: 1, title: 'Contact Type' }, { idx: 3, title: 'Standing' } ] } }); }); {% endblock extra_script %}