{% extends "base.html" %}

{% block title %}
  <title>loopvid blog - replace 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>Only use this if you know what you're doing. The expected input is a json representation of a list of entries, like what /blog/json outputs. All entries currently in the DB will be replaced with the ones supplied.</p>
    <form id="replace_entries_form" action="/blog/json/admin/replace_entries" method="post">
      <textarea id="textarea1" name="entries" rows="4"></textarea>
      <div id="submit_container">
        <input id="submit_button" type="submit" value="Submit" />
      </div>
    </form>
  </div>
  <div><pre id="messages"></pre></div>
{% endblock %}

{% block footer %}
{% endblock %}
