# Path: conference/cfp/models.py
# class Submission(AbstractSubmission):
#     proposal_why = models.TextField(
#         _('Motivation'),
#         help_text=_('Explain here why your proposal is important for the attendees and what they will get from it.')
#     )
#     proposal_requirements = models.TextField(
#         _('Requirements'), blank=False, default='',
#     )
#     mentor_wanted = models.BooleanField(
#         _('Mentor'), default=False,
#         help_text=_('More experienced speakers can help you reviewing your talk, '
#                     'practicing, and getting ready for the presentation')
#     )
#     mentor_offer = models.BooleanField(
#         _('Mentor - Offer'), default=False,
#         help_text=_('Are you an experienced speaker and are you willing to help other speakers? '
#                     'Select this and we will get in contact with you!')
#     )
#     pycon = models.BooleanField(
#         _('PyCon'), default=False,
#         help_text=_('We will share your proposal with the PyCon Italia Team and they will '
#                     'evaluate independently your proposal.')
#     )
# 
#     class Meta:
#         verbose_name = _('talk submission')
#         verbose_name_plural = _('talk submissions')
# 
# class WorkshopSubmission(AbstractSubmission):
#     TWO_HOURS = '2'
#     DURATIONS = (
#         (TWO_HOURS, _('2 Hours')),
#     )
#     workshop_duration = models.CharField(
#         _('Duration'), choices=DURATIONS, max_length=10,
#     )
# 
#     class Meta:
#         verbose_name = _('workshop submission')
#         verbose_name_plural = _('workshop submissions')


from django import forms
from django.utils.translation import gettext_lazy as _
from conference.cfp.models import Submission, WorkshopSubmission

    class Meta:
        model = Submission
        fields = (
            'author', 'email', 'author_bio', 'proposal_title',
            'proposal_abstract', 'proposal_why', 'proposal_requirements', 'proposal_audience',
            'mentor_wanted', 'mentor_offer', 'notes', 'pycon'
        )

    def __init__(self, *args, **kwargs):
        super(TalkSubmissionForm, self).__init__(*args, **kwargs)
        self.fields['author'].label = _('Your name')
        self.fields['email'].label = _('Your email')
        self.fields['author_bio'].label = _('Tell us about yourself')
        self.fields['proposal_title'].label = _('Your proposal\'s title')
        self.fields['proposal_abstract'].label = _('Abstract of your proposal')
        self.fields['proposal_why'].label = _('What the audience will get from your proposal?')
        self.fields['proposal_requirements'].label = _(
            'Do you have any special requirement for your talk?'
        )
        self.fields['proposal_audience'].label = _(
            'What\'s the intended audience of your proposal?')
        self.fields['mentor_wanted'].label = _('I\'d like a mentor')
        self.fields['mentor_offer'].label = _('I\'m volunteering as mentor')
        self.fields['pycon'].label = _('Do you want to submit your proposal to PyCon Italia 2017?')


class WorkshopSubmissionForm(forms.ModelForm):

    class Meta:

# Path: conference/cfp/models.py
# class Submission(AbstractSubmission):
#     proposal_why = models.TextField(
#         _('Motivation'),
#         help_text=_('Explain here why your proposal is important for the attendees and what they will get from it.')
#     )
#     proposal_requirements = models.TextField(
#         _('Requirements'), blank=False, default='',
#     )
#     mentor_wanted = models.BooleanField(
#         _('Mentor'), default=False,
#         help_text=_('More experienced speakers can help you reviewing your talk, '
#                     'practicing, and getting ready for the presentation')
#     )
#     mentor_offer = models.BooleanField(
#         _('Mentor - Offer'), default=False,
#         help_text=_('Are you an experienced speaker and are you willing to help other speakers? '
#                     'Select this and we will get in contact with you!')
#     )
#     pycon = models.BooleanField(
#         _('PyCon'), default=False,
#         help_text=_('We will share your proposal with the PyCon Italia Team and they will '
#                     'evaluate independently your proposal.')
#     )
# 
#     class Meta:
#         verbose_name = _('talk submission')
#         verbose_name_plural = _('talk submissions')
# 
# class WorkshopSubmission(AbstractSubmission):
#     TWO_HOURS = '2'
#     DURATIONS = (
#         (TWO_HOURS, _('2 Hours')),
#     )
#     workshop_duration = models.CharField(
#         _('Duration'), choices=DURATIONS, max_length=10,
#     )
# 
#     class Meta:
#         verbose_name = _('workshop submission')
#         verbose_name_plural = _('workshop submissions')


# Path: conference/cfp/forms.py
from django import forms
from django.utils.translation import gettext_lazy as _
from conference.cfp.models import Submission, WorkshopSubmission


    class Meta:
        model = Submission
        fields = (
            'author', 'email', 'author_bio', 'proposal_title',
            'proposal_abstract', 'proposal_why', 'proposal_requirements', 'proposal_audience',
            'mentor_wanted', 'mentor_offer', 'notes', 'pycon'
        )

    def __init__(self, *args, **kwargs):
        super(TalkSubmissionForm, self).__init__(*args, **kwargs)
        self.fields['author'].label = _('Your name')
        self.fields['email'].label = _('Your email')
        self.fields['author_bio'].label = _('Tell us about yourself')
        self.fields['proposal_title'].label = _('Your proposal\'s title')
        self.fields['proposal_abstract'].label = _('Abstract of your proposal')
        self.fields['proposal_why'].label = _('What the audience will get from your proposal?')
        self.fields['proposal_requirements'].label = _(
            'Do you have any special requirement for your talk?'
        )
        self.fields['proposal_audience'].label = _(
            'What\'s the intended audience of your proposal?')
        self.fields['mentor_wanted'].label = _('I\'d like a mentor')
        self.fields['mentor_offer'].label = _('I\'m volunteering as mentor')
        self.fields['pycon'].label = _('Do you want to submit your proposal to PyCon Italia 2017?')


class WorkshopSubmissionForm(forms.ModelForm):

    class Meta:

        model = WorkshopSubmission