{% extends 'ui/page.html' %}

{% load markdown_deux_tags %}

{% block title %}Call for Proposals - {{ event.extended_title }}{% endblock %}

{% block og %}
    <meta property="og:title" content="Call for Proposals - {{ event.extended_title }}" />
    <meta property="og:description" content="{{ event.title }} is looking for talks on web development and design. Check out our speaker package and submit!" />
{% endblock %}

{% block content %}
    {% if cfp %}
        <h2 class="red-dash">{{ cfp.title }}</h2>

        {{ cfp.announcement|markdown:"trusted" }}

        <hr />

        {% if cfp.is_active %}
            <p>This call for papers ends on <b>{{ cfp.end_date|date:"Y-m-d" }}</b>.</p>
            <div class="text-center">
                <a href="{% url 'application_create' %}" class="large green button">Submit a talk</a>
            </div>
        {% elif cfp.is_pending %}
            <h3 class="yellow-dash">The call for papers opens on {{ cfp.begin_date|date:"Y-m-d" }}</h2>
        {% else %}
            <h3 class="yellow-dash">The CFP is now closed.</h3>
        {% endif %}
    {% else %}
        <h1>Call for papers</h1>

        <p>There are no active calls for papers.</p>
    {% endif %}
{% endblock %}

{% extends 'ui/page.html' %}

{% load markdown_deux_tags %}

{% block title %}Call for Proposals - {{ event.extended_title }}{% endblock %}

{% block og %}
    <meta property="og:title" content="Call for Proposals - {{ event.extended_title }}" />
    <meta property="og:description" content="{{ event.title }} is looking for talks on web development and design. Check out our speaker package and submit!" />
{% endblock %}

{% block content %}
    {% if cfp %}
        {% if user.is_superuser %}
            <a class="button float-right" href="{% url 'admin:cfp_callforpaper_change' cfp.pk %}">Edit</a>
        {% endif %}

        <h1 class="red-dash">{{ cfp.title }}</h1>

        {{ cfp.announcement|markdown:"trusted" }}

        <hr />

        {% if cfp.is_active %}
            <p>This call for papers ends on <b>{{ cfp.end_date|date:"Y-m-d" }}</b>.</p>
            <div class="text-center">
                <a href="{% url 'application_create' %}" class="large green button">Submit a talk</a>
            </div>
        {% elif cfp.is_pending %}
            <h3 class="yellow-dash">The call for papers opens on {{ cfp.begin_date|date:"Y-m-d" }}</h2>
        {% else %}
            <h3 class="yellow-dash">The CFP is now closed.</h3>
        {% endif %}
    {% else %}
        <h1>Call for papers</h1>

        <p>There are no active calls for papers.</p>
    {% endif %}
{% endblock %}

Add edit button to CFP announcement page
Add edit button to CFP announcement page
