mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-09 16:46:20 +01:00
Merge pull request #198 from orbitroom/master
Added Signature / Wormhole Tracking Tool
This commit is contained in:
@@ -137,6 +137,16 @@
|
||||
href="{% url 'auth_fleet_fits' %}"><i
|
||||
class="fa fa-bolt fa-fw grayiconecolor"></i> Fleet Doctrines</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% if perms.auth.member or perms.auth.blue_member %}
|
||||
<li>
|
||||
<a {% ifequal request.path "/sigtracker" %} class="active" {% endifequal %}
|
||||
href="{% url 'auth_signature_view' %}"><i
|
||||
class="fa fa-compass fa-fw grayiconecolor"></i> Signature Tracker</a>
|
||||
</li>
|
||||
|
||||
|
||||
{% if perms.auth.timer_view %}
|
||||
<li>
|
||||
<a {% ifequal request.path "/timer_management" %} class="active" {% endifequal %}
|
||||
|
||||
38
stock/templates/registered/addsignature.html
Normal file
38
stock/templates/registered/addsignature.html
Normal file
@@ -0,0 +1,38 @@
|
||||
{% extends "public/base.html" %}
|
||||
{% load bootstrap %}
|
||||
{% load staticfiles %}
|
||||
|
||||
{% block title %}Alliance Auth - Signature Create{% endblock %}
|
||||
|
||||
{% block page_title %}Create Signature{% endblock page_title %}
|
||||
{% block extra_css %}
|
||||
<link href="{% static 'css/jquery.datetimepicker.css' %}" rel="stylesheet" type="text/css">{% endblock extra_css %}
|
||||
|
||||
{% block content %}
|
||||
<div class="col-lg-12">
|
||||
<h1 class="page-header text-center">Create Signature</h1>
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="col-md-4 col-md-offset-4">
|
||||
<div class="row">
|
||||
<form class="form-signin" role="form" action="" method="POST">
|
||||
{% csrf_token %}
|
||||
{{ form|bootstrap }}
|
||||
<br/>
|
||||
<button class="btn btn-lg btn-primary btn-block" type="submit">Create Signature</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock content %}
|
||||
|
||||
{% block extra_script %}
|
||||
|
||||
$('#id_eve_time').datetimepicker({
|
||||
maskInput: true,
|
||||
format: 'Y-m-d H:i',minDate:0
|
||||
});
|
||||
|
||||
{% endblock extra_script %}
|
||||
68
stock/templates/registered/signaturemanagement.html
Normal file
68
stock/templates/registered/signaturemanagement.html
Normal file
@@ -0,0 +1,68 @@
|
||||
{% extends "public/base.html" %}
|
||||
{% load staticfiles %}
|
||||
|
||||
{% block title %}Alliance Auth{% endblock %}
|
||||
|
||||
{% block page_title %}Signature Management{% endblock page_title %}
|
||||
{% block extra_css %}{% endblock extra_css %}
|
||||
|
||||
{% block content %}
|
||||
<div class="col-lg-12">
|
||||
<h1 class="page-header text-center">Signatures
|
||||
<div class="text-right">
|
||||
<a href="{% url 'auth_add_signature_view' %}">
|
||||
{% if perms.auth.signature_management %}
|
||||
<button type="button" class="btn btn-success">Create Signature</button>
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
</h1>
|
||||
<table class="table table-responsive table-bordered">
|
||||
<tr>
|
||||
<th class="text-center">ID</th>
|
||||
<th class="text-center">System</th>
|
||||
<th class="text-center">Destination</th>
|
||||
<th class="text-center">Signature Type</th>
|
||||
<th class="text-center">Status</th>
|
||||
<th class="text-center">Notes</th>
|
||||
<th class="text-center">Post Time</th>
|
||||
{% if perms.auth.signature_management %}
|
||||
<th class="text-center">Creator</th>
|
||||
<th class="text-center">Action</th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
|
||||
{% for sigt in sigtracker %}
|
||||
<tr>
|
||||
<td style="width:150px" class="text-center">{{ sigt.ident }}</td>
|
||||
|
||||
<td class="text-center">
|
||||
<a href="http://evemaps.dotlan.net/system/{{ sigt.system }}">{{ sigt.system }}</a>
|
||||
</td>
|
||||
<td style="width:150px" class="text-center">{{ sigt.destination }}</td>
|
||||
<td style="width:150px" class="text-center">{{ sigt.sigtype }}</td>
|
||||
<td style="width:150px" class="text-center">{{ sigt.status }}</td>
|
||||
<td style="width:150px" class="text-center">{{ sigt.notes }}</td>
|
||||
<td style="width:150px" class="text-center">{{ sigt.post_time}}</td>
|
||||
{% if perms.auth.signature_management %}
|
||||
<td style="width:150px" class="text-center">{{ sigt.eve_character }}</td>
|
||||
<td class="text-center">
|
||||
<a href="/remove_signature/{{ sigt.id }}">
|
||||
<button type="button" class="btn btn-danger"><span
|
||||
class="glyphicon glyphicon-remove"></span></button>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
{% endblock content %}
|
||||
Reference in New Issue
Block a user