Tweaks to submission form

This commit is contained in:
2014-06-23 14:47:15 +02:00
parent e10a4e920f
commit d57ef1c185
3 changed files with 6 additions and 21 deletions

View File

@@ -51,7 +51,7 @@ def apply():
blender_id=current_user.id,
website=form.website.data,
city_country=form.city_country.data,
teaching=form.teaching.data,
institution_name=form.institution_name.data,
video_example=form.video_example.data,
written_example=form.written_example.data,
portfolio_cv=form.portfolio_cv.data,

View File

@@ -30,17 +30,10 @@
<div class="row">
<div class="col-md-6">
<div class="input-group input-group-lg input-checkbox width-full" id="is_teaching">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-squishy">
{{ form.teaching() }}
</label>
</div>
<label class="control-label ">Are you currently teaching at a university?</label>
</div>
Are you currently teaching at a university?
</div>
<div class="col-md-6">
<div class="input-group input-group-lg width-full disabled" id="is_teaching_where">
<div class="input-group input-group-lg width-full" id="is_teaching_where">
{{ form.institution_name(class="form-control", placeholder="School or Institution's name") }}
<label class="control-label">School or Institution Name</label>
</div>
@@ -49,7 +42,7 @@
<div class="row">
<div class="col-md-6">
A set of essential skills is required to be
A set of essential skills is required
</div>
<div class="col-md-6">
<div class="input-group input-group-lg width-full">
@@ -124,11 +117,3 @@
</div>
{% endblock %}
{% block footer_scripts %}
<script>
$('#is_teaching').click(function() {
$("#is_teaching_where").toggleClass('disabled');
});
</script>
{% endblock %}

View File

@@ -16,13 +16,13 @@
<td>{{application.show_pretty_date('submission')}}</td>
<td>You submitted your application</td>
</tr>
{% if application.show_pretty_date('review_start') %}
{% if application.review_start_date %}
<tr>
<td>{{application.show_pretty_date('review_start')}}</td>
<td>Application review started</td>
</tr>
{% endif%}
{% if application.show_pretty_date('review_end') %}
{% if application.review_end_date %}
<tr>
<td>{{application.show_pretty_date('review_end')}}</td>
<td>Application review ended</td>