{% extends "shared/base.html" %}


{% block title %}
  <title>Edit Comic</title>
{% endblock %}

{% block content %}
  <div class="container">
    <div class="row">
      <div class="text-danger font-weight-bold">
        {% for error in errors %}
          <li>{{error}}</li>
        {% endfor %}
      </div>
    </div>

    <div class="row my-5">
      <h3 class="text-center display-4">Edit an Comic entry</h3>
      <form class="form-horizontal" method="POST">
        <div class="form-group">
          <label class="control-label col-sm-2" for="title">Title</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="title" name="title" value="{{comic_title}}" placeholder="Comic title here">
          </div>
        </div>
        <div class="form-group">
          <label class="control-label col-sm-2" for="weblink">Link</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" id="weblink" name="weblink" value="{{comic_weblink}}" placeholder="Web link for comic here">
          </div>
        </div>
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <div class="checkbox">
              <label><input type="checkbox" id="completed" name="completed" value="{{comic_completed}}"> Completed</label>
            </div
          </div>
        </div>
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <div class="checkbox">
              <label><input type="checkbox" id="current_order" name="current_order" value="{{comic_current_order}}"> Current Order</label>
            </div
          </div>
        </div>
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-primary" name="action" value="submit">Submit</button>
            <button type="cancel" class="btn btn-primary" name="action" value="cancel">Cancel</button>
          </div>
        </div>
      </form>
    </div>
  </div>
{% endblock %}
