Initial commit of the HR management code

This commit is contained in:
2010-04-05 02:43:27 +01:00
parent 6b8a4e374d
commit 52a41f4229
14 changed files with 364 additions and 11 deletions

View File

@@ -15,17 +15,18 @@
<div id="navigation">
<ul>
<li><a href="/">Home</a></li>
{% if request.user %}
<li><a href="/profile">Profile</a></li>
<li><a href="/profile/characters">Characters</a></li>
{% if request.user.is_staff %}
<li><a href="/users">Lookup User</a></li>
<li><a href="/admin">Admin</a></li>
{% endif %}
<li><a href="/logout">Logout</a></li>
{% else %}
<li><a href="/login">Login</a></li>
{% endif %}
{% if request.user %}
<li><a href="/profile">Profile</a></li>
<li><a href="/hr/">HR</a></li>
<li><a href="/profile/characters">Characters</a></li>
{% if request.user.is_staff %}
<li><a href="/users">Lookup User</a></li>
<li><a href="/admin">Admin</a></li>
{% endif %}
<li><a href="/logout">Logout</a></li>
{% else %}
<li><a href="/login">Login</a></li>
{% endif %}
</ul>
</div>
<div id="content">

View File

@@ -0,0 +1,16 @@
{% extends "base.html" %}
{% block title %}Add EVE API Key{% endblock %}
{% block content %}
<p>Select a character you wish to recommend from, then select your friend's current application.
The person you are recommending needs to have created their application before you can add a recommendation.</p>
<form action="/hr/add/recommendation/" method="post">
<table>
{{ form.as_table }}
</table>
<input type="submit" value="Add Recommendation" />
</form>
{% endblock %}

View File

@@ -0,0 +1,26 @@
{% extends "base.html" %}
{% block title %}Recommendations{% endblock %}
{% block content %}
<p>This list shows your current open recommendations that are yet to be submitted, as
soon as the recommended user submits their application your recommendation will be removed from this list.</p>
{% if recs %}
<table>
<thead>
<tr><th>Recommender</th><th>Recommended Application</th><th>Application Status</th></tr>
</thead>
<tbody>
{% for rec in recs %}
<tr><td>{{ rec.user_character }}</td>
<td>{{ rec.application }}</td>
<td>{{ rec.application.status_description }}</td>
</tr>
</tbody>
{% endfor %}
</table>
{% else %}
<p>You have no current recommendations</p>
{% endif %}
{% endblock %}

22
templates/hr/index.html Normal file
View File

@@ -0,0 +1,22 @@
{% extends "base.html" %}
{% block title %}HR{% endblock %}
{% block content %}
<h3>Applications</h3>
<p><a href="/hr/applications/">View your current open applications</a><br/>
<a href="/hr/add/application/">Create a application</a><br/></p>
<h3>Recommendations</h3>
<p>
<a href="/hr/recommendations/">View your current open recommendations</a><br/>
<a href="/hr/add/recommendation/">Add a recommendation</a><br/>
</p>
{% if hrstaff %}
<h3>HR Admin</h3>
<p>
<a href="/hr/admin/applications/">View applications</a><br/>
</p>
{% endif %}
{% endblock %}

View File

@@ -0,0 +1,16 @@
{% extends "base.html" %}
{% block title %}Add EVE API Key{% endblock %}
{% block content %}
<p>Select a character you wish to recommend from, then select your friend's current application.
The person you are recommending needs to have created their application before you can add a recommendation.</p>
<form action="/hr/add/recommendation/" method="post">
<table>
{{ form.as_table }}
</table>
<input type="submit" value="Add Recommendation" />
</form>
{% endblock %}

View File

@@ -0,0 +1,26 @@
{% extends "base.html" %}
{% block title %}Recommendations{% endblock %}
{% block content %}
<p>This list shows your current open recommendations that are yet to be submitted, as
soon as the recommended user submits their application your recommendation will be removed from this list.</p>
{% if recs %}
<table>
<thead>
<tr><th>Recommender</th><th>Recommended Application</th><th>Application Status</th></tr>
</thead>
<tbody>
{% for rec in recs %}
<tr><td>{{ rec.user_character }}</td>
<td>{{ rec.application }}</td>
<td>{{ rec.application.status_description }}</td>
</tr>
</tbody>
{% endfor %}
</table>
{% else %}
<p>You have no current recommendations</p>
{% endif %}
{% endblock %}