{% extends sitebase.html %} {% block head %} {% end %} {% block content %}

{% if study %}Edit study (ID: {{study.id}}) {% else %}Create a new Study{%end%}

* = Required Field


{% for idx, form_item in enumerate(creation_form, start=1) %} {% set kwargs = {'tabindex': idx, 'class_': 'form-control'} %} {% set additional_info = '' %} {# form-item-specific rendering #} {% if form_item.label.text == 'Environmental Packages' %} {% set kwargs['size'] = len(form_item.choices) %} {% set additional_info = 'You can select multiple entries by control-clicking (mac: command-clicking)' %} {% elif form_item.label.text == 'Principan Investigator'%} {% set kwargs['class_'] = kwargs['class_'] + ' chzn-select' %} {% end %} {% if form_item.label.text == 'Lab Person' %} {% end %} {% end %}
{% raw form_item.label %}
{{additional_info}}
{% raw form_item(**kwargs) %} {% if form_item.flags.required %}

  *

{% end %}
Can't find the person you're looking for? Add a person
Name:

  *

Affiliation:

  *

E-mail Address:

  *

Phone:
Address:
{%if study%} {%end%}
{% end %}