mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-20 01:32:31 +02:00
186 lines
10 KiB
HTML
Executable File
186 lines
10 KiB
HTML
Executable File
{% 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.member %}
|
|
<h1 class="page-header text-center">Personal Applications
|
|
<div class="text-right">
|
|
{% if create %}
|
|
<a href="{% url 'auth_hrapplication_create_view' %}"><button type="button" class="btn btn-success">Create Application</button></a>
|
|
{% else %}
|
|
<button type="button" class="btn btn-success" disabled>Create Application</button>
|
|
{% endif %}
|
|
</div>
|
|
</h1>
|
|
<table class="table table-bordered table-condensed">
|
|
<tr>
|
|
<th class="text-center">Username</th>
|
|
<th class="text-center">Corporation
|
|
<th class="text-center">Status</th>
|
|
<th class="text-center">Actions</th>
|
|
</tr>
|
|
{% for personal_app in personal_apps %}
|
|
<tr>
|
|
<td class="text-center">{{ personal_app.user.username }}</td>
|
|
<td class="text-center">{{ personal_app.form.corp.corporation_name }}</td>
|
|
<td class="text-center">
|
|
{% if personal_app.approved == None %}
|
|
<div class="label label-warning">Pending</div>
|
|
{% elif personal_app.approved == True %}
|
|
<div class="label label-success">Approved</div>
|
|
{% else %}
|
|
<div class="label label-danger">Rejected</div>
|
|
{% endif %}
|
|
</td>
|
|
<td class="text-center">
|
|
<a href="/hr_application_personal_view/{{ personal_app.id }}">
|
|
<button type="button" class="btn btn-primary"><span
|
|
class="glyphicon glyphicon-eye-open"></span></button>
|
|
</a>
|
|
|
|
{% if personal_app.approved_denied == None %}
|
|
<a href="/hr_application_personal_removal/{{ personal_app.id }}">
|
|
<button type="button" class="btn btn-danger"><span
|
|
class="glyphicon glyphicon-remove"></span></button>
|
|
</a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
{% if perms.auth.human_resources %}
|
|
<h1 class="page-header text-center">Application Management
|
|
<div class="text-right">
|
|
<!-- Button trigger modal -->
|
|
<button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#myModal">
|
|
Search Applications
|
|
</button>
|
|
</div>
|
|
</h1>
|
|
<ul class="nav nav-tabs">
|
|
<li class="active"><a data-toggle="tab" href="#pending">Pending</a></li>
|
|
<li><a data-toggle="tab" href="#reviewed">Reviewed</a></li>
|
|
</ul>
|
|
<div class="tab-content">
|
|
<div id="pending" class="tab-pane fade in active">
|
|
<div class="panel-body">
|
|
<table class="table">
|
|
<tr>
|
|
<th class="text-center">Date</th>
|
|
<th class="text-center">Username</th>
|
|
<th class="text-center">Main Character</th>
|
|
<th class="text-center">Corporation</th>
|
|
<th class="text-center">Status</th>
|
|
<th class="text-center">Actions</th>
|
|
</tr>
|
|
{% for app in applications %}
|
|
<tr>
|
|
<td class="text-center">{{ app.created }}</td>
|
|
<td class="text-center">{{ app.user.username }}</td>
|
|
<td class="text-center">{{ app.main_character }}</td>
|
|
<td class="text-center">{{ app.form.corp.corporation_name }}</td>
|
|
<td class="text-center">
|
|
{% if app.approved_denied == None %}
|
|
{% if app.reviewer_str %}
|
|
<div class="label label-info">Reviewer: {{ app.reviewer_str }}</div>
|
|
{% else %}
|
|
<div class="label label-warning">Pending</div>
|
|
{% endif %}
|
|
{% elif app.approved_denied == True %}
|
|
<div class="label label-success">Approved</div>
|
|
{% else %}
|
|
<div class="label label-danger">Rejected</div>
|
|
{% endif %}
|
|
</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>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div id="reviewed" class="tab-pane fade">
|
|
<div class="panel-body">
|
|
<table class="table">
|
|
<tr>
|
|
<th class="text-center">Date</th>
|
|
<th class="text-center">Username</th>
|
|
<th class="text-center">Main Character</th>
|
|
<th class="text-center">Corporation</th>
|
|
<th class="text-center">Status</th>
|
|
<th class="text-center">Actions</th>
|
|
</tr>
|
|
{% for app in finished_applications %}
|
|
<tr>
|
|
<td class="text-center">{{ app.created }}</td>
|
|
<td class="text-center">{{ app.user.username }}</td>
|
|
<td class="text-center">{{ app.main_character }}</td>
|
|
<td class="text-center">{{ app.form.corp.corporation_name }}</td>
|
|
<td class="text-center">
|
|
{% if app.approved_denied == None %}
|
|
{% if app.reviewer_str %}
|
|
<div class="label label-info">Reviewer: {{ app.reviewer_str }}</div>
|
|
{% else %}
|
|
<div class="label label-warning">Pending</div>
|
|
{% endif %}
|
|
{% elif app.approved_denied == True %}
|
|
<div class="label label-success">Approved</div>
|
|
{% else %}
|
|
<div class="label label-danger">Rejected</div>
|
|
{% endif %}
|
|
</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>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% if perms.auth.human_resources %}
|
|
<!-- Modal -->
|
|
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
|
|
aria-hidden="true">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span
|
|
class="sr-only">Close</span></button>
|
|
<h4 class="modal-title" id="myModalLabel">Application Search</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form class="form-signin" role="form"
|
|
action={% url 'auth_hrapplication_search' %} method="POST">
|
|
{% csrf_token %}
|
|
{{ search_form|bootstrap }}
|
|
<br/>
|
|
<button class="btn btn-lg btn-primary btn-block" type="submit">Search</button>
|
|
</form>
|
|
</div>
|
|
<div class="modal-footer">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock content %}
|