Skip to content

Instantly share code, notes, and snippets.

@mlivingston40
Last active November 8, 2017 00:21
Show Gist options
  • Save mlivingston40/a49d969597dd025eb6f1ee7fe8d80327 to your computer and use it in GitHub Desktop.
Save mlivingston40/a49d969597dd025eb6f1ee7fe8d80327 to your computer and use it in GitHub Desktop.
<form method=”post” action=”{{ url_for(‘correlation’) }}”>
{{ form.hidden_tag() }}
<div class=”form-group row”>
<div class=”col-sm-10 col-lg-10">
{{ form.stock1.label |safe }} {{ form.stock1(placeholder=”e.g., GOOG”, class=”form-control”)|safe }} {% if form.stock1.errors %}
<ul class=”alert alert-info alert-dismissible” role=”alert”>
<button type=”button” class=”close” data-dismiss=”alert” aria-label=”Close” <span aria-hidden=”true”>&times;</span>
</button>
{% for error in form.stock1.errors %}
<strong>{{ error }}</strong> {% endfor %}
</ul>
{% endif %}
</div>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment