mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-18 00:40:16 +02:00
87 lines
4.2 KiB
HTML
87 lines
4.2 KiB
HTML
{% extends "public/base.html" %}
|
|
{% load bootstrap %}
|
|
{% load staticfiles %}
|
|
|
|
{% block title %}Alliance Auth{% endblock %}
|
|
|
|
{% block page_title %}HR Application Management{% endblock page_title %}
|
|
{% block extra_css %}{% endblock extra_css %}
|
|
|
|
{% block content %}
|
|
<div class="col-lg-12">
|
|
{% if not perms.auth.alliance_member %}
|
|
<h1 class="page-header text-center">Personal Applications
|
|
<div class="text-right">
|
|
<a href="{% url 'auth_hrapplication_create_view' %}">
|
|
{% if personal_app %}
|
|
<button type="button" class="btn btn-success" disabled>Create Application</button>
|
|
{% else %}
|
|
<button type="button" class="btn btn-success">Create Application</button>
|
|
{% endif %}
|
|
</a>
|
|
</div>
|
|
</h1>
|
|
<table class="table table-bordered">
|
|
<tr>
|
|
<th class="text-center">Application ID</th>
|
|
<th class="text-center">Username</th>
|
|
<th class="text-center">Main Character</th>
|
|
<th class="text-center">Corporation</th>
|
|
<th class="text-center">Actions</th>
|
|
</tr>
|
|
{% if personal_app %}
|
|
<tr>
|
|
<td class="text-center">{{ personal_app.id }}</td>
|
|
<td class="text-center">{{ personal_app.user.username }}</td>
|
|
<td class="text-center">{{ personal_app.character_name }}</td>
|
|
<td class="text-center">{{ personal_app.corp.corporation_name }}</td>
|
|
<td class="text-center">
|
|
<a href="/hr_application_personal_view/">
|
|
<button type="button" class="btn btn-primary"><span
|
|
class="glyphicon glyphicon-eye-open"></span></button>
|
|
</a>
|
|
<a href="/hr_application_personal_removal/">
|
|
<button type="button" class="btn btn-danger"><span
|
|
class="glyphicon glyphicon-remove"></span></button>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
</table>
|
|
{% endif %}
|
|
{% if perms.auth.human_resources %}
|
|
<h1 class="page-header text-center">Application Management</h1>
|
|
<div class="container-fluid">
|
|
<table class="table table-bordered">
|
|
<tr>
|
|
<th class="text-center">Application ID</th>
|
|
<th class="text-center">Username</th>
|
|
<th class="text-center">Main Character</th>
|
|
<th class="text-center">Corporation</th>
|
|
<th class="text-center">Actions</th>
|
|
</tr>
|
|
{% for app in applications %}
|
|
<tr>
|
|
<td class="text-center">{{ app.id }}</td>
|
|
<td class="text-center">{{ app.user.username }}</td>
|
|
<td class="text-center">{{ app.character_name }}</td>
|
|
<td class="text-center">{{ app.corp.corporation_name }}</td>
|
|
<td class="text-center">
|
|
<a href="/hr_application_view/{{ app.id }}">
|
|
<button type="button" class="btn btn-primary"><span
|
|
class="glyphicon glyphicon-eye-open"></span></button>
|
|
</a>
|
|
<a href="/hr_application_remove/{{ app.id }}">
|
|
<button type="button" class="btn btn-danger"><span
|
|
class="glyphicon glyphicon-remove"></span></button>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% endblock content %}
|