{% extends "base.html" %}
{% load static %}
{% load semanticui %}
{% block content %}
    {% if updated %}
        <div class="ui icon success message">
            <i class="save icon"></i>
            <div class="content">
                <div class="header">
                    Changes saved
                </div>
                <p>You may close the page or continue making changes.</p>
            </div>
        </div>
    {% endif %}
    <form class= "ui form" method="post">
        {% csrf_token %}
        {% render_form form %}

        {{ channel_settings.interact }}
        {% if token_expired %}
            <div class="ui negative message">
                <div class="header">
                    Can not save change
                </div>
                <p>
                  The token has expired. Ask {{ settings.APPLICATION_NAME }} for a new token on Discord.
                </p>
            </div>
        {% else %}
            <button class="ui right floated inverted positive button" type="submit" value="Submit"><i class="save icon"></i>Save</button>
        {% endif %}
    </form>
    
{% endblock %}
{% block breadcrumbs %}
    <i class="sitemap icon"></i>
    Foo
    <div class="divider"> / </div>
    Bar
    <div class="divider"> / </div>
    <i class="hashtag icon"></i>
    <div class="active section">Channel settings</div>
{% endblock %}