2017-10-03 01:18:13 +00:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block body %}
|
|
|
|
<h1> Add new Quote </h1>
|
|
|
|
<form method="post">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="quote">Quote:</label>
|
|
|
|
<textarea rows="3" maxlength="500" class="form-control" id="quote" name="quote" ></textarea>
|
|
|
|
<span class="help-block">Required</span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="context">Context:</label>
|
|
|
|
<textarea rows="3" maxlength="500" class="form-control" id="context" name="context" ></textarea>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="user">User:</label>
|
|
|
|
<select class="form-control" id="user" name="user">
|
2017-10-05 01:08:32 +00:00
|
|
|
{% for user in data %}
|
2017-10-05 16:58:16 +00:00
|
|
|
<option value="{{ user[0] }}">{{ uid_to_user(user[0]) }}</option>
|
2017-10-03 01:18:13 +00:00
|
|
|
{% endfor %}
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|