Rewrote views to handle new models.

Everything works but comments.
This commit is contained in:
Adarnof
2016-03-13 21:47:09 +00:00
parent 99879e797b
commit 477e579eba
9 changed files with 336 additions and 437 deletions

View File

@@ -0,0 +1,25 @@
{% extends "public/base.html" %}
{% load staticfiles %}
{% block title %}Choose a Corp{% endblock %}
{% block page_title %}Choose a Corp{% endblock page_title %}
{% block content %}
<div class="col-lg-12">
<h1 class="page-header text-center">Choose a Corp</h1>
{% if choices %}
<div class="panel panel-primary">
<div class="panel-heading">Available Corps</div>
<table class="table table-responsive">
{% for choice in choices %}
<tr>
<td class="text-center">
<a href="{% url 'auth_hrapplication_create_view' choice.0 %}" class="btn btn-primary" title="Apply">{{ choice.1 }}</a>
</td>
</tr>
{% endfor %}
</table>
</div>
{% else %}
<div class="alert alert-danger">No corps are accepting applications at this time.</div>
{% endif %}
</div>
{% endblock content %}