mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-07 23:56:23 +01:00
Added Fleet Operations Timer
This commit is contained in:
@@ -140,11 +140,17 @@
|
||||
{% endif %}
|
||||
|
||||
{% if perms.auth.member or perms.auth.blue_member %}
|
||||
<li>
|
||||
<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>
|
||||
|
||||
<li>
|
||||
<a {% ifequal request.path "/optimer" %} class="active" {% endifequal %}
|
||||
href="{% url 'auth_optimer_view' %}"><i
|
||||
class="fa fa-compass fa-fw grayiconecolor"></i> Fleet Operations</a>
|
||||
</li>
|
||||
|
||||
|
||||
{% if perms.auth.timer_view %}
|
||||
|
||||
38
stock/templates/registered/addoperation.html
Normal file
38
stock/templates/registered/addoperation.html
Normal file
@@ -0,0 +1,38 @@
|
||||
{% extends "public/base.html" %}
|
||||
{% load bootstrap %}
|
||||
{% load staticfiles %}
|
||||
|
||||
{% block title %}Alliance Auth - Fleet Operation Create{% endblock %}
|
||||
|
||||
{% block page_title %}Create Operation{% 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 Fleet Operation</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 Fleet Operation</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 %}
|
||||
70
stock/templates/registered/operationmanagement.html
Normal file
70
stock/templates/registered/operationmanagement.html
Normal file
@@ -0,0 +1,70 @@
|
||||
{% extends "public/base.html" %}
|
||||
{% load staticfiles %}
|
||||
|
||||
{% block title %}Alliance Auth{% endblock %}
|
||||
|
||||
{% block page_title %}Fleet Operation Management{% endblock page_title %}
|
||||
{% block extra_css %}{% endblock extra_css %}
|
||||
|
||||
{% block content %}
|
||||
<div class="col-lg-12">
|
||||
<h1 class="page-header text-center">Fleet Operation Timers
|
||||
<div class="text-right">
|
||||
<a href="{% url 'auth_add_optimer_view' %}">
|
||||
{% if perms.auth.optimer_management %}
|
||||
<button type="button" class="btn btn-success">Create Operation</button>
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
</h1>
|
||||
<table class="table table-responsive table-bordered">
|
||||
<tr>
|
||||
<th class="text-center">Operation Name</th>
|
||||
<th class="text-center">System</th>
|
||||
<th class="text-center">Form Up Location</th>
|
||||
<th class="text-center">Start Time</th>
|
||||
<th class="text-center">End Time</th>
|
||||
<th class="text-center">FC</th>
|
||||
<th class="text-center">Details</th>
|
||||
<th class="text-center">Post Time</th>
|
||||
{% if perms.auth.optimer_management %}
|
||||
<th class="text-center">Creator</th>
|
||||
<th class="text-center">Action</th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
|
||||
{% for ops in optimer %}
|
||||
<tr>
|
||||
<td style="width:150px" class="text-center">{{ ops.operation_name }}</td>
|
||||
|
||||
<td class="text-center">
|
||||
<a href="http://evemaps.dotlan.net/system/{{ ops.system }}">{{ ops.system }}</a>
|
||||
</td>
|
||||
<td style="width:150px" class="text-center">{{ ops.location }}</td>
|
||||
<td style="width:150px" class="text-center">{{ ops.start_time }}</td>
|
||||
<td style="width:150px" class="text-center">{{ ops.end_time }}</td>
|
||||
<td style="width:150px" class="text-center">{{ ops.fc }}</td>
|
||||
<td style="width:150px" class="text-center">{{ ops.details }}</td>
|
||||
<td style="width:150px" class="text-center">{{ ops.post_time}}</td>
|
||||
{% if perms.auth.optimer_management %}
|
||||
<td style="width:150px" class="text-center">{{ ops.eve_character }}</td>
|
||||
<td class="text-center">
|
||||
<a href="/remove_optimer/{{ 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