Finished work on the Blacklist function, also cleaned up some HR functions

This commit is contained in:
2010-07-05 12:09:55 +01:00
parent 4a3b801185
commit fd8e9451f8
6 changed files with 45 additions and 23 deletions

View File

@@ -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>

View File

@@ -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>,&nbsp;
<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>,&nbsp;
<a href="{% url hr.views.reject_application app.id %}">Reject Application</a>,&nbsp;
{% ifequal app.blacklisted 0 %}
<a href="{% url hr.views.accept_application app.id %}">Accept Application</a>,&nbsp;
{% endifequal %}
{% ifnotequal app.status 4 %}
<a href="{% url hr.views.update_application app.id 4 %}">Mark as In Query</a>,&nbsp;
{% 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>

View File

@@ -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>

View File

@@ -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 %}