<!DOCTYPE html> {% extends "base.html" %}
{% block content %}
<form action="/quantiles" method=POST>
	<h2 class="form-login-heading text-center">Build Quantile Table</h2>
	<div class="col-md-4 text-center>">
		{{ wtf.form_field(form.x) }}
	</div>
	<div class="col-md-4 text-center>">
		{{ wtf.form_field(form.y) }}
	</div>
	<div class="col-md-4 text-center>">
		{{ wtf.form_field(form.cat) }}
	</div>
	<div class="col-md-12 text-center">
		<input class="btn btn-primary" type=submit val=go>
	</div>
</form>
{% if text != None %}
	{% for entry in htmlList %}
	<div class="col-md-12 text-center">
		<h3>{{ x.title() }} grouped by percentile - {{ entry[0].title() }}</h3>
	</div>
	<div class="col-md-1 text-center">
		<p>{{ y.title() }} means by percentile (0-10, 11-20, etc.)</p>
	</div>
	<div class=col-md-11>
		{% autoescape off %}{{ entry[1] }}{% endautoescape %}
	</div>
	{% endfor %}
{% endif %}
{% endblock %}