Files @ e6c623a69ca9
Branch filter:

Location: symposion_app/pinaxcon/templates/symposion/speakers/speaker_profile.html

Christopher Neugebauer
Refactors all speaker-facing forms and editing pages to use the new theme (#27)

* Themes speaker_edit.html

* speaker_create now uses takeflight theme

* proposal_submit_kind now uses takeflight theme

* fixes bug in form_snippet

* Optimises proposals_submit_kind

* proposal_submit now uses wagtail theme

* Proposal_edit now uses new theme

* More forms

* Proposal details page now loads from take flight theme

* proposal_fields now looks nicer under the take flight theme

* proposal_speaker_manage rethemed
{% extends "site_base.html" %}

{% load i18n %}
{% load thumbnail %}


{% block head_title %}{{ speaker.name }}{% endblock %}

{% block body %}
    <div class="row">
        <div class="col-md-2">
            {% if speaker.photo %}
                <img src="{% thumbnail speaker.photo '128x128' %}" alt="{{ speaker.name }}" />
            {% else %}
                &nbsp;
            {% endif %}
        </div>
        <div class="col-md-6">
            {% if speaker.user == request.user or request.user.is_staff %}
                <a class="btn btn-default pull-right" href="{% url "speaker_edit" speaker.pk %}">Edit</a>
            {% endif %}
            <h1>{{ speaker.name }}</h1>
            <div class="bio">{{ speaker.biography|safe }}</div>

            <h2>Presentations</h2>
            {% for presentation in presentations %}
                <h3><a href="{% url "schedule_presentation_detail" presentation.pk %}">{{ presentation.title }}</a></h3>
                {% if presentation.slot %}
                    <p>
                        {{ presentation.slot.day.date|date:"l" }}
                        {{ presentation.slot.start}}&ndash;{{ presentation.slot.end }}
                        in
                        {{ presentation.slot.rooms|join:", " }}
                    </p>
                {% endif %}
            {% empty %}
                <p>No presentations. This page is only visible to staff until there is a presentation.<p>
            {% endfor %}
        </div>
    </div>
{% endblock %}