update dashboard to use new panels
This commit is contained in:
parent
bc95b2d09a
commit
98bf1120dd
1 changed files with 109 additions and 90 deletions
|
@ -8,25 +8,30 @@
|
|||
{% block body_class %}auth{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h2>{% trans "Dashboard" %}</h2>
|
||||
|
||||
<section id="dashboard_speakers" class="dashboard-section well">
|
||||
<div class="dashboard-panel">
|
||||
<div class="dashboard-panel-header">
|
||||
<i class="icon-bullhorn"></i>
|
||||
<h3>{% trans "Speaking" %}</h3>
|
||||
<div class="pull-right header-actions">
|
||||
{% if not user.speaker_profile %}
|
||||
<p>To submit a proposal, you must first create a speaker profile.</p>
|
||||
<a href="{% url speaker_create %}" class="btn">
|
||||
Create a speaker profile
|
||||
<i class="icon-plus-sign"></i> Create a speaker profile
|
||||
</a>
|
||||
|
||||
{% else %}
|
||||
<a href="{% url speaker_edit %}" class="btn">
|
||||
Edit your speaker profile
|
||||
<i class="icon-pencil"></i> Edit your speaker profile
|
||||
</a>
|
||||
|
||||
<a href="{% url proposal_submit %}" class="btn">
|
||||
Submit a new proposal
|
||||
<i class="icon-plus-sign"></i> Submit a new proposal
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dashboard-panel-content">
|
||||
{% if not user.speaker_profile %}
|
||||
<p>To submit a proposal, you must first <a href="{% url speaker_create %}">create a speaker profile</a>.</p>
|
||||
{% else %}
|
||||
<h4>Your Proposals</h4>
|
||||
{% if user.speaker_profile.proposals.exists %}
|
||||
<table class="table">
|
||||
|
@ -76,14 +81,26 @@
|
|||
</table>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section id="dashboard_sponsorship" class="dashboard-section well">
|
||||
<div class="dashboard-panel">
|
||||
<div class="dashboard-panel-header">
|
||||
<i class="icon-briefcase"></i>
|
||||
<h3>{% trans "Sponsorship" %}</h3>
|
||||
<div class="pull-right header-actions">
|
||||
{% if not user.sponsorships.exists %}
|
||||
<a href="{% url sponsor_apply %}" class="btn">
|
||||
Apply to be a sponsor
|
||||
<i class="icon-plus-sign"></i> Apply to be a sponsor
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dashboard-panel-content">
|
||||
<p>
|
||||
{% if not user.sponsorships.exists %}
|
||||
<p>If you or your organization would be interested in sponsorship opportunities, <a href="{% url sponsor_apply %}">use our online form to apply to be a sponsor</a>.
|
||||
{% else %}
|
||||
<h4>Your Sponsorship</h4>
|
||||
<ul>
|
||||
|
@ -101,5 +118,7 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</section>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue