{% load bootstrap3 %}

{% bootstrap_form_errors form %}
{% bootstrap_field form.name %}
{% bootstrap_field form.image %}
{% bootstrap_field form.short_description %}
{% bootstrap_field form.long_description %}
{% bootstrap_field form.exit_url %}
{% bootstrap_field form.criteria %}
<div class="row">
    <div class="col-xs-12">
        <label class="control-label">Minimum Age Cutoff</label>
    </div>
    <div class="col-xs-2">
        <div class="form-group">
            <label class="control-label" for="id_min_age_years"><em>Year(s)</em></label>
            <select name="min_age_years" class="form-control" title="" id="id_min_age_years">
                {% for x, y in form.fields.min_age_years.choices %}
                    <option value="{{ x }}"{% if study.min_age_years == x %} selected{% endif %}>{{ y }}</option>
                {% endfor %}
            </select>
        </div>
    </div>
    <div class="col-xs-2">
        <div class="form-group">
            <label class="control-label" for="id_min_age_months"><em>Month(s)</em></label>
            <select class="form-control" id="id_min_age_months" name="min_age_months" title="">
                {% for x, y in form.fields.min_age_months.choices %}
                    <option value="{{ x }}"{% if study.min_age_months == x %} selected{% endif %}>{{ y }}</option>
                {% endfor %}
            </select>
        </div>
    </div>
</div>
<div class="row">
    <div class="col-xs-12">
        <label class="control-label">Maximum Age Cutoff</label>
    </div>
    <div class="col-xs-2">
        <div class="form-group">
            <label class="control-label" for="id_max_age_years"><em>Year(s)</em></label>
            <select name="max_age_years" class="form-control" title="" id="id_max_age_years">
                {% for x, y in form.fields.max_age_years.choices %}
                    <option value="{{ x }}"{% if study.max_age_years == x %} selected{% endif %}>{{ y }}</option>
                {% endfor %}
            </select>
        </div>
    </div>
    <div class="col-xs-2">
        <div class="form-group">
            <label class="control-label" for="id_max_age_months"><em>Month(s)</em></label>
            <select class="form-control" id="id_max_age_months" name="max_age_months" title="">
                {% for x, y in form.fields.max_age_months.choices %}
                    <option value="{{ x }}"{% if study.max_age_months == x %} selected{% endif %}>{{ y }}</option>
                {% endfor %}
            </select>
        </div>
    </div>
</div>
{% bootstrap_field form.duration %}
{% bootstrap_field form.contact_info %}
{% bootstrap_field form.public %}

Build a template partial for most of the study fields.
Build a template partial for most of the study fields.
