diff --git a/src/program/templates/eventproposal_detail.html b/src/program/templates/eventproposal_detail.html index f2c7b01e..0f287656 100644 --- a/src/program/templates/eventproposal_detail.html +++ b/src/program/templates/eventproposal_detail.html @@ -17,6 +17,17 @@ +
+
Events
+
+ {% if eventproposal.speakers.exists %} + {% include 'includes/speaker_proposal_table.html' with speakerproposals=eventproposal.speakers.all %} + {% else %} + Nothing found. + {% endif %} +
+
+

Back to List

diff --git a/src/program/templates/includes/event_proposal_table.html b/src/program/templates/includes/event_proposal_table.html new file mode 100644 index 00000000..6868e962 --- /dev/null +++ b/src/program/templates/includes/event_proposal_table.html @@ -0,0 +1,37 @@ + + + + + + + + + + + + + {% for eventproposal in eventproposals %} + + + + + + + + + {% endfor %} + +
TitleTypePeopleTrackStatusAvailable Actions
{{ eventproposal.title }} {{ eventproposal.event_type }}{% for person in eventproposal.speakers.all %} {% endfor %}{{ eventproposal.track.name }}{{ eventproposal.proposal_status }} + + Detail + {% if not camp.read_only %} + Modify + {% if eventproposal.get_available_speakerproposals.exists %} + Add {{ eventproposal.event_type.host_title }} + {% else %} + Add {{ eventproposal.event_type.host_title }} + {% endif %} + Delete + {% endif %} +
diff --git a/src/program/templates/includes/speaker_proposal_table.html b/src/program/templates/includes/speaker_proposal_table.html new file mode 100644 index 00000000..a9254133 --- /dev/null +++ b/src/program/templates/includes/speaker_proposal_table.html @@ -0,0 +1,39 @@ + + + + + + + + + + + {% for speakerproposal in speakerproposals %} + + + + + + + {% endfor %} + +
NameEventsStatusAvailable Actions
{{ speakerproposal.name }} + {% if speakerproposal.eventproposals.all %} + {% for ep in speakerproposal.eventproposals.all %} + + {% endfor %} + {% else %} + N/A + {% endif %} + {{ speakerproposal.proposal_status }} + + Detail + {% if not camp.read_only %} + Modify + Add Event + {% if not speakerproposal.eventproposals.all %} + Delete + {% endif %} + {% endif %} +
diff --git a/src/program/templates/proposal_list.html b/src/program/templates/proposal_list.html index 42a31fac..a1bc0ec2 100644 --- a/src/program/templates/proposal_list.html +++ b/src/program/templates/proposal_list.html @@ -17,45 +17,7 @@ Proposals | {{ block.super }}

People

{% if speakerproposal_list %} - - - - - - - - - - - {% for speakerproposal in speakerproposal_list %} - - - - - - - {% endfor %} - -
NameEventsStatusAvailable Actions
{{ speakerproposal.name }} - {% if speakerproposal.eventproposals.all %} - {% for ep in speakerproposal.eventproposals.all %} - - {% endfor %} - {% else %} - N/A - {% endif %} - {{ speakerproposal.proposal_status }} - - Detail - {% if not camp.read_only %} - Modify - Add Event - {% if not speakerproposal.eventproposals.all %} - Delete - {% endif %} - {% endif %} -
+ {% include 'includes/speaker_proposal_table.html' with speakerproposals=speakerproposal_list %} {% else %} Nothing found. {% endif %} @@ -64,43 +26,7 @@ Proposals | {{ block.super }}

Events

{% if eventproposal_list %} - - - - - - - - - - - - - {% for eventproposal in eventproposal_list %} - - - - - - - - - {% endfor %} - -
TitleTypePeopleTrackStatusAvailable Actions
{{ eventproposal.title }} {{ eventproposal.event_type }}{% for person in eventproposal.speakers.all %} {% endfor %}{{ eventproposal.track.name }}{{ eventproposal.proposal_status }} - - Detail - {% if not camp.read_only %} - Modify - {% if eventproposal.get_available_speakerproposals.exists %} - Add {{ eventproposal.event_type.host_title }} - {% else %} - Add {{ eventproposal.event_type.host_title }} - {% endif %} - Delete - {% endif %} -
+ {% include 'includes/event_proposal_table.html' with eventproposals=eventproposal_list %} {% else %} Nothing found. {% endif %} diff --git a/src/program/templates/speakerproposal_detail.html b/src/program/templates/speakerproposal_detail.html index 7d6de89c..f7b1166f 100644 --- a/src/program/templates/speakerproposal_detail.html +++ b/src/program/templates/speakerproposal_detail.html @@ -13,20 +13,18 @@
{{ speakerproposal.name }}
- {% if speakerproposal.picture_large and speakerproposal.picture_small %} -
-
{{ speakerproposal.biography|commonmark }} -
-
- - {{ camp.title }} speaker picture of {{ speakerproposal.name }} - -
-
- {% else %} - {{ speakerproposal.biography|commonmark }} - {% endif %} +
+
+ +
+
Events
+
+ {% if speakerproposal.eventproposals.exists %} + {% include 'includes/event_proposal_table.html' with eventproposals=speakerproposal.eventproposals.all %} + {% else %} + Nothing found. + {% endif %}