mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-13 22:32:15 +00:00
87 lines
2.8 KiB
HTML
87 lines
2.8 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% load humanize %}
|
|
{% load if_extra %}
|
|
|
|
{% block title %}View Application{% endblock %}
|
|
|
|
{% block content %}
|
|
<h3>Application Details</h3>
|
|
|
|
<ul>
|
|
<li>Applying Auth User: <a href="{% url sso.views.user_view app.user %}">{{ app.user }}</a></li>
|
|
<li>Applying Character: {{ app.character }} <button type="button" onclick="CCPEVE.showInfo('1377//{{ app.character.id }}')">Show In Eve</button></li>
|
|
<li>Application Status: <b>{{ app.status_description }}</b></li>
|
|
</ul>
|
|
|
|
{% ifnotequal app.status 5 %}
|
|
<h3>Actions</h3>
|
|
<p>
|
|
{% if app.status < 1 %}
|
|
<a href="{% url hr.views.update_application app.id 1 %}">Submit Application</a>,
|
|
{% endif %}
|
|
{% if hrstaff %}
|
|
<a href="{% url hr.views.add_note app.id %}">Add Note</a>,
|
|
{% if app.status < 2 or app.status = 4 %}
|
|
<a href="{% url hr.views.reject_application app.id %}">Reject Application</a>,
|
|
<a href="{% url hr.views.accept_application app.id %}">Accept Application</a>,
|
|
{% ifnotequal app.status 4 %}
|
|
<a href="{% url hr.views.update_application app.id 4 %}">Mark as In Query</a>,
|
|
{% endifnotequal %}
|
|
{% endif %}
|
|
{% ifequal app.status 3 %}
|
|
<a href="{% url hr.views.update_application app.id 5 %}">Mark as Complete</a>,
|
|
{% endifequal %}
|
|
{% endif %}
|
|
{% endifnotequal %}
|
|
</p>
|
|
|
|
{% if audit %}
|
|
<h3>Event Log</h3>
|
|
<table>
|
|
<tr><th>Event Type</th><th>Changed By</th><th>Changed Date</th><th>Event Details</th></tr>
|
|
{% for a in audit %}
|
|
<tr><td>{{ a.event_description }}</td><td>{{ a.user }}</td><td>{{ a.date }}</td><td>{{ a.text }}</td></tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
|
|
{% if recs %}
|
|
<h3>Recommendations</h3>
|
|
<ul>
|
|
{% for rec in recs %}
|
|
<li><a href="{% url sso.views.user_view rec.user %}">{{ rec.user }}</a> / {{ rec.user_character }} - {{ rec.user_character.corporation }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% if hrstaff %}
|
|
<h3>EVE Characters</h3>
|
|
<ul>
|
|
{% for acc in eveacc %}
|
|
{% for char in acc.characters.all %}
|
|
<li><a href="{% url sso.views.characters char.id %}">{{ char.name }}</a> - {{ char.corporation }} / {{ char.corporation.alliance }} - {{ char.balance|intcomma }} ISK, {{ char.total_sp|intcomma }} SP <button type="button" onclick="CCPEVE.showInfo('1377//{{ char.id }}')">Show In Eve</button></li>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<h3>Reddit Accounts</h3>
|
|
<ul>
|
|
{% for acc in redditacc %}
|
|
<li><a href="http://reddit.com/user/{{ acc.username }}/">{{ acc.username }}</a>{% if acc.validated %} - Validated{%else %} - <b>NOT VALIDATED</b>{% endif %} - {{ acc.date_created }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
|
|
<h3>Reddit Posts</h3>
|
|
<ul>
|
|
{% for post in posts %}
|
|
{% ifequal post.kind 1 %}
|
|
<p><b><a href="{{ post.permalink }}">{{ post.title }}</a></b> - /r/{{ post.subreddit }}</p>
|
|
{% else %}
|
|
<p>{{ post.body }} - (/r/{{post.subreddit}}) <a href="{{ post.permalink }}/">Permalink</a></p>
|
|
{% endifequal %}
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endblock %}
|