{% extends 'allianceauth/base.html' %} {% load evelinks %} {% load humanize %} {% load bootstrap %} {% block page_title %}Rotation {{ rotation.name }}{% endblock page_title %} {% block extra_css %} {% include 'bundles/datatables-css.html' %} {% if rotation.is_closed %} {% endif %} {% endblock extra_css %} {% block content %}

{{ rotation.name }}

Back
{% if perms.allianceauth_pve.manage_rotations and not rotation.is_closed %}
{% endif %}
  • {% if rotation.is_closed %}

    Status

    Closed

    {% else %}

    Age

    {{ rotation.days_since }} days

    {% endif %}
  • Estimated Total

    {{ rotation.estimated_total|floatformat:0|intcomma }}

  • {% if rotation.is_closed %}
  • Actual Total

    {{ rotation.actual_total|floatformat:0|intcomma }}

  • {% endif %}
  • Tax Rate

    {{ rotation.tax_rate|floatformat }} %

Summary

{% for summary in summaries %}
{% if rotation.is_closed %} {% else %} {% endif %} {% for row in summary %} {% if row.user == user.pk and not rotation.is_closed %} {% else %} {% endif %} {% if rotation.is_closed %} {% endif %} {% if rotation.is_closed %} {% endif %} {% endfor %}
Character SetupsActual Total Estimated Total Total
{% if rotation.is_closed %} {{ row.character_name }} {% else %} {{ row.character_name }} {% endif %} {{ row.helped_setups }}{{ row.actual_total|floatformat:0|intcomma }}{{ row.estimated_total|floatformat:0|intcomma }}
{% endfor %}
{% if not rotation.is_closed %}

Entries

{% for entry in entries %} {% endfor %}
Date User Count Share Count Total After Tax Total Created By
{{ entry.created_at|date:"d/m/Y G:i e" }} {{ entry.total_user_count }} {{ entry.total_site_count }} {{ entry.estimated_total_after_tax|floatformat|intcomma }} {{ entry.estimated_total|intcomma }} {{ entry.created_by.profile.main_character.character_name }}
{% endif %} {% if perms.allianceauth_pve.manage_entries and not rotation.is_closed %} {% endif %}
{% if perms.allianceauth_pve.manage_rotations and not rotation.is_closed %} {% endif %} {% endblock content %} {% block extra_javascript %} {% include 'bundles/datatables-js.html' %} {% if rotation.is_closed %} {% endif %} {% endblock extra_javascript %} {% block extra_script %} $(function () { $('[data-toggle="tooltip"]').tooltip() }) $(document).ready(function() { $('#entries_table').DataTable({ columnDefs: [ { targets: [0, 1, 2, 3, 4, 6], searchable: false } ], paging: true, ordering: false, }); }); {% endblock extra_script %}