mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Finished work on the Blacklist function, also cleaned up some HR functions
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<tr><td><a href="{% url hr.views.view_application app.id %}">{{ app.id }}</a></td>
|
||||
<td>{{ app.character }}</td>
|
||||
<td>{{ app.corporation }}</td>
|
||||
<td>{{ app.status_description }}</td>
|
||||
<td>{{ app.get_status_display }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
<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>
|
||||
<li>Application Status: <b>{{ app.get_status_display }}</b></li>
|
||||
<li>Blacklist Status: <b>{% if app.blacklisted %}<span color='red'>BLACKLISTED</span>{% else %}OK{% endif %}</b></li>
|
||||
</ul>
|
||||
|
||||
{% ifnotequal app.status 5 %}
|
||||
@@ -24,8 +25,10 @@
|
||||
<a href="{% url hr.views.add_note app.id %}">Add Note</a>,
|
||||
<a href="{% url hr.views.add_message app.id %}">Send Message to Applicant</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.reject_application app.id %}">Reject Application</a>,
|
||||
{% ifequal app.blacklisted 0 %}
|
||||
<a href="{% url hr.views.accept_application app.id %}">Accept Application</a>,
|
||||
{% endifequal %}
|
||||
{% ifnotequal app.status 4 %}
|
||||
<a href="{% url hr.views.update_application app.id 4 %}">Mark as In Query</a>,
|
||||
{% endifnotequal %}
|
||||
@@ -47,6 +50,16 @@
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if app.blacklisted %}
|
||||
<h3>Blacklist Triggers</h3>
|
||||
<table>
|
||||
<tr><th>Blacklist Type</th><th>Blacklisted Value</th><th>Reason</th></tr>
|
||||
{% for a in app.blacklist_values %}
|
||||
<tr><td>{{ a.get_type_display }}</td><td>{{ a.value }}</td><td>{{ a.reason }}</td></tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if recs %}
|
||||
<h3>Recommendations</h3>
|
||||
<ul>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<tr><td><a href="{% url hr.views.view_application app.id %}">{{ app.id }}</a></td>
|
||||
<td>{{ app.character }}</td>
|
||||
<td>{{ app.corporation }}</td>
|
||||
<td>{{ app.status_description }}</td>
|
||||
<td>{{ app.get_status_display }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
@@ -14,7 +14,7 @@ soon as the recommended user submits their application your recommendation will
|
||||
{% for rec in recs %}
|
||||
<tr><td>{{ rec.user_character }}</td>
|
||||
<td>{{ rec.application }}</td>
|
||||
<td>{{ rec.application.status_description }}</td>
|
||||
<td>{{ rec.application.get_status_display }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user