8 changed files with 128 additions and 13 deletions
@ -1,5 +1,5 @@
|
||||
from django.contrib import admin |
||||
|
||||
from .models import Job, Application, Tag, Question |
||||
from .models import Job, Application, Tag, Question, Answer |
||||
|
||||
admin.site.register([Job, Application, Tag, Question]) |
||||
admin.site.register([Job, Application, Tag, Question, Answer]) |
||||
|
@ -0,0 +1,23 @@
|
||||
# Generated by Django 2.1.2 on 2018-10-20 06:22 |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
|
||||
dependencies = [ |
||||
('jobs', '0002_auto_20181017_1104'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AddField( |
||||
model_name='application', |
||||
name='cover_letter', |
||||
field=models.TextField(blank=True), |
||||
), |
||||
migrations.AlterField( |
||||
model_name='question', |
||||
name='name', |
||||
field=models.TextField(verbose_name='Question Title'), |
||||
), |
||||
] |
@ -0,0 +1,13 @@
|
||||
{% extends 'base.html' %} {% block title %}Apply to job{% endblock %} {% load crispy_forms_tags %} {% block body_content %} |
||||
<div class="row"> |
||||
<div class="col-md-12"> |
||||
<form method="POST" action="."> |
||||
{% csrf_token %} {{ form |crispy }} |
||||
<h4>Screening Questions</h4> |
||||
{{ answer_form |crispy }} |
||||
<input class="btn btn-primary submit" type="submit" value="Post Job" /> |
||||
</form> |
||||
{{form.media}} |
||||
</div> |
||||
</div> |
||||
{% endblock %} |
Loading…
Reference in new issue