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,30 @@
{% extends "public/base.html" %}
{% load staticfiles %}
{% block page_title %}Apply To {{ corp.corporation_name }}{% endblock page_title %}
{% block content %}
<div class="col-lg-12">
<h1 class="page-header text-center">Apply To {{ corp.corporation_name }}</h1>
<div class="container-fluid">
<div class="col-md-4 col-md-offset-4">
<div class="row">
<form class="form-signin">
{% csrf_token %}
{% for question in questions %}
<div class="form-group">
<label class="control-label" for="id_{{ question.pk }}">{{ question.title }}</label>
<div class=" ">
{% if question.help_text %}
<div cass="text-center">{{ question.extra_text }}</div>
{% endif %}
<textarea class="form-control" cols="40" id="id_{{ question.pk }}" name="{{ question.pk }}" rows="10"></textarea>
</div>
</div>
{% endfor %}
<button class="btn btn-lg btn-primary btn-block" type="submit" formmethod="post">Submit</button>
</form>
</div>
</div>
</div>
</div>
{% endblock %}