{% extends "base.html" %}

{% block container %}
{% from "form_helpers.html" import render_field %}
<div class="container">
    <form method="post" class="form-horizontal" role="form" action="/request_form/{{analysis.id}}">
	{{ form.hidden_tag() }}
	<br><br>
	<div class="panel panel-default">
	    <div class="panel-heading">Request </div>
	    <div class="panel-body">
		<br><br>

		<div class="form-group">
		    <label class="control-label col-md-3" for="Analysis"> Analysis </label>
		    <div class="col-md-offset-1 col-md-6">
			<h4> {{analysis.title}}</h4>
		    </div>
		</div>
		<br>

		{{ render_field(form.title, "Required.", "required", "fa fa-book fa-fw") }}
		<br>
		{{ render_field(form.model_name, "Required.", "required", "fa fa-pencil") }}
		<br>
		{{ render_field(form.reason_for_request, "Optional.", "", "fa fa-pencil", "rows='16'") }}
		<br>
		{{ render_field(form.additional_information, "Optional.", "", "fa fa-pencil", "rows='16'") }}
		<br>
	    </div>
	</div>


	<br><br>
	<div>
	    <div class="col-md-12">
		<button type="button" class="btn btn-warning pull-left">
		    <i class="glyphicon glyphicon-remove"></i>
		    &nbsp;Cancel
		</button>

		<button type="submit" class="btn btn-primary pull-right">
		    <i class="glyphicon glyphicon-ok"></i>
		    &nbsp;Submit
		</button>
	    </div>
	</div>

	<br><br>  <br><br>  <br><br>

    </form>


</div>



{% endblock %}
