{% extends "public/base.html" %} {% load bootstrap %} {% load staticfiles %} {% load i18n %} {% load humanize %} {% block title %}Alliance Auth{% endblock %} {% block page_title %}Srp Fleet Data{% endblock page_title %} {% block extra_css %} {% include 'bundles/x-editable.css.html' %} {% endblock extra_css %} {% block content %}

{% trans "SRP Fleet Data" %}
{% if perms.auth.srp_management %} {% if fleet_status == "Completed" %} {% trans "Mark Incomplete" %} {% else %} {% trans "Mark Completed" %} {% endif %} {% endif %}

{% if srpfleetrequests %}
{% csrf_token %} {% endblocktrans %} {% if perms.auth.srp_management %} {% endif %} {% for srpfleetrequest in srpfleetrequests %} {% if perms.auth.srp_management %} {% endif %} {% endfor %}
{% trans "Pilot Name" %} {% trans "Killboard Link" %} {% trans "Additional Info" %} {% trans "Ship Type" %} {% trans "Killboard Loss Amt" %} {% trans "SRP ISK Cost" %} {% blocktrans %}{% trans "Post Time" %} {% trans "Status" %}{% trans "Actions" %}
{{ srpfleetrequest.character.character_name }} Link {{ srpfleetrequest.additional_info }} {{ srpfleetrequest.srp_ship_name }} {{ srpfleetrequest.kb_total_loss | intcomma }} ISK {{ srpfleetrequest.srp_total_amount | intcomma }} ISK {{ srpfleetrequest.post_time | date:"Y-m-d H:i" }} {% if srpfleetrequest.srp_status == "Approved" %}
{% trans "Approved" %}
{% elif srpfleetrequest.srp_status == "Rejected" %}
{% trans "Rejected" %}
{% else %}
{% trans "Pending" %}
{% endif %}
{% else %}
{% trans "No SRP requests for this fleet." %}
{% endif %}
{% endblock content %} {% block extra_javascript %} {% include 'bundles/x-editable-js.html' %} {% endblock %} {% block extra_script %} $(document).ready(function() { $.fn.editable.defaults.mode = 'inline'; $.fn.editable.defaults.showbuttons = false; $.fn.editable.defaults.highlight = "#AAFF80"; $('.srp').editable({ display: function(value, response) { return false; }, success: function(response, newValue) { newValue = parseInt(newValue); newvalue = newValue.toLocaleString() + " ISK"; $(this).html(newvalue.bold()); }, validate: function(value) { if (value === null || value === '') { return 'Empty values not allowed'; } } }); $('.srp').on('hidden', function(e, reason){ if(reason === 'save' || reason === 'nochange') { var $next = $(this).closest('tr').next().find('.editable'); setTimeout(function() { $next.editable('show'); }, 400); } }); }); $(document).ready(function(){ $("[rel=tooltip]").tooltip({ placement: 'top'}); }); {% endblock extra_script %}