{% extends "base.html" %}
{% load semanticui %}
{% block content %}
  {% if key_expired %}
    Request expired, 10 minutes have passed.
  {% else %}
    <form class= "ui form" method="post" action="
      {% if temp_key %}
        {% url 'rotbot:ircauth_channel_settings' temp_key %}
      {% else %}
        {% url 'rotbot:channel_settings' channel_slug %}
      {% endif %}
    ">
      {% csrf_token %}
      {% render_form form %}
      <button class="ui right floated inverted positive button" type="submit" value="Submit"><i class="save icon"></i>Save</button>
      <a class="ui right floated inverted basic negative button" href="{% url 'rotbot:channel' channel_slug %}">
        <i class="hand point left icon"></i>Back
      </a>
    </form>
  {% endif %}
{% endblock content %}
