Updated hr templates

This commit is contained in:
2011-12-04 17:51:47 +00:00
parent d789925c10
commit 7fe2e3af52
8 changed files with 70 additions and 35 deletions

View File

@@ -3,12 +3,19 @@
{% block title %}Accept Application{% endblock %} {% block title %}Accept Application{% endblock %}
{% block content %} {% block content %}
<div class="page-header">
<h1>Accept Application</h1>
</div>
<p>Fill in a note you want to send to the user.</p> <p>Fill in a note you want to send to the user.</p>
<form action="{% url hr-acceptapplication application.id %}" method="post"> <form action="{% url hr-acceptapplication application.id %}" method="post">
<table> <formset>
{{ form.as_table }} {% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
{% csrf_token %} {% include "formtools/formfield.html" with field=form.template %}
</table> {% csrf_token %}
<input type="submit" value="Apply" /> <input type="submit" value="Add" class="btn primary"/>
</formset>
</form> </form>
{% endblock %} {% endblock %}

View File

@@ -11,10 +11,12 @@
<p>Select the character you wish to apply with, then the corporation you wish to apply for.</p> <p>Select the character you wish to apply with, then the corporation you wish to apply for.</p>
<form action="{% url hr-addapplication %}" method="post"> <form action="{% url hr-addapplication %}" method="post">
<table> <formset>
{{ form.as_table }} {% include "formtools/formfield.html" with field=form.character %}
</table> {% include "formtools/formfield.html" with field=form.corporation %}
{% csrf_token %} {% csrf_token %}
<input type="submit" value="Create Application" class="btn primary"/> <input type="submit" value="Create Application" class="btn primary"/>
</formset>
</form> </form>
{% endblock %} {% endblock %}

View File

@@ -3,11 +3,17 @@
{% block title %}Send Message to Applicant{% endblock %} {% block title %}Send Message to Applicant{% endblock %}
{% block content %} {% block content %}
<div class="page-header">
<h1>Add Message</h1>
</div>
<form action="{% url hr-addmessage application.id %}" method="post"> <form action="{% url hr-addmessage application.id %}" method="post">
<table>
{{ form.as_table }} <formset>
</table> {% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
{% csrf_token %} {% if form.template %}{% include "formtools/formfield.html" with field=form.template %}{% endif %}
<input type="submit" value="Apply" /> {% csrf_token %}
<input type="submit" value="Add" class="btn primary"/>
</formset>
</form> </form>
{% endblock %} {% endblock %}

View File

@@ -3,11 +3,15 @@
{% block title %}Add Note to Application{% endblock %} {% block title %}Add Note to Application{% endblock %}
{% block content %} {% block content %}
<div class="page-header">
<h1>Add Staff Note</h1>
</div>
<form action="{% url hr-addnote application.id %}" method="post"> <form action="{% url hr-addnote application.id %}" method="post">
<table> <formset>
{{ form.as_table }} {% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
</table> {% csrf_token %}
{% csrf_token %} <input type="submit" value="Add" class="btn primary"/>
<input type="submit" value="Apply" /> </formset>
</form> </form>
{% endblock %} {% endblock %}

View File

@@ -3,12 +3,20 @@
{% block title %}Reject Application{% endblock %} {% block title %}Reject Application{% endblock %}
{% block content %} {% block content %}
<div class="page-header">
<h1>Reject Application</h1>
</div>
<p>Fill in the rejection reason below, please note, this will be sent out to the user.</p> <p>Fill in the rejection reason below, please note, this will be sent out to the user.</p>
<form action="{% url hr-rejectapplication application.id %}" method="post"> <form action="{% url hr-rejectapplication application.id %}" method="post">
<table>
{{ form.as_table }} <formset>
</table> {% include "formtools/formfield.html" with field=form.text class="xxlarge" %}
{% csrf_token %} {% include "formtools/formfield.html" with field=form.template %}
<input type="submit" value="Apply" /> {% csrf_token %}
<input type="submit" value="Reject" class="btn error"/>
</formset>
</form> </form>
{% endblock %} {% endblock %}

View File

@@ -7,12 +7,15 @@
</div> </div>
<form action="{% url hr-blacklist-add %}" method="post"> <form action="{% url hr-blacklist-add %}" method="post">
<table> <formset>
{{ form.as_table }} {% include "formtools/formfield.html" with field=form.type %}
</table> {% include "formtools/formfield.html" with field=form.value class="xxlarge" %}
{% csrf_token %} {% include "formtools/formfield.html" with field=form.reason class="xxlarge" %}
{% include "formtools/formfield.html" with field=form.expiry_date %}
<input type="submit" value="Add Blacklist" class="btn primary"/> {% csrf_token %}
<input type="submit" value="Add Blacklist" class="btn primary"/>
</formset>
</form> </form>
{% endblock %} {% endblock %}

View File

@@ -13,10 +13,11 @@
The person you are recommending needs to have created their application before you can add a recommendation.</p> The person you are recommending needs to have created their application before you can add a recommendation.</p>
<form action="{% url hr-addrecommendation %}" method="post"> <form action="{% url hr-addrecommendation %}" method="post">
<table> <formset>
{{ form.as_table }} {% include "formtools/formfield.html" with field=form.character %}
</table> {% include "formtools/formfield.html" with field=form.application %}
{% csrf_token %} {% csrf_token %}
<input type="submit" value="Add Recommendation" /> <input type="submit" value="Add Recommendation" class="btn primary"/>
</formset>
</form> </form>
{% endblock %} {% endblock %}

View File

@@ -5,6 +5,10 @@
{% block content %} {% block content %}
<script src="/static/js/jquery.tablesorter.min.js"></script> <script src="/static/js/jquery.tablesorter.min.js"></script>
<div class="page-header">
<h1>Your Recommendations</h1>
</div>
<p>This list shows your current open recommendations that are yet to be submitted, as <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> soon as the recommended user submits their application your recommendation will be removed from this list.</p>
{% if recommendations %} {% if recommendations %}