Skip to content

Instantly share code, notes, and snippets.

@gpamfilis
Created August 13, 2018 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gpamfilis/ab60947363d33e722e5c01d713187c62 to your computer and use it in GitHub Desktop.
Save gpamfilis/ab60947363d33e722e5c01d713187c62 to your computer and use it in GitHub Desktop.
<div>
<div class="container">
<div class="row">
<div class="col-md-6">
<div><H1>{{title1}}</H1>
<form action="/plot">
<select name="feature_name1">
{% for feature in feature_names1 %}
{% if feature == current_feature_name1 %}
<option selected value="{{ feature }}">{{ feature }}</option>
{% else %}
<option value="{{ feature }}">{{ feature }}</option>
{% endif %}
{% endfor %}
</select>
<input type="submit">
</form>
{{ script|safe }}
{{ div|safe }}
</div>
</div>
<div class="col-md-6">
<div><H1>{{ title2 }}</H1>
<form action="/plot">
<select name="feature_name2">
{% for feature in feature_names2 %}
{% if feature == current_feature_name2 %}
<option selected value="{{ feature }}">{{ feature }}</option>
{% else %}
<option value="{{ feature }}">{{ feature }}</option>
{% endif %}
{% endfor %}
</select>
<input type="submit">
</form>
{{ script2|safe }}
{{ div2|safe }}
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div><H1>{{title3}}</H1>
<form action="/plot">
<select name="feature_name3">
{% for feature in feature_names3 %}
{% if feature == current_feature_name3 %}
<option selected value="{{ feature }}">{{ feature }}</option>
{% else %}
<option value="{{ feature }}">{{ feature }}</option>
{% endif %}
{% endfor %}
</select>
<input type="submit">
</form>
{{ script3|safe }}
{{ div3|safe }}
</div>
</div>
<div class="col-md-6">
<div><H1>{{title4}}</H1>
<form action="/plot">
<select name="feature_name4">
{% for feature in feature_names4 %}
{% if feature == current_feature_name4 %}
<option selected value="{{ feature }}">{{ feature }}</option>
{% else %}
<option value="{{ feature }}">{{ feature }}</option>
{% endif %}
{% endfor %}
</select>
<input type="submit">
</form>
{{ script4|safe }}
{{ div4|safe }}
</div>
</div>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment