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,7 +100,6 @@
</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 %}
@ -108,19 +107,21 @@
<ul> <ul>
{% for sponsorship in user.sponsorships.all %} {% for sponsorship in user.sponsorships.all %}
<li> <li>
{% 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 %} {% if not sponsorship.active %}
<b>{{ sponsorship.name }}</b>
({{ sponsorship.level }})
<span class="label label-warning">awaiting approval</span> <span class="label label-warning">awaiting approval</span>
{% endif %} {% endif %}
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}
{% if user.is_staff %}
<p>
As staff, you can directly <a href="{% url sponsor_add %}">add a sponsor</a> if the organization isn't
applying themselves.
</p> </p>
{% endif %}
</div> </div>
</div> </div>