Add timestamp to comments on HR applications, removed useless 'App ID' field from HR overview

This commit is contained in:
Adam Trager 2016-01-06 17:35:34 -05:00
parent 4fa764e301
commit c17fdb2b7a
3 changed files with 3 additions and 4 deletions

View File

@ -27,6 +27,7 @@ class HRApplication(models.Model):
class HRApplicationComment(models.Model):
created_on = models.DateTimeField(auto_now_add=True)
comment = models.CharField(max_length=254, default="")
application = models.ForeignKey(HRApplication)
commenter_user = models.ForeignKey(User)

View File

@ -21,9 +21,8 @@
</a>
</div>
</h1>
<table class="table table-bordered">
<table class="table table-bordered table-condensed">
<tr>
<th class="text-center">Application ID</th>
<th class="text-center">Username</th>
<th class="text-center">Main Character</th>
<th class="text-center">Corporation
@ -32,7 +31,6 @@
</tr>
{% for personal_app in personal_apps %}
<tr>
<td class="text-center">{{ personal_app.id }}</td>
<td class="text-center">{{ personal_app.user.username }}</td>
<td class="text-center">{{ personal_app.character_name }}</td>
<td class="text-center">{{ personal_app.corp.corporation_name }}</td>

View File

@ -164,7 +164,7 @@
{% for comment in comments %}
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="">
<div class="panel-title">{{ comment.commenter_character.character_name }}
<div class="panel-title">{{comment.commenter_character.created_on}} - {{ comment.commenter_character.character_name }}
- {{ comment.commenter_character.corporation_name }}</div>
</div>
<div class="panel-body">{{ comment.comment }}</div>