initial dashboard for symposion
This commit is contained in:
parent
fcdad2c53b
commit
3659da80b9
1 changed files with 92 additions and 150 deletions
|
@ -7,37 +7,28 @@
|
||||||
|
|
||||||
{% block body_class %}auth{% endblock %}
|
{% block body_class %}auth{% endblock %}
|
||||||
|
|
||||||
{% block body_outer %}
|
{% block body %}
|
||||||
<div class="row">
|
<h2>{% trans "Dashboard" %}</h2>
|
||||||
<div class="span12">
|
|
||||||
<div class="page-head">
|
|
||||||
<h1>{% trans "Dashboard" %}</h1>
|
|
||||||
<p>
|
|
||||||
This is your dashboard where you can manage all aspects of your
|
|
||||||
involvement in the conference, from talk proposals to sponsorship.
|
|
||||||
</p>
|
|
||||||
{% block breadcrumbs %}{% endblock %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="box">
|
<section id="dashboard_speakers">
|
||||||
<div class="box-head">
|
<h3>{% trans "Speaking" %}</h3>
|
||||||
<h2>Speaking</h2>
|
{% if not user.speaker_profile %}
|
||||||
</div>
|
<div class="alert alert-info">
|
||||||
<div class="box-content">
|
<p>To submit a proposal, you must first create a speaker profile.</p>
|
||||||
{% if user.speaker_profile %}
|
<a href="{% url speaker_create %}" class="btn">
|
||||||
<div class="actions">
|
Create a speaker profile
|
||||||
<a href="{% url speaker_edit %}" class="action">
|
|
||||||
<i class="widget-icon icon-pencil"></i>
|
|
||||||
<span class="widget-label">Edit your speaker profile</span>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a href="{% url proposal_submit %}" class="action">
|
|
||||||
<i class="widget-icon icon-bullhorn"></i>
|
|
||||||
<span class="widget-label">Submit a new proposal</span>
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<section class="subsection">
|
{% else %}
|
||||||
|
<a href="{% url speaker_edit %}" class="btn">
|
||||||
|
Edit your speaker profile
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<a href="{% url proposal_submit %}" class="btn">
|
||||||
|
Submit a new proposal
|
||||||
|
</a>
|
||||||
|
|
||||||
<h4>Your Proposals</h4>
|
<h4>Your Proposals</h4>
|
||||||
{% if user.speaker_profile.proposals.exists %}
|
{% if user.speaker_profile.proposals.exists %}
|
||||||
<table class="table">
|
<table class="table">
|
||||||
|
@ -54,11 +45,9 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>No proposals submitted yet.</p>
|
<p>No proposals submitted yet.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
|
||||||
|
|
||||||
{% associated_proposals as associated_proposals %}
|
{% associated_proposals as associated_proposals %}
|
||||||
{% if associated_proposals %}
|
{% if associated_proposals %}
|
||||||
<section class="subsection">
|
|
||||||
<h4>Proposals you have joined as an additional speaker</h4>
|
<h4>Proposals you have joined as an additional speaker</h4>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -71,12 +60,10 @@
|
||||||
{% include "proposals/_proposal_row.html" %}
|
{% include "proposals/_proposal_row.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
</section>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% pending_proposals as pending_proposals %}
|
{% pending_proposals as pending_proposals %}
|
||||||
{% if pending_proposals %}
|
{% if pending_proposals %}
|
||||||
<section class="subsection">
|
|
||||||
<h4>Proposals you have been invited to join</h4>
|
<h4>Proposals you have been invited to join</h4>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -89,48 +76,23 @@
|
||||||
{% include "proposals/_pending_proposal_row.html" %}
|
{% include "proposals/_pending_proposal_row.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% else %}
|
<section id="dashboard_sponsorship">
|
||||||
<p>To submit a proposal, first create a speaker profile.</p>
|
<h3>{% trans "Sponsorship" %}</h3>
|
||||||
<div class="actions">
|
|
||||||
<a href="{% url speaker_create %}" class="action">
|
|
||||||
<i class="widget-icon icon-user"></i>
|
|
||||||
<span class="widget-label">Create a speaker profile</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="box">
|
|
||||||
<div class="box-head">
|
|
||||||
<h2>Sponsorship</h2>
|
|
||||||
</div>
|
|
||||||
<div class="box-content">
|
|
||||||
<div class="actions">
|
|
||||||
<a href="{% url cms_page "sponsors/prospectus/" %}" class="action">
|
|
||||||
<i class="widget-icon icon-info-sign"></i>
|
|
||||||
<span class="widget-label">Learn about sponsorship</span>
|
|
||||||
</a>
|
|
||||||
{% if not user.sponsorships.exists %}
|
{% if not user.sponsorships.exists %}
|
||||||
<a href="{% url sponsor_apply %}" class="action">
|
<a href="{# {% url sponsor_apply %} #}" class="btn">
|
||||||
<i class="widget-icon icon-money"></i>
|
Apply to be a sponsor
|
||||||
<span class="widget-label">Apply to be a sponsor</span>
|
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% else %}
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if user.sponsorships.exists %}
|
|
||||||
<section class="subsection">
|
|
||||||
<h4>Your Sponsorship</h4>
|
<h4>Your Sponsorship</h4>
|
||||||
<ul>
|
<ul>
|
||||||
{% for sponsorship in user.sponsorships.all %}
|
{% for sponsorship in user.sponsorships.all %}
|
||||||
<li>
|
<li>
|
||||||
{% if sponsorship.active %}
|
{% if sponsorship.active %}
|
||||||
<a href="{% url sponsor_detail sponsorship.pk %}"><b>{{ sponsorship.name }}</b></a>
|
<a href="{# {% url sponsor_detail sponsorship.pk %}" #}><b>{{ sponsorship.name }}</b></a>
|
||||||
({{ sponsorship.level }})
|
({{ sponsorship.level }})
|
||||||
{% else %}
|
{% else %}
|
||||||
<b>{{ sponsorship.name }}</b>
|
<b>{{ sponsorship.name }}</b>
|
||||||
|
@ -140,26 +102,6 @@
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if user.is_staff %}
|
|
||||||
<div class="box">
|
|
||||||
<div class="box-head">
|
|
||||||
<h2>Staff</h2>
|
|
||||||
</div>
|
|
||||||
<div class="box-content">
|
|
||||||
<div class="actions">
|
|
||||||
<a href="{% url admin:index %}" class="action">
|
|
||||||
<i class="widget-icon icon-key"></i>
|
|
||||||
<span class="widget-label">Go to Django admin</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue