contact all speakers

This commit is contained in:
Élie Bouttier 2016-11-14 23:24:21 +01:00
parent 058a771695
commit 855f4da7dc
4 changed files with 19 additions and 6 deletions

Binary file not shown.

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-14 22:09+0000\n"
"POT-Creation-Date: 2016-11-14 22:22+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -138,7 +138,7 @@ msgid "Goodbye!"
msgstr "Au revoir !"
#: accounts/templates/accounts/participant_details.html:12
#: proposals/templates/proposals/speaker_list.html:92
#: proposals/templates/proposals/speaker_list.html:97
#: volunteers/templates/volunteers/volunteer_list.html:48
msgid "Contact"
msgstr "Contacter"
@ -683,7 +683,9 @@ msgstr "Exposés proposés pour un tier :"
#: proposals/templates/proposals/participate.html:23
msgid "The Call for Participation is currently open for following categories:"
msgstr "Lappel à participation est actuellement ouvert pour les catégories suivantes :"
msgstr ""
"Lappel à participation est actuellement ouvert pour les catégories "
"suivantes :"
#: proposals/templates/proposals/participate.html:26
#, python-format
@ -749,6 +751,10 @@ msgstr "Hébergement ?"
msgid "Need sound?"
msgstr "Son ?"
#: proposals/templates/proposals/speaker_list.html:59
msgid "Contact:"
msgstr "Contacter :"
#: proposals/templates/proposals/talk_decide.html:9
msgid "Are you sure to accept this proposals?"
msgstr "Êtes-vous sûr daccepter cette propositon dintervention ?"
@ -980,15 +986,15 @@ msgstr "Vote mis à jour"
msgid "Decision taken in account"
msgstr "Décision enregistrée"
#: proposals/views.py:429
#: proposals/views.py:431
msgid "Unregistered :-("
msgstr "Vous avez été désinscrit :-("
#: proposals/views.py:431
#: proposals/views.py:433
msgid "Already registered!"
msgstr "Vous êtes déjà inscrit !"
#: proposals/views.py:436
#: proposals/views.py:438
msgid "Registered!"
msgstr "Vous avez été inscrit !"

View File

@ -54,6 +54,11 @@
<th class="text-center"></th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="7">{% trans "Contact:" %}<a href="{{ contact_link }}">lien</a></td>
</tr>
</tfoot>
{% for speaker in speaker_list %}
{% if forloop.first %}
<tbody>

View File

@ -391,10 +391,12 @@ def speaker_list(request):
if data['accommodation_booked'] != None:
show_filters = True
speakers = speakers.exclude(accommodation=Participation.ACCOMMODATION_NO).filter(accommodation_booked=data['accommodation_booked'])
contact_link = 'mailto:' + ','.join([speaker.user.email for speaker in speakers.all() if speaker.user.email])
return render(request, 'proposals/speaker_list.html', {
'speaker_list': speakers,
'filter_form': filter_form,
'show_filters': show_filters,
'contact_link': contact_link,
})