{% extends "orga/submission/base.html" %} {% comment %} SPDX-FileCopyrightText: 2017-present Tobias Kunze SPDX-License-Identifier: AGPL-3.0-only WITH LicenseRef-Pretalx-AGPL-3.0-Terms This file contains Apache-2.0 licensed contributions copyrighted by the following contributors: SPDX-FileContributor: Florian Mösch {% endcomment %} {% load i18n %} {% load rich_text %} {% load rules %} {% load static %} {% load thumbnail %} {% block stylesheets %} {{ block.super }} {% endblock stylesheets %} {% block scripts %} {{ block.super }} {% endblock scripts %} {% block submission_title %}{% translate "Speakers" %} :: {% endblock submission_title %} {% block submission_content %} {% has_perm "submission.update_submission" request.user submission as can_edit_speakers %} {% has_perm "mail.send_queuedmail" request.user request.event as can_send_mails %} {% has_perm "person.mark_arrived_speakerprofile" request.user request.event as can_mark_speaker %} {% if can_edit_speakers and not speakers and not invitations %}
{% partial invite_form %}
{% endif %} {% partialdef speaker_list %} {% for speaker in speakers %} {% partialdef speaker_card %}

{{ speaker.speaker.get_display_name }} {% if speaker.speaker.avatar and request.event.cfp.request_avatar %} {% endif %}

{% if request.event.cfp.request_biography %}
{% translate "Biography" %}:
{{ speaker.speaker.biography|rich_text|default:"-" }}
{% endif %}
{% if speaker.other_submissions %}
{% translate "Other proposals by this speaker:" %}
    {% for submission in speaker.other_submissions %}
  • {{ submission.title }} {% include "cfp/event/fragment_state.html" with state=submission.state as_badge=True %}
  • {% endfor %}
{% endif %}
{% if can_edit_speakers %} {% if can_mark_speaker and submission.state in 'accepted,confirmed' %} {% include "orga/includes/mark_speakers_arrived.html" with speaker=speaker.speaker %} {% endif %} {% if can_send_mails %} {{ phrases.orga.send_email }} {% endif %} {{ phrases.base.edit }} {% if speakers|length > 1 %}
{% translate "Change order" %}
{% endif %}
{% csrf_token %}
{% endif %}
{% endpartialdef %} {% if speakers|length > 1 and can_edit_speakers %}
{% partial speaker_card %}
{% else %} {% partial speaker_card %} {% endif %} {% endfor %} {% endpartialdef %} {% if speakers|length > 1 and can_edit_speakers %}
{% partial speaker_list %}
{% else %}{% partial speaker_list %}{% endif %} {% if invitations %}

{% translate "Pending invitations" %}

{% for invitation in invitations %}

{{ invitation.email }}

{% translate "Invited on" %} {{ invitation.created|date:"SHORT_DATE_FORMAT" }}

{% if can_edit_speakers %} {% endif %}
{% endfor %} {% endif %} {% if can_edit_speakers %}{% if speakers or invitations %} {% endif %}{% endif %} {% endblock submission_content %} {% partialdef invite_form %}
{% csrf_token %} {% if stacked %}
{{ form.email.as_field_group }}
{{ form.name.as_field_group }}
{% if form.locale %}
{{ form.locale.as_field_group }}
{% endif %} {% else %}
{{ form.email.as_field_group }}
{{ form.name.as_field_group }}
{% if form.locale %}{{ form.locale.as_field_group }}{% endif %}
{% endif %}
{% endpartialdef invite_form %}