{% extends "base.html" %} {% import "macros.html" as macros %} {% block content %}
{% block left_col %} {% block info %}
Lossmail
{{ srp_request.id }}
Time of Loss
{{ srp_request.kill_timestamp.strftime('%d %b %Y %H:%M') }}
Division
{{ srp_request.division.name }}
Details

{{ srp_request.details }}

{% if not srp_request.finalized and srp_request.submitter == current_user %}
{% endif %}
Pilot
{% if srp_request.division.pilot_transformer %} {{ srp_request.pilot.name }} {% else %} {{ srp_request.pilot.name }} {% endif %} • User Notes
Corporation
{{ srp_request.corporation }}
Alliance
{{ srp_request.alliance|default(' ') }}
Location
{{ srp_request.region }} / {{ srp_request.constellation }} / {{ srp_request.system }}
Ship
{% if srp_request.division.ship_transformer %}
{{ srp_request.ship_type }}
{% else %}
{{ srp_request.ship_type }}
{% endif %}
Status
{{ srp_request.status|capitalize }}
Payout
{{ srp_request.payout }}
{% endblock info %} {% block action_form %}
{{ macros.render_input(action_form.id_) }} {{ macros.render_input(action_form.type_) }} {{ macros.render_input(action_form.csrf_token) }}
{{ action_form.note(class="form-control") }}
{% if current_user.has_permission(('review', 'pay'), srp_request.division) %}
{% endblock action_form %} {% block action_list %}
{% for action in srp_request.actions %} {% with %} {% set item_class = 'text-' ~ macros.status_color(action.type_) if macros.status_color(action.type_) != '' %}

{{ action.type_|capitalize if action.type_ != 'comment' }}

{{ action.note }}

{{ action.user.name }} ({{ action.timestamp.strftime('%d %b %Y @ %H:%M:%S') }})
{% endwith %} {% endfor %}
{% endblock action_list %} {% endblock left_col %}
{% block right_col %}
Modifiers
{% block list_modifiers %}
{% for modifier in srp_request.modifiers %}
{% block modifier_header scoped %} {{ ''|safe if modifier.voided }} {% with %} {% if modifier.value < 0 %} {% set color_class = 'text-danger' %} {% set modifier_text = 'Deduction' %} {% else %} {% set color_class = 'text-success' %} {% set modifier_text = 'Bonus' %} {% endif %} {% if modifier.voided %} {% set color_class = "text-muted" %} {% endif %} {% if modifier.type_ == 'percentage' %}

{{ modifier.value }}% {{ modifier_text }}

{% elif modifier.type_ == 'absolute' %}

{{ modifier.value }}M ISK {{ modifier_text }}

{% endif %} {% endwith %} {{ '
'|safe if modifier.voided }} {% endblock modifier_header %}

{% if modifier.voided %} {{ modifier.note }}

{{ modifier.user.name }} {{ modifier.timestamp.strftime('%d %b %Y @ %H:%M') }}
Voided by {{ modifier.voided_user.name }} {{ modifier.voided_timestamp.strftime('%d %b %Y @ %H:%M') }}
{% else %} {{ modifier.note }}
{{ modifier.user.name }} {{ modifier.timestamp.strftime('%d %b %Y @ %H:%M') }}
{% endif %}

{% endfor %}
{% endblock list_modifiers %}
{% endblock right_col %}
{% endblock content %}