Changeset - 13194574bb40
[Not reviewed]
0 1 0
Luke Hatcher - 12 years ago 2012-07-18 23:45:31
lukeman@gmail.com
disable adding documents to cancelled proposals
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
symposion_project/templates/proposals/proposal_detail.html
Show inline comments
...
 
@@ -26,51 +26,51 @@
 
    
 
    <div>
 
        {{ proposal.abstract|safe }}
 
    </div>
 
    
 
    <p><b>Audience level</b>: {{ proposal.get_audience_level_display }}</p>
 
    
 
    <p><b>Submitting speaker</b>: {{ proposal.speaker }}</p>
 
    
 
    {% if proposal.additional_speakers.all %}
 
        <p><b>Additional speakers</b>:</p>
 
        <ul>
 
        {% for speaker in proposal.additional_speakers.all %}
 
            {% if speaker.user %}
 
                <li><b>{{ speaker.name }}</b> &mdash; {{ speaker.email }}</li>
 
            {% else %}
 
                <li>{{ speaker.email }} &mdash; pending invitation</li>
 
            {% endif %}
 
        {% endfor %}
 
        </ul>
 
    {% endif %}
 
    
 
    {% if request.user == proposal.speaker.user %}
 
        <p><b>Additional Notes:</b></p>
 
    
 
        <p>{{ proposal.additional_notes }}</p>
 
    {% endif %}
 
    
 
    {% if request.user == proposal.speaker.user %}
 
        <h2>Supporting Documents</h2>
 
        
 
        {% if proposal.supporting_documents.exists %}
 
            <table class="table table-striped">
 
                {% for document in proposal.supporting_documents.all %}
 
                    <tr>
 
                        <td><a href="{{ document.download_url }}">{{ document.description }}</a></td>
 
                        <td>
 
                        <form style="margin: 0;" method="post" action="{% url proposal_document_delete document.pk %}">
 
                            {% csrf_token %}
 
                            <button type="submit" class="btn btn-mini">delete</button>
 
                        </form>
 
                    </td>
 
                    </tr>
 
                {% endfor %}
 
            </table>
 
        {% else %}
 
            <p>No supporting documents attached to this proposal.</p>
 
        {% endif %}
 
        <a class="btn btn-small" href="{% url proposal_document_create proposal.pk %}"><i class="icon-plus"></i> add document</a>
 
        <a class="btn btn-small{% if proposal.cancelled %} btn-disabled{% endif %}" href="{% url proposal_document_create proposal.pk %}"><i class="icon-plus"></i> add document</a>
 
    {% endif %}
 
{% endblock %}
0 comments (0 inline, 0 general)