{% extends "base.html" %}

{% block title %}
  <title>loopvid blog - post new entries</title>
{% endblock %}

{% block sheets %}
  <link rel="stylesheet" type="text/css" href="/stylesheets/blog_form.css" />
{% endblock %}

{% block scripts %}
    <script type="text/javascript" src="/scripts/blog_admin.js"></script>
{% endblock %}

{% block header %}
{% endblock %}

{% block page %}
  <div id="page_container">
    <p>Once your entries have been posted successfully, you'll be redirected to the admin page where you can modify the new entries (including tagging them individually).</p>
    <form id="add_entries_form" action="/blog/json/admin/add_entries" method="post">
      <div>
        New videos (one per line or separated by spaces): <br/>
        <textarea name="videos" rows="4"></textarea>
      </div>
      <div>
        Source URL: <br/>
        <input name="source_url" type="text" />
      </div>
      <div>
        Source title: <br/>
        <input name="source_text" type="text" />
      </div>
      <div>
        Global tags (one per line or separated by spaces): <br/>
        <textarea name="tags" rows="4"></textarea>
      </div>
      <div>
        Force posted_at time (please leave blank unless re-adding old videos):<br/>
        <input name="posted_at" type="text" placeholder="YYYY-MM-DD HH:MM:SS" />
      </div>
      <div>
        <input id="submit_button" type="submit" value="Submit" />
      </div>
    </form>
  </div>
  <div><pre id="messages"></pre></div>
{% endblock %}

{% block footer %}
{% endblock %}
