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


{% block title %}
  <title>Edit Artist</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 Artist entry</h3>
      <form method="POST">
        <div class="mb-3">
          <input type="text" required class="form-control" name="artist.name" value="{{artist_name}}" placeholder="Artist name here">
          <input type="text" required class="form-control" name="artist.link" value="{{artist_link}}" placeholder="Web link for artist here">
        </div>
        <div>
            <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>
      </form>
    </div>
  </div>
{% endblock %}
