{% extends 'layouts/base.html' %}

{% block content %}

<!-- Services Start -->
<div class="container-fluid pt-5 pb-3">
    <br />
    <br />
    <div class="container">
        <form method="POST">
            <b>Start Date and Time:</b> {{ session.startdate }} {{form.hidden_tag() }}
            <b>End Date and Time:</b> {{ session.enddate }} {{form.hidden_tag() }}
            <div id="fieldgroup--default" class="lm-FieldGroup">
                <div>
                        <label for="source">Choose Source Schema:</label><br>
                        <select id="source" name="source">
                        <option disabled="" value="" SELECTED>Select Source Schema</option>
                        {% for schema in schemarows %}
                            <option value="{{ schema[0]}}.{{schema[1]}},{{schema[2]}},{{schema[3]}},{{schema[4]}},{{schema[5]}}">{{ schema[0]}}.{{schema[1] }}</option>
                        {% endfor %}
                        </select>
                        <br/><br/>
                        <label for="target">Choose Target Schema:</label><br>
                        <select id="target" name="target">
                        <option disabled="" value="" SELECTED>Select Target Schema</option>
                        {% for schema in schemarows %}
                        <option value="{{ schema[0]}}.{{schema[1]}},{{schema[2]}},{{schema[3]}},{{schema[4]}},{{schema[5]}}">{{ schema[0]}}.{{schema[1] }}</option>
                        {% endfor %}
                        </select>
                        <br/><br/>
                        {{ form.submit() }}
                </div>
            </div>
        <br />
    </form>
</div>
</div>
<!-- Services End -->

{% endblock %}