mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-19 01:02:30 +02:00
* Added German Translations Translated using https://docs.djangoproject.com/en/1.9/topics/i18n/translation/ Added language drop down menu's for base.html, registration & login pages Known issues: * Translated items in whtracker>create signature remain translated when posted * No date/time localisation for Fleet/Structure timers * Added time locale Added date/time locale to *Structure Timers *Fleet Timers *Fleet timer form datetimepicker.js Fixed a bug where the bootstrap label didn't show up when making a structure timer using the translated form Missed some base.html translations * Small translation error Some obscure SRP strings went unnoticed for context review * FAT & Fleet-up German Translations + a fix in settings.py.example The only small thing not done is German Date/Time locale for Fleet-up * Compiled de/django.po
135 lines
7.5 KiB
HTML
Executable File
135 lines
7.5 KiB
HTML
Executable File
{% 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 %}{% endblock extra_css %}
|
|
|
|
{% block content %}
|
|
<div class="col-lg-12">
|
|
<div class="row">
|
|
<h1 class="page-header text-center">{% trans "SRP Fleet Data" %}
|
|
<div class="text-right">
|
|
{% if perms.auth.srp_management %}
|
|
{% if fleet_status == "Completed" %}
|
|
<a href="/srp_fleet_mark_uncompleted/{{ fleet_id }}">
|
|
<button type="button" class="btn btn-warning">{% trans "Mark Incomplete" %}</button>
|
|
</a>
|
|
{% else %}
|
|
<a href="/srp_fleet_mark_completed/{{ fleet_id }}">
|
|
<button type="button" class="btn btn-success">{% trans "Mark Completed" %}</button>
|
|
</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</h1>
|
|
<div class="alert alert-info" role="alert">
|
|
<div class="text-right">
|
|
<b>{% trans "Total Losses:" %} {{ srpfleetrequests.count }}</b>
|
|
|
|
<b>{% trans "Total ISK Cost:" %} {{ totalcost | intcomma }}</b>
|
|
</div>
|
|
</div>
|
|
<table class="table table-bordered">
|
|
<tr>
|
|
<th class="text-center">{% trans "Pilot Name" %}</th>
|
|
<th class="text-center">{% trans "Killboard Link" %}</th>
|
|
<th class="text-center">{% trans "Additional Info" %}</th>
|
|
<th class="text-center">{% trans "Ship Type" %}</th>
|
|
<th class="text-center">{% trans "Killboard Loss Amt" %}</th>
|
|
<th class="text-center">{% trans "SRP ISK Cost" %}</th>
|
|
<th class="text-center">{% trans "Post Time" %}</th>
|
|
<th class="text-center">{% trans "Status" %}</th>
|
|
{% if perms.auth.srp_management %}
|
|
<th class="text-center">{% trans "Actions" %}</th>
|
|
{% endif %}
|
|
</tr>
|
|
{% for srpfleetrequest in srpfleetrequests %}
|
|
<tr>
|
|
<td class="text-center">
|
|
<div class="label label-info">
|
|
{{ srpfleetrequest.character.character_name }}
|
|
</div>
|
|
</td>
|
|
<td class="text-center">
|
|
<a href="{{ srpfleetrequest.killboard_link }}"
|
|
target="_blank">{{ srpfleetrequest.killboard_link }}</a>
|
|
</td>
|
|
<td class="text-center">{{ srpfleetrequest.additional_info }}</td>
|
|
<td class="text-center">{{ srpfleetrequest.srp_ship_name }}</td>
|
|
<td class="text-center">ISK: {{ srpfleetrequest.kb_total_loss | intcomma }}</td>
|
|
<td class="text-center">ISK: {{ srpfleetrequest.srp_total_amount | intcomma }}</td>
|
|
<td class="text-center">{{ srpfleetrequest.post_time | date:"Y-m-d H:i" }}</td>
|
|
<td class="text-center">
|
|
{% if srpfleetrequest.srp_status == "Approved" %}
|
|
<div class="label label-success">
|
|
{% trans "Approved" %}
|
|
</div>
|
|
{% elif srpfleetrequest.srp_status == "Rejected" %}
|
|
<div class="label label-danger">
|
|
{% trans "Rejected" %}
|
|
</div>
|
|
{% else %}
|
|
<div class="label label-warning">
|
|
{% trans "Pending" %}
|
|
</div>
|
|
{% endif %}
|
|
</td>
|
|
{% if perms.auth.srp_management %}
|
|
|
|
<td class="text-center">
|
|
<a href="/srp_request_amount_update/{{ srpfleetrequest.id }}">
|
|
<button type="button" class="btn btn-info"><span
|
|
class="glyphicon glyphicon-pencil"></span></button>
|
|
</a>
|
|
{% if srpfleetrequest.srp_status == "Rejected" %}
|
|
<a href="/srp_request_approve/{{ srpfleetrequest.id }}">
|
|
<button type="button" class="btn btn-success"><span
|
|
class="glyphicon glyphicon-ok"></span></button>
|
|
</a>
|
|
{% elif srpfleetrequest.srp_status == "Pending" %}
|
|
<a href="/srp_request_approve/{{ srpfleetrequest.id }}">
|
|
<button type="button" class="btn btn-success"><span
|
|
class="glyphicon glyphicon-ok"></span></button>
|
|
</a>
|
|
{% elif srpfleetrequest.srp_status == "" %}
|
|
<a href="/srp_request_approve/{{ srpfleetrequest.id }}">
|
|
<button type="button" class="btn btn-success"><span
|
|
class="glyphicon glyphicon-ok"></span></button>
|
|
</a>
|
|
{% endif %}
|
|
{% if srpfleetrequest.srp_status == "Approved" %}
|
|
<a href="/srp_request_reject/{{ srpfleetrequest.id }}">
|
|
<button type="button" class="btn btn-warning"><span
|
|
class="glyphicon glyphicon-remove"></span></button>
|
|
</a>
|
|
{% elif srpfleetrequest.srp_status == "Pending" %}
|
|
<a href="/srp_request_reject/{{ srpfleetrequest.id }}">
|
|
<button type="button" class="btn btn-warning"><span
|
|
class="glyphicon glyphicon-remove"></span></button>
|
|
</a>
|
|
{% elif srpfleetrequest.srp_status == "" %}
|
|
<a href="/srp_request_reject/{{ srpfleetrequest.id }}">
|
|
<button type="button" class="btn btn-warning"><span
|
|
class="glyphicon glyphicon-remove"></span></button>
|
|
</a>
|
|
{% endif %}
|
|
<a href="/srp_request_remove/{{ srpfleetrequest.id }}">
|
|
<button type="button" class="btn btn-danger"><span
|
|
class="glyphicon glyphicon-trash"></span></button>
|
|
</a>
|
|
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock content %}
|