mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Removed the need for forms to update the Application status.
This commit is contained in:
@@ -14,18 +14,15 @@
|
||||
</ul>
|
||||
|
||||
<h3>Actions</h3>
|
||||
{% if form %}
|
||||
<form action="{% url hr.views.update_application app.id %}" method="post">
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
</table>
|
||||
<input type="submit" value="Apply" />
|
||||
</form>
|
||||
{% endif %}
|
||||
<p>
|
||||
{% ifequal app.status 0 %}
|
||||
<a href="{% url hr.views.update_application app.id 1 %}">Submit Application</a>
|
||||
{% endifequal %}
|
||||
|
||||
{% 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>
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user