Files
test-auth/templates/hr/applications/view.html

75 lines
2.4 KiB
HTML

{% extends "base.html" %}
{% load humanize %}
{% 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>
<h3>Actions</h3>
<p>
{% ifequal app.status 0 %}
<a href="{% url hr.views.update_application app.id 1 %}">Submit Application</a>
{% endifequal %}
{% if hrstaff %}
<a href="{% url hr.views.add_note app.id %}">Add Note</a>, <a href="{% url hr.views.reject_application app.id %}">Reject Application</a>, <a href="{% url hr.views.accept_application app.id %}">Accept Application</a>
{% endif %}
</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 %}
{% if post.permalink %}
<p><b><a href="http://reddit.com{{ post.permalink }}">{{ post.title }}</a></b> - /r/{{ post.subreddit }}</p>
{% else %}
<p>{{ post.body }} - <a href="http://reddit.com/comments/{{ post.link_id }}/">Permalink</a></p>
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% endblock %}