{% extends "nopaque.html.j2" %}

{% block page_content %}
<div class="col s12 m4">
  <p>Fill out the following form to add a corpus to your corpora.</p>
  <a class="waves-effect waves-light btn" href="{{ url_for('main.dashboard') }}"><i class="material-icons left">arrow_back</i>Back to dashboard</a>
</div>

<div class="col s12 m8">
  <div class="card">
    <form method="POST">
      <div class="card-content">
        {{ add_corpus_form.hidden_tag() }}
        <div class="row">
          <div class="col s12 m4">
            <div class="input-field">
              <i class="material-icons prefix">title</i>
              {{ add_corpus_form.title(data_length='32') }}
              {{ add_corpus_form.title.label }}
              {% for error in add_corpus_form.title.errors %}
                <span class="helper-text red-text">{{ error }}</span>
              {% endfor %}
            </div>
          </div>
          <div class="col s12 m8">
            <div class="input-field">
              <i class="material-icons prefix">description</i>
              {{ add_corpus_form.description(data_length='255') }}
              {{ add_corpus_form.description.label }}
              {% for error in add_corpus_form.description.errors %}
                <span class="helper-text red-text">{{ error }}</span>
              {% endfor %}
            </div>
          </div>
        </div>
      </div>
      <div class="card-action right-align">
        {{ macros.submit_button(add_corpus_form.submit) }}
      </div>
    </form>
  </div>
</div>
{% endblock %}
