mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
HR milestone 2, application audit log and tracking.
This milestone brings in application auditing, allowing for people to track who modify what applications and provide acception/rejection reasons as part of the messages sent out to the users.
This commit is contained in:
13
templates/hr/applications/accept.html
Normal file
13
templates/hr/applications/accept.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Accept Application{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>Fill in a note you want to send to the user.</p>
|
||||
<form action="{% url hr.views.accept_application applicationid %}" method="post">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
<input type="submit" value="Apply" />
|
||||
</form>
|
||||
{% endblock %}
|
||||
12
templates/hr/applications/add_note.html
Normal file
12
templates/hr/applications/add_note.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Add Note to Application{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form action="{% url hr.views.add_note applicationid %}" method="post">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
<input type="submit" value="Apply" />
|
||||
</form>
|
||||
{% endblock %}
|
||||
13
templates/hr/applications/reject.html
Normal file
13
templates/hr/applications/reject.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Reject Application{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>Fill in the rejection reason below, please note, this will be sent out to the user.</p>
|
||||
<form action="{% url hr.views.reject_application applicationid %}" method="post">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
<input type="submit" value="Apply" />
|
||||
</form>
|
||||
{% endblock %}
|
||||
@@ -13,6 +13,7 @@
|
||||
<li>Application Status: <b>{{ app.status_description }}</b></li>
|
||||
</ul>
|
||||
|
||||
<h3>Actions</h3>
|
||||
{% if form %}
|
||||
<form action="{% url hr.views.update_application app.id %}" method="post">
|
||||
<table>
|
||||
@@ -22,6 +23,20 @@
|
||||
</form>
|
||||
{% endif %}
|
||||
|
||||
{% if hrstaff %}
|
||||
<p><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></p>
|
||||
{% endif %}
|
||||
|
||||
{% 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>
|
||||
|
||||
@@ -2,7 +2,11 @@ Hi {{ app.character }},
|
||||
|
||||
Your application to {{ app.corporation }} has been rejected.
|
||||
|
||||
{% if note %}
|
||||
{{ note }}
|
||||
{% else %}
|
||||
One of our Personnel people will contact you in a seperate method to explain why you have been rejected.
|
||||
{% endif %}
|
||||
|
||||
If you have any further questions regarding your application, please contact {{ app.corporation }} via the normal channels.
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ setup.</p>
|
||||
{% for acc in redditaccounts %}
|
||||
<tr><td>{{ acc.username }}</td>
|
||||
<td>{{ acc.date_created }}</td>
|
||||
<td>{% if acc.validated %}Yes{% else %}No (<a href="http://www.reddit.com/message/compose/?to=DredditVerification&subject=Validation%3a%20{{user.username}}">Validate</a>){% endif %}</td>
|
||||
<td>{% if acc.validated %}Yes{% else %}No (<a href="http://www.reddit.com/message/compose/?to=DredditVerification&subject=Validation%3a%20{{user.username}}" target="_blank">Validate</a>){% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user