0 0 1
Brett Smith - 14 months ago 2019-09-30 15:56:13
brettcsmith@brettcsmith.org
templates: Adjust what proposal fields are shown. Show fields we use, not ones we don't.
1 file changed with 62 insertions and 0 deletions:
↑ Collapse Diff ↑
 
new file 100644
1
 
{% comment %}
2
 
Based on the original file from
3
 
<https://github.com/chrisjrn/symposion-bootstrap-templates/blob/7f1394697a8fd28c201dd4a489d497a24af95a1b/symposion_templates/templates/symposion/proposals/_proposal_fields.html>
4
 
{% endcomment %}
5
 

	
6
 
{% load i18n %}
7
 

	
8
 
<dl class="dl-horizontal">
9
 
    <dt>{% trans "Submitted by" %}</dt>
10
 
    <dd>{{ proposal.speaker }}</dd>
11
 

	
12
 
    <dt>{% trans "Proposal Kind" %}</dt>
13
 
    <dd>{{ proposal.kind.name }}</dd>
14
 

	
15
 
    {% if proposal.additional_speakers.all %}
16
 
        <dt>{% trans "Additional Speakers" %}</dt>
17
 
        <dd>
18
 
            {% for speaker in proposal.additional_speakers.all %}
19
 
                <li>
20
 
                    {% if speaker.user %}
21
 
                        <strong>{{ speaker.name }}</strong> &lt;{{ speaker.email }}&gt;
22
 
                    {% else %}
23
 
                        {{ speaker.email }} ({% trans "Invitation Sent" %})
24
 
                    {% endif %}
25
 
                </li>
26
 
            {% endfor %}
27
 
        </dd>
28
 
    {% endif %}
29
 

	
30
 
    <dt>{% trans "Description" %}</dt>
31
 
    <dd>{{ proposal.description }}&nbsp;</dd>
32
 

	
33
 
    <dt>{% trans "Abstract" %}</dt>
34
 
    <dd>{{ proposal.abstract_html|safe }}&nbsp;</dd>
35
 

	
36
 
    <dt>{% trans "Notes" %}</dt>
37
 
    <dd>{{ proposal.additional_notes_html|safe }}&nbsp;</dd>
38
 

	
39
 
    <dt>{% trans "Speaker Bio" %}</dt>
40
 
    <dd>{{ proposal.speaker.biography|safe }}&nbsp;</dd>
41
 

	
42
 
    <dt>{% trans "Documents" %}</dt>
43
 
    <dd>
44
 
        {% if proposal.supporting_documents.exists %}
45
 
            <table class="table table-striped">
46
 
                {% for document in proposal.supporting_documents.all %}
47
 
                    <tr>
48
 
                        <td><a href="{{ document.download_url }}">{{ document.description }}</a></td>
49
 
                        <td>
50
 
                        <form style="margin: 0;" method="post" action="{% url "proposal_document_delete" document.pk %}">
51
 
                            {% csrf_token %}
52
 
                            <button type="submit" class="btn btn-xs">delete</button>
53
 
                        </form>
54
 
                    </td>
55
 
                    </tr>
56
 
                {% endfor %}
57
 
            </table>
58
 
        {% else %}
59
 
            No supporting documents attached to this proposal.
60
 
        {% endif %}
61
 
    </dd>
62
 
</dl>
0 comments (0 inline, 0 general)