From 98bf1120ddcc152862d1bf3fc6faadf992a3466c Mon Sep 17 00:00:00 2001 From: Luke Hatcher Date: Fri, 13 Jul 2012 21:42:37 -0400 Subject: [PATCH] update dashboard to use new panels --- symposion_project/templates/dashboard.html | 199 +++++++++++---------- 1 file changed, 109 insertions(+), 90 deletions(-) diff --git a/symposion_project/templates/dashboard.html b/symposion_project/templates/dashboard.html index d75f83c3..efd32954 100644 --- a/symposion_project/templates/dashboard.html +++ b/symposion_project/templates/dashboard.html @@ -8,98 +8,117 @@ {% block body_class %}auth{% endblock %} {% block body %} -

{% trans "Dashboard" %}

- -
-

{% trans "Speaking" %}

- {% if not user.speaker_profile %} -

To submit a proposal, you must first create a speaker profile.

- - Create a speaker profile - - - {% else %} - - Edit your speaker profile - - - - Submit a new proposal - - -

Your Proposals

- {% if user.speaker_profile.proposals.exists %} - - - - - - - - {% for proposal in user.speaker_profile.proposals.all %} - {% include "proposals/_proposal_row.html" %} - {% endfor %} -
TitleSession typeStatusActions
- {% else %} -

No proposals submitted yet.

- {% endif %} +
+
+ +

{% trans "Speaking" %}

+
+ {% if not user.speaker_profile %} + + Create a speaker profile + + {% else %} + + Edit your speaker profile + + + Submit a new proposal + + {% endif %} +
+
- {% associated_proposals as associated_proposals %} - {% if associated_proposals %} -

Proposals you have joined as an additional speaker

- - - - - - - - {% for proposal in associated_proposals %} - {% include "proposals/_proposal_row.html" %} - {% endfor %} -
TitleSession typeStatusActions
- {% endif %} +
+ {% if not user.speaker_profile %} +

To submit a proposal, you must first create a speaker profile.

+ {% else %} +

Your Proposals

+ {% if user.speaker_profile.proposals.exists %} + + + + + + + + {% for proposal in user.speaker_profile.proposals.all %} + {% include "proposals/_proposal_row.html" %} + {% endfor %} +
TitleSession typeStatusActions
+ {% else %} +

No proposals submitted yet.

+ {% endif %} - {% pending_proposals as pending_proposals %} - {% if pending_proposals %} -

Proposals you have been invited to join

- - - - - - - - {% for proposal in pending_proposals %} - {% include "proposals/_pending_proposal_row.html" %} - {% endfor %} -
TitleSession typeStatusActions
+ {% associated_proposals as associated_proposals %} + {% if associated_proposals %} +

Proposals you have joined as an additional speaker

+ + + + + + + + {% for proposal in associated_proposals %} + {% include "proposals/_proposal_row.html" %} + {% endfor %} +
TitleSession typeStatusActions
+ {% endif %} + + {% pending_proposals as pending_proposals %} + {% if pending_proposals %} +

Proposals you have been invited to join

+ + + + + + + + {% for proposal in pending_proposals %} + {% include "proposals/_pending_proposal_row.html" %} + {% endfor %} +
TitleSession typeStatusActions
+ {% endif %} {% endif %} - {% endif %} -
+ + -
-

{% trans "Sponsorship" %}

- {% if not user.sponsorships.exists %} - - Apply to be a sponsor - - {% else %} -

Your Sponsorship

- - {% endif %} -
+
+
+ +

{% trans "Sponsorship" %}

+
+ {% if not user.sponsorships.exists %} + + Apply to be a sponsor + + {% endif %} +
+
+ +
+

+ {% if not user.sponsorships.exists %} +

If you or your organization would be interested in sponsorship opportunities, use our online form to apply to be a sponsor. + {% else %} +

Your Sponsorship

+
    + {% for sponsorship in user.sponsorships.all %} +
  • + {% if sponsorship.active %} + {{ sponsorship.name }} + ({{ sponsorship.level }}) + {% else %} + {{ sponsorship.name }} + ({{ sponsorship.level }}) + awaiting approval + {% endif %} +
  • + {% endfor %} +
+ {% endif %} +

+
+
{% endblock %}