{% extends "base.html" %} {% block title %}Request an estimation of your travel footprint{% endblock %} {% block hero %}

{{ content.estimate.hero.title | safe }}

{{ content.estimate.hero.description | markdown | safe }}
{% endblock %} {#############################################################################} {# MACROS ####################################################################} {% macro render_field(field) %}
{{ field.label }} {% if not field.flags.optional %} * {% endif %}
{{ field(title=field.description, class_="form-control", **kwargs) | safe }} {% if field.errors -%} {%- endif %}
{% endmacro %} {% macro render_checkbox(field) %} {{ field(class="form-check-input") }} {{ field.label( class="form-check-label", title=field.description ) }} {% if field.errors -%}

{{ field.errors[0] | safe }}

{%- endif %} {% endmacro %} {#############################################################################} {# BODY ######################################################################} {% block body %}
{{ form.hidden_tag() }} {#
#} {# {{ render_field(form.email) }}#} {# We will never share your email with anyone.#} {#
#}
{{ render_field(form.first_name) }} {{ content.estimate.help.first_name | safe }}
{{ render_field(form.last_name) }} {{ content.estimate.help.last_name | safe }}
{{ render_field(form.institution) }}
{{ render_field(form.origin_addresses) }} {{ content.estimate.help.origin_addresses | markdown | safe }}


OR
{{ render_field(form.origin_addresses_file) }} {{ content.estimate.help.origin_addresses_file | markdown | safe }}
{{ render_field(form.destination_addresses) }} {{ content.estimate.help.destination_addresses | markdown | safe }}


OR
{{ render_field(form.destination_addresses_file) }} {{ content.estimate.help.destination_addresses_file | markdown | safe }}
{#
#} {# {{ render_checkbox(form.compute_optimal_destination) }}#} {#
#} {#
#} {# {{ render_checkbox(form.use_atmosfair_rfi) }}#} {# Disabled. Work in Progress. RFI=1.9#} {#
#}
Emission Models to consider
{% for model in models %}
{{ render_checkbox(form['use_model_'~model.slug]) }}
{% endfor %}
We will use a mean of the selected models.   Please select at least one.
The meaning of RFI is detailed here .
{{ render_field(form.use_train_below_km) }} {{ content.estimate.help.use_train_below_km | safe }}
{{ render_field(form.comment) }}

{{ render_field(form.run_name) }} {{ content.estimate.help.run_name | safe }}
{#
#} {#
#} {# {{ form.captcha.label }}#} {# *#} {#
#} {#
#} {# {{ captcha() }}#} {#

#} {##} {# {{ form.captcha(#} {# title=form.captcha.description,#} {# class_="form-control",#} {# placeholder="Please write the numbers you see in the image above."#} {# ) | safe }}#} {##} {# {% if form.captcha.errors -%}#} {#
    #} {# {% for error in form.captcha.errors %}#} {#
  • {{ error }}
  • #} {# {% endfor %}#} {#
#} {# {%- endif %}#} {#
#} {#
#}
{% endblock %} {% block js %} {% endblock %}