{% extends "layout.html" %}
<html lang="en">
{% block head %}
    <meta charset="UTF-8">

    <link type="text/css" rel="stylesheet" href="/static/bootstrap.min.css">

    <style>
    pre {
        font-size: 90%;
        border-left: 5px solid #ddd;
        padding-left: 5px;
    }
    </style>

{% endblock %}

{% block body %}

<header class="m-head m-head_type_at mi-bem" style="border-bottom: 1px solid #eee; box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.05);" id="lunapark_header">
	<div class="m-head-arrow m-head__min mi-bem m-head-arrow_js_inited">
		<a href="/" class="b_header_link">
			<span class="m-head-arrow__home" style="font-weight: 500">LPQ&nbsp;</span>
		</a>
		<div class="popup popup_theme_head popup_autoclosable_yes popup_adaptive_yes popup_animate_yes mi-bem popup_js_inited">
			<div class="popup__content"></div>
		</div>
	</div>
	<div class="m-head__main">
		<menu class="m-head-menu m-head-menu_type_main mi-bem m-head-menu_js_inited">
			<div class="m-head-menu__list">
				<div id="firestarter_menu_link" class="m-head-menu__item">
					<a href="https://wiki.yandex-team.ru/NagruzochnoeTestirovanie/LunaPark/LPQ/doc/" class="mlink">Docs</a>
				</div>
			</div>
		</menu>
	</div>
</header>

<form action="/enqueue" method="post" novalidate>
  {{ form.hidden_tag() }}
  <p>
    {{ form.config.label }}<br>
    {{ form.config(cols='80', rows='4', wrap='off') }}
  </p>
  <p>{{ form.submit() }}</p>

</form>

<div>

    <table class="table">
        <tr>
            <th>Author</th>
            <th>Config</th>
            <th>Demands</th>
        </tr>
        {% for task in tasks %}
        <tr>
            <td>{{ task.author }}</td>
            <td>{{ task.config }}</td>
            <td>{{ task.demands }}</td>
        </tr>
        {% endfor %}
    </table>

</div>

{% endblock %}
</html>