allianceauth/stock/templates/registered/srpmanagement.html
iAddz c9e490a5c5 Added German Translations (#406)
* 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
2016-06-16 22:54:04 +00:00

129 lines
6.3 KiB
HTML
Executable File

{% extends "public/base.html" %}
{% load bootstrap %}
{% load staticfiles %}
{% load i18n %}
{% load humanize %}
{% block title %}Alliance Auth{% endblock %}
{% block page_title %}{% trans "Srp Management" %}{% 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 Management" %}
<div class="text-right">
{% if perms.auth.srp_management %}
<a href="{% url 'auth_srp_management_all_view' %}">
<button type="button" class="btn btn-primary">{% trans "View All" %}</button>
</a>
<a href="{% url 'auth_srp_fleet_add_view' %}">
<button type="button" class="btn btn-success">{% trans "Add SRP Fleet" %}</button>
</a>
{% endif %}
</div>
</h1>
<div class="alert alert-info" role="alert">
<div class="text-right">
<b>{% trans "Total ISK Cost:" %} {{ totalcost | intcomma }}</b>
</div>
</div>
<table class="table table-bordered">
<tr>
<th class="text-center">{% trans "Fleet Name" %}</th>
<th class="text-center">{% trans "Fleet Time" %}</th>
<th class="text-center">{% trans "Fleet Doctrine" %}</th>
<th class="text-center">{% trans "Fleet Commander" %}</th>
<th class="text-center">{% trans "Fleet AAR" %}</th>
<th class="text-center">{% trans "Fleet SRP Code" %}</th>
<th class="text-center">{% trans "Fleet ISK Cost" %}</th>
<th class="text-center">{% trans "SRP Status" %}</th>
<th class="text-center">{% trans "Actions" %}</th>
</tr>
{% for srpfleet in srpfleets %}
<tr>
<td class="text-center">
<div class="label label-info">
{{ srpfleet.fleet_name }}
</div>
</td>
<td class="text-center">{{ srpfleet.fleet_time | date:"Y-m-d H:i" }}</td>
<td class="text-center">{{ srpfleet.fleet_doctrine }}</td>
<td class="text-center">
<div class="label label-success">
{{ srpfleet.fleet_commander.character_name }}
</div>
</td>
<th class="text-center"><a href="{{ srpfleet.fleet_srp_aar_link }}"
target="_blank">{{ srpfleet.fleet_srp_aar_link }}</a></th>
<th class="text-center">
{% if srpfleet.fleet_srp_code %}
<div class="label label-warning">
<a href="/srp_request/{{ srpfleet.fleet_srp_code }}"
>{{ srpfleet.fleet_srp_code }}</a>
</div>
{% else %}
<div class="label label-danger">
{% trans "Disabled" %}
</div>
{% endif %}
</th>
<td class="text-center">
{% for key,value in price_pair.items %}
{% if key == srpfleet.id %}
ISK: {{ value | intcomma }}
{% endif %}
{% endfor %}
</td>
<td class="text-center">
{% if srpfleet.fleet_srp_status == "" %}
<div class="label label-warning">
{% trans "Pending" %}
</div>
{% else %}
<div class="label label-success">
{% trans "Completed" %}
</div>
{% endif %}
</td>
<td class="text-center">
<a href="/srp_fleet_view/{{ srpfleet.id }}">
<button type="button" class="btn btn-primary"><span
class="glyphicon glyphicon-eye-open"></span></button>
</a>
{% if perms.auth.srp_management %}
<a href="/srp_fleet_edit/{{ srpfleet.id }}">
<button type="button" class="btn btn-info"><span
class="glyphicon glyphicon-pencil"></span></button>
</a>
<a href="/srp_fleet_remove/{{ srpfleet.id }}">
<button type="button" class="btn btn-danger"><span
class="glyphicon glyphicon-trash"></span></button>
</a>
{% if srpfleet.fleet_srp_code %}
<a href="/srp_fleet_disable/{{ srpfleet.id }}">
<button type="button" class="btn btn-warning"><span
class="glyphicon glyphicon-remove-sign"></span></button>
</a>
{% else %}
<a href="/srp_fleet_enable/{{ srpfleet.id }}">
<button type="button" class="btn btn-success"><span
class="glyphicon glyphicon-ok-sign"></span></button>
</a>
{% endif %}
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
</div>
{% endblock content %}