Help for constraint in participation form
This commit is contained in:
parent
a8b0e4aa6c
commit
31d1cc2947
|
@ -1,6 +1,7 @@
|
|||
from django import forms
|
||||
from django.contrib.auth.models import User
|
||||
from django.forms.models import modelform_factory
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from django_select2.forms import Select2Widget
|
||||
|
||||
|
@ -13,7 +14,10 @@ ProfileForm = modelform_factory(Profile, fields=['biography'])
|
|||
ParticipationForm = modelform_factory(Participation, fields=['transport', 'connector', 'sound', 'videotaped',
|
||||
'video_licence', 'constraints'],
|
||||
widgets={'transport': forms.CheckboxSelectMultiple(),
|
||||
'connector': forms.CheckboxSelectMultiple()})
|
||||
'connector': forms.CheckboxSelectMultiple()},
|
||||
help_texts = {
|
||||
'constraints': _('For example, you need to be back on saturday evening, you cannot eat meat.'),
|
||||
})
|
||||
|
||||
ProfileOrgaForm = modelform_factory(Profile, fields=['biography'])
|
||||
|
||||
|
|
Binary file not shown.
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-08-07 07:00+0000\n"
|
||||
"POT-Creation-Date: 2016-08-07 07:11+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"
|
||||
|
@ -18,6 +18,11 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
|
||||
#: accounts/forms.py:19
|
||||
msgid ""
|
||||
"For example, you need to be back on saturday evening, you cannot eat meat."
|
||||
msgstr "Par exemple, vous devez rentrer le samedi soir, vous ne pouvez pas manger de viande, etc."
|
||||
|
||||
#: accounts/models.py:17 proposals/templates/proposals/user_details.html:12
|
||||
msgid "Biography"
|
||||
msgstr "Biographie"
|
||||
|
|
Loading…
Reference in New Issue