[CHANGE] Minor corrections

This commit is contained in:
Peter Pfeufer 2023-12-09 18:14:13 +01:00
parent 2440e5d2b2
commit d0684862fe
No known key found for this signature in database
GPG Key ID: 6051D2C6AD4EBC27
3 changed files with 31 additions and 21 deletions

View File

@ -1,4 +1,5 @@
{% load i18n %} {% load i18n %}
<div class="text-end"> <div class="text-end">
<a href="{% url 'timerboard:view' %}" class="btn btn-default">{% translate "Back" %}</a> <a href="{% url 'timerboard:view' %}" class="btn btn-default">{% translate "Back" %}</a>
</div> </div>

View File

@ -1,22 +1,30 @@
{% extends "allianceauth/base-bs5.html" %} {% extends "allianceauth/base-bs5.html" %}
{% load i18n %} {% load i18n %}
{% block page_title %} {% block page_title %}
{% translate "Delete Timer" %} {% translate "Delete Timer" %}
{% endblock page_title %} {% endblock page_title %}
{% block header_nav_brand %}
{% translate "Structure Timers" %}
{% endblock header_nav_brand %}
{% block content %} {% block content %}
<div class="col-lg-12"> <div>
<h1 class="page-header text-center"> <h1 class="page-header text-center mb-3">
{% translate "Delete Timer" %} {% translate "Delete Timer" %}
{% include "timerboard/index_button.html" %} {% include "timerboard/index_button.html" %}
</h1> </h1>
<div class="container-fluid"> <div class="container-fluid">
<div class="col-md-2 col-md-offset-5"> <div class="col-md-2 col-md-offset-5">
<div class="row"> <div class="row">
<form action="" method="post"> <form action="" method="post">
{% csrf_token %} {% csrf_token %}
<p>{% blocktranslate %}Are you sure you want to delete timer "{{ object }}"?{% endblocktranslate %}</p> <p>{% blocktranslate %}Are you sure you want to delete timer "{{ object }}"?{% endblocktranslate %}</p>
<input class="btn btn-danger btn-block" type="submit" value="Confirm"> <input class="btn btn-danger btn-block" type="submit" value="Confirm">
</form> </form>
</div> </div>

View File

@ -11,6 +11,7 @@
<th class="text-center">{% translate "Eve Time" %}</th> <th class="text-center">{% translate "Eve Time" %}</th>
<th class="text-center">{% translate "Local Time" %}</th> <th class="text-center">{% translate "Local Time" %}</th>
<th class="text-center">{% translate "Creator" %}</th> <th class="text-center">{% translate "Creator" %}</th>
{% if perms.auth.timer_management %} {% if perms.auth.timer_management %}
<th class="text-center">{% translate "Action" %}</th> <th class="text-center">{% translate "Action" %}</th>
{% endif %} {% endif %}
@ -60,115 +61,115 @@
<td class="text-center"> <td class="text-center">
{% if timer.structure == "POCO" %} {% if timer.structure == "POCO" %}
<div class="badge bg-info"> <div class="badge bg-info">
POCO {% translate "POCO" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "I-HUB" %} {% if timer.structure == "I-HUB" %}
<div class="badge bg-warning"> <div class="badge bg-warning">
I-HUB {% translate "I-HUB" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "TCU" %} {% if timer.structure == "TCU" %}
<div class="badge bg-danger"> <div class="badge bg-danger">
TCU {% translate "TCU" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "POS[S]" %} {% if timer.structure == "POS[S]" %}
<div class="badge bg-info"> <div class="badge bg-info">
POS [S] {% translate "POS [S]" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "POS[M]" %} {% if timer.structure == "POS[M]" %}
<div class="badge bg-info"> <div class="badge bg-info">
POS [M] {% translate "POS [M]" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "POS[L]" %} {% if timer.structure == "POS[L]" %}
<div class="badge bg-info"> <div class="badge bg-info">
POS [L] {% translate "POS [L]" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "Citadel[M]" or timer.structure == "Astrahus" %} {% if timer.structure == "Citadel[M]" or timer.structure == "Astrahus" %}
<div class="badge bg-danger"> <div class="badge bg-danger">
Astrahus {% translate "Astrahus" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "Citadel[L]" or timer.structure == "Fortizar" %} {% if timer.structure == "Citadel[L]" or timer.structure == "Fortizar" %}
<div class="badge bg-danger"> <div class="badge bg-danger">
Fortizar {% translate "Fortizar" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "Citadel[XL]" or timer.structure == "Keepstar" %} {% if timer.structure == "Citadel[XL]" or timer.structure == "Keepstar" %}
<div class="badge bg-danger"> <div class="badge bg-danger">
Keepstar {% translate "Keepstar" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "Engineering Complex[M]" or timer.structure == "Raitaru" %} {% if timer.structure == "Engineering Complex[M]" or timer.structure == "Raitaru" %}
<div class="badge bg-warning"> <div class="badge bg-warning">
Raitaru {% translate "Raitaru" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "Engineering Complex[L]" or timer.structure == "Azbel" %} {% if timer.structure == "Engineering Complex[L]" or timer.structure == "Azbel" %}
<div class="badge bg-warning"> <div class="badge bg-warning">
Azbel {% translate "Azbel" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "Engineering Complex[XL]" or timer.structure == "Sotiyo" %} {% if timer.structure == "Engineering Complex[XL]" or timer.structure == "Sotiyo" %}
<div class="badge bg-warning"> <div class="badge bg-warning">
Sotiyo {% translate "Sotiyo" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "Refinery[M]" or timer.structure == "Athanor" %} {% if timer.structure == "Refinery[M]" or timer.structure == "Athanor" %}
<div class="badge bg-warning"> <div class="badge bg-warning">
Athanor {% translate "Athanor" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "Refinery[L]" or timer.structure == "Tatara"%} {% if timer.structure == "Refinery[L]" or timer.structure == "Tatara"%}
<div class="badge bg-warning"> <div class="badge bg-warning">
Tatara {% translate "Tatara" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "Cyno Beacon" or timer.structure == "Pharolux Cyno Beacon" %} {% if timer.structure == "Cyno Beacon" or timer.structure == "Pharolux Cyno Beacon" %}
<div class="badge bg-warning"> <div class="badge bg-warning">
Cyno Beacon {% translate "Cyno Beacon" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "Cyno Jammer" or timer.structure == "Tenebrex Cyno Jammer" %} {% if timer.structure == "Cyno Jammer" or timer.structure == "Tenebrex Cyno Jammer" %}
<div class="badge bg-warning"> <div class="badge bg-warning">
Tenebrex Cyno Jammer {% translate "Cyno Jammer" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "Jump Gate" or timer.structure == "Ansiblex Jump Gate" %} {% if timer.structure == "Jump Gate" or timer.structure == "Ansiblex Jump Gate" %}
<div class="badge bg-warning"> <div class="badge bg-warning">
Ansiblex Jump Gate {% translate "Ansiblex Jump Gate" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "Moon Mining Cycle" %} {% if timer.structure == "Moon Mining Cycle" %}
<div class="badge bg-success"> <div class="badge bg-success">
Moon Mining Cycle {% translate "Moon Mining Cycle" %}
</div> </div>
{% endif %} {% endif %}
{% if timer.structure == "Other" %} {% if timer.structure == "Other" %}
<div class="badge bg-default"> <div class="badge bg-default">
Other {% translate "Other" %}
</div> </div>
{% endif %} {% endif %}
</td> </td>