{% extends 'dashboard_base.html' %} {% load i18n %} {% block dashboard_tablist %} {% include '_includes/dashboard_tablist.html' with active='dashboard' %} {% endblock dashboard_tablist %} {% block main-content %} {% if user.is_valid_speaker %} {% url 'talk_proposal_create' as talk_proposal_create_url %} {% url 'tutorial_proposal_create' as tutorial_proposal_create_url %}

{% trans 'Talk Proposals' %} {% if proposals_creatable %} {% endif %}

{% if user.talkproposal_set.exists %} {% include 'users/_includes/dashboard_proposal_table.html' with user=user proposals=user.talkproposal_set.all %} {% else %} {% if proposals_creatable %}

{% blocktrans %}You haven't submitted any talk proposals. Why not submit one now?{% endblocktrans %}

{% else %}

{% blocktrans %}You haven't submitted any talk proposals.{% endblocktrans %}

{% endif %} {% endif %}

{% trans 'Tutorial Proposals' %} {% if proposals_creatable %} {% endif %}

{% if user.tutorialproposal_set.exists %} {% include 'users/_includes/dashboard_proposal_table.html' with user=user proposals=user.tutorialproposal_set.all %} {% else %} {% if proposals_creatable %}

{% blocktrans %}You haven't submitted any tutorial proposals. Why not submit one now?{% endblocktrans %}

{% else %}

{% blocktrans %}You haven't submitted any tutorial proposals.{% endblocktrans %}

{% endif %} {% endif %}
{% if user.cospeaking_info_set.exists %}

{% trans 'Co-Speaking Proposals' %}

{# include with ... only will block csrf_token #} {% include 'users/_includes/dashboard_cospeaking_proposal_table.html' with speaker_infos=user.cospeaking_info_set.all %}
{% endif %} {% endif %} {% endblock main-content %}