mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Added flagging of alt applications
This commit is contained in:
@@ -83,6 +83,10 @@ class Application(models.Model):
|
|||||||
return self.audit_set.all().order_by('-date')[0]
|
return self.audit_set.all().order_by('-date')[0]
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@property
|
||||||
|
def alt_application(self):
|
||||||
|
return EVEPlayerCharacters.objects.filter(corporation=self.corporation, eveaccount__user=self.user).count() > 0
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
|
|
||||||
user = None
|
user = None
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<p>This list shows your current open applications</p>
|
<p>This list shows your current open applications</p>
|
||||||
{% if apps %}
|
{% if apps %}
|
||||||
<table>
|
<table>
|
||||||
<tr><th>Application ID</th><th>Character</th><th>Corporation</th><th>Application Status</th></tr>
|
<tr {% if app.alt_application %}background="#FFA545"{% endif %}><th>Application ID</th><th>Character</th><th>Corporation</th><th>Application Status</th></tr>
|
||||||
{% for app in apps %}
|
{% for app in apps %}
|
||||||
<tr><td><a href="{% url hr.views.view_application app.id %}">{{ app.id }}</a></td>
|
<tr><td><a href="{% url hr.views.view_application app.id %}">{{ app.id }}</a></td>
|
||||||
<td>{{ app.character }}</td>
|
<td>{{ app.character }}</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user