updated dashboard to allow sponsor details to be edited before approval

This commit is contained in:
James Tauber 2012-10-18 13:54:26 -04:00
parent daff4020ea
commit 26f7503257

View file

@ -100,31 +100,32 @@
</div> </div>
<div class="dashboard-panel-content"> <div class="dashboard-panel-content">
<p> {% if not user.sponsorships.exists %}
{% 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>.
<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 %}
{% else %} <h4>Your Sponsorship</h4>
<h4>Your Sponsorship</h4> <ul>
<ul> {% for sponsorship in user.sponsorships.all %}
{% for sponsorship in user.sponsorships.all %} <li>
<li> <a href="{% url sponsor_detail sponsorship.pk %}"><b>{{ sponsorship.name }}</b></a>
{% if sponsorship.active %} ({{ sponsorship.level }})
<a href="{% url sponsor_detail sponsorship.pk %}"><b>{{ sponsorship.name }}</b></a> {% if not sponsorship.active %}
({{ sponsorship.level }}) <span class="label label-warning">awaiting approval</span>
{% else %} {% endif %}
<b>{{ sponsorship.name }}</b> </li>
({{ sponsorship.level }}) {% endfor %}
<span class="label label-warning">awaiting approval</span> </ul>
{% endif %} {% endif %}
</li> {% if user.is_staff %}
{% endfor %} <p>
</ul> As staff, you can directly <a href="{% url sponsor_add %}">add a sponsor</a> if the organization isn't
{% endif %} applying themselves.
</p> </p>
{% endif %}
</div> </div>
</div> </div>
{% if review_sections %} {% if review_sections %}
<div class="dashboard-panel"> <div class="dashboard-panel">
<div class="dashboard-panel-header"> <div class="dashboard-panel-header">
<i class="icon-briefcase"></i> <i class="icon-briefcase"></i>