diff --git a/cfp/forms.py b/cfp/forms.py
index 84c7891..b0bef9e 100644
--- a/cfp/forms.py
+++ b/cfp/forms.py
@@ -179,6 +179,7 @@ ParticipantForm = modelform_factory(Participant, fields=('name', 'email', 'biogr
class ParticipantStaffForm(ParticipantForm):
class Meta(ParticipantForm.Meta):
+ fields = ('name', 'vip', 'email', 'biography')
labels = {
'name': _('Name'),
}
diff --git a/cfp/migrations/0017_auto_20171103_1922.py b/cfp/migrations/0017_auto_20171103_1922.py
new file mode 100644
index 0000000..267d497
--- /dev/null
+++ b/cfp/migrations/0017_auto_20171103_1922.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.1 on 2017-11-03 19:22
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('cfp', '0016_auto_20171103_1842'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='participant',
+ name='vip',
+ field=models.BooleanField(default=False, verbose_name='Invited speaker'),
+ ),
+ ]
diff --git a/cfp/models.py b/cfp/models.py
index b8bf6e3..09090eb 100644
--- a/cfp/models.py
+++ b/cfp/models.py
@@ -104,7 +104,7 @@ class Participant(PonyConfModel):
language = models.CharField(max_length=10, blank=True)
notes = models.TextField(default='', blank=True, verbose_name=_("Notes"),
help_text=_('This field is only visible by organizers.'))
- vip = models.BooleanField(default=False)
+ vip = models.BooleanField(default=False, verbose_name=_('Invited speaker'))
conversation = models.OneToOneField(MessageThread)
objects = ParticipantManager()
diff --git a/cfp/templates/cfp/staff/participant_details.html b/cfp/templates/cfp/staff/participant_details.html
index 0b55dcd..91a8073 100644
--- a/cfp/templates/cfp/staff/participant_details.html
+++ b/cfp/templates/cfp/staff/participant_details.html
@@ -5,7 +5,10 @@
{% block content %}
-
{{ participant }}
+
+ {{ participant }}
+ {% if participant.vip %}{% trans "VIP" %}{% endif %}
+
{% trans "Edit" %}
@@ -19,6 +22,7 @@
{% trans "Informations" %}
+ {% if participant.vip %}- {% trans "Invited speaker" %}
{% endif %}
- {% trans "E-mail:" %} {{ participant.email }}
{% if participant.twitter %}- {% trans "Twitter:" %} {{ participant.twitter }}
{% endif %}
{% if participant.linkedin %}- {% trans "LinkedIn:" %} {{ participant.linkedin }}
{% endif %}
diff --git a/cfp/templates/cfp/staff/participant_list.html b/cfp/templates/cfp/staff/participant_list.html
index 0efad02..7c19cd0 100644
--- a/cfp/templates/cfp/staff/participant_list.html
+++ b/cfp/templates/cfp/staff/participant_list.html
@@ -47,7 +47,10 @@
{% endif %}
- {{ participant }} |
+
+ {{ participant }}
+ {% if participant.vip %}VIP{% endif %}
+ |
{% blocktrans count accepted=participant.accepted_talk_count %}accepted: {{ accepted }}{% plural %}accepted: {{ accepted }}{% endblocktrans %}
—
diff --git a/cfp/templates/cfp/staff/talk_details.html b/cfp/templates/cfp/staff/talk_details.html
index 4d18d65..7c06045 100644
--- a/cfp/templates/cfp/staff/talk_details.html
+++ b/cfp/templates/cfp/staff/talk_details.html
@@ -68,7 +68,7 @@
{% for participant in talk.speakers.all %}
{% if forloop.first %}{% endif %}
{% empty %}
{% trans "No speakers." %}
diff --git a/locale/fr/LC_MESSAGES/django.mo b/locale/fr/LC_MESSAGES/django.mo
index 753eedf..f0ac7ba 100644
Binary files a/locale/fr/LC_MESSAGES/django.mo and b/locale/fr/LC_MESSAGES/django.mo differ
diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po
index 308ab72..7fe0432 100644
--- a/locale/fr/LC_MESSAGES/django.po
+++ b/locale/fr/LC_MESSAGES/django.po
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-11-03 18:42+0000\n"
-"PO-Revision-Date: 2017-11-03 19:43+0100\n"
+"POT-Creation-Date: 2017-11-03 19:20+0000\n"
+"PO-Revision-Date: 2017-11-03 20:22+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr\n"
@@ -22,7 +22,7 @@ msgstr ""
msgid "Pending decision"
msgstr "Décision en attente"
-#: cfp/forms.py:18 cfp/forms.py:103 cfp/forms.py:195
+#: cfp/forms.py:18 cfp/forms.py:103 cfp/forms.py:196
msgid "Accepted"
msgstr "Accepté"
@@ -34,7 +34,7 @@ msgstr "Décliné"
msgid "Waiting"
msgstr "En attente"
-#: cfp/forms.py:29 cfp/forms.py:109 cfp/forms.py:201 cfp/models.py:343
+#: cfp/forms.py:29 cfp/forms.py:109 cfp/forms.py:202 cfp/models.py:343
msgid "Confirmed"
msgstr "Confirmé"
@@ -56,7 +56,7 @@ msgstr "Aucune"
msgid "Default duration: %(duration)d min"
msgstr "Durée par défaut : %(duration)d min"
-#: cfp/forms.py:85 cfp/forms.py:97 cfp/forms.py:189
+#: cfp/forms.py:85 cfp/forms.py:97 cfp/forms.py:190
#: cfp/templates/cfp/staff/talk_details.html:15
msgid "Category"
msgstr "Catégorie"
@@ -81,7 +81,7 @@ msgstr "Notes"
msgid "Visible by speakers"
msgstr "Visible par les orateurs"
-#: cfp/forms.py:115 cfp/forms.py:207 cfp/models.py:300
+#: cfp/forms.py:115 cfp/forms.py:208 cfp/models.py:300
#: cfp/templates/cfp/staff/talk_details.html:21
#: cfp/templates/cfp/staff/talk_list.html:46
#: cfp/templates/cfp/staff/track_form.html:14
@@ -136,7 +136,7 @@ msgstr "Vidéo"
msgid "Filter talks with / without video"
msgstr "Filtrer les exposés avec / sans vidéo"
-#: cfp/forms.py:153 cfp/forms.py:219
+#: cfp/forms.py:153 cfp/forms.py:220
msgid "Not assigned"
msgstr "Pas encore assignée"
@@ -156,23 +156,23 @@ msgstr "Ajouter une étiquette"
msgid "Put in a room"
msgstr "Assigner à une salle"
-#: cfp/forms.py:183 cfp/models.py:135 cfp/models.py:187 cfp/models.py:431
+#: cfp/forms.py:184 cfp/models.py:135 cfp/models.py:187 cfp/models.py:431
#: cfp/templates/cfp/staff/participant_list.html:35
#: cfp/templates/cfp/staff/volunteer_list.html:29
msgid "Name"
msgstr "Nom"
-#: cfp/forms.py:238
+#: cfp/forms.py:239
msgid "New staff members will be informed of their new position by e-mail."
msgstr ""
"Les nouveaux membres du staff seront informés de leur nouveau rôle par "
"courrier électronique."
-#: cfp/forms.py:258
+#: cfp/forms.py:259
msgid "An user with that firstname and that lastname already exists."
msgstr "Un utilisateur avec ce prénom et ce nom existe déjà."
-#: cfp/forms.py:263
+#: cfp/forms.py:264
msgid "A user with that email already exists."
msgstr "Un utilisateur avec cet email existe déjà."
@@ -278,6 +278,10 @@ msgstr "Numéro de téléphone"
msgid "This field is only visible by organizers."
msgstr "Ce champs est uniquement visible par les organisateurs."
+#: cfp/models.py:107
+msgid "Invited speaker"
+msgstr "Orateur invité"
+
#: cfp/models.py:189
msgid "Color"
msgstr "Couleur"
|