{% extends "base.html" %}

{% import "bootstrap/wtf.html" as wtf %}
{% import "bootstrap/fixes.html" as fixes %}
{% import "bootstrap/utils.html" as util %}

{% block title %}Uploader{% endblock %}

{% block content %}
    <div class="container">
        {{ util.flashed_messages(dismissible=True, container=False) }}

        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">BEL Parser</h3>
            </div>
            <div class="panel-body">
                <p>
                    This component uses <a href="https://github.com/pybel/pybel">PyBEL</a> to parse and validate BEL
                    Script. It provides helpful output for fixing warnings and errors. It should parse at about
                    900 lines per second, and you will receive an email upon completion with a report.
                </p>
                <h4>Resources</h4>
                <ul>
                    <li><strong>BEL Specification</strong>: for more information on how to write BEL Script, see the <a
                            href="http://openbel.org/language/version_2.0/bel_specification_version_2.0.html">OpenBEL</a>
                        website.
                    </li>
                    <li><strong>Warnings and Error Reference</strong>: for a summary of possible parser warnings and
                        errors, see <a href="{{ url_for('help.parser') }}">here</a>.
                    </li>
                    <li><strong>Sample BEL Scripts</strong>: feel free to test our web application parsing the <a
                            href="https://github.com/cthoyt/selventa-knowledge/tree/master/selventa_knowledge">Small
                        Corpus</a> generated by Selventa and re-curated.
                    </li>
                </ul>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">Input</h3>
            </div>
            <div class="panel-body">
                {{ wtf.quick_form(form, form_type='horizontal', button_map={'submit_button': 'btn btn-primary'}) }}
            </div>
        </div>
    </div>

    {% include "footer.html" %}
{% endblock %}

