# Path: promotion/models.py
# class JoinApplication(models.Model):
#     name = models.CharField(max_length=200)
#     email = models.EmailField()
#     roll_number = models.CharField(max_length=100, blank=True, null=True)
#     batch = models.CharField(max_length=100, choices=batch_choices)
#     motivation = models.TextField()
#     cs_background = models.TextField(blank=True)
#     interests = models.TextField()
#     contribution = models.TextField(default='NULL')
#     is_approved = models.BooleanField(default=False)
#     is_rejected = models.BooleanField(default=False)
# 
#     date = models.DateTimeField(auto_now_add=True, auto_now=False)
# 
#     def __str__(self):
#         return self.name
# 
#     def get_absolute_url(self):
#         return reverse('join_detail', kwargs={'pk': self.pk})
# 
#     class Meta:
#         ordering = ('date',)


from captcha.fields import ReCaptchaField
from django import forms
from promotion.models import JoinApplication
# created by Chirath R, chirath.02@gmail.com
# -*- coding: utf-8 -*-
from __future__ import unicode_literals



batch_choices = (
    ('1st year', '1st year'),
    ('2nd year', '2nd year'),
    ('3rd year', '3rd year'),
    ('4th year', '4th year'),
)


class JoinApplicationForm(forms.ModelForm):

    name = forms.CharField(label='Name', help_text="Enter your full name",
                           widget=forms.TextInput(attrs={'placeholder': 'Full name'}))

    email = forms.EmailField(label='Email', help_text="Enter your email id",
                             widget=forms.EmailInput(attrs={'placeholder': 'Email id'}))

    roll_number = forms.CharField(label='Roll number', help_text="Enter your roll number(leave blank if you don't "
                                                                 "have one.)", required=False,
                                  widget=forms.TextInput(attrs={'placeholder': 'AM.XX.XXXXXXXXXX'}))

    batch = forms.ChoiceField(choices=batch_choices, label='Batch', help_text="Enter your current year")

    motivation = forms.CharField(label='Why do you want to join FOSS?',

# Path: promotion/models.py
# class JoinApplication(models.Model):
#     name = models.CharField(max_length=200)
#     email = models.EmailField()
#     roll_number = models.CharField(max_length=100, blank=True, null=True)
#     batch = models.CharField(max_length=100, choices=batch_choices)
#     motivation = models.TextField()
#     cs_background = models.TextField(blank=True)
#     interests = models.TextField()
#     contribution = models.TextField(default='NULL')
#     is_approved = models.BooleanField(default=False)
#     is_rejected = models.BooleanField(default=False)
# 
#     date = models.DateTimeField(auto_now_add=True, auto_now=False)
# 
#     def __str__(self):
#         return self.name
# 
#     def get_absolute_url(self):
#         return reverse('join_detail', kwargs={'pk': self.pk})
# 
#     class Meta:
#         ordering = ('date',)


# Path: promotion/forms.py
from captcha.fields import ReCaptchaField
from django import forms
from promotion.models import JoinApplication

# created by Chirath R, chirath.02@gmail.com
# -*- coding: utf-8 -*-
from __future__ import unicode_literals



batch_choices = (
    ('1st year', '1st year'),
    ('2nd year', '2nd year'),
    ('3rd year', '3rd year'),
    ('4th year', '4th year'),
)


class JoinApplicationForm(forms.ModelForm):

    name = forms.CharField(label='Name', help_text="Enter your full name",
                           widget=forms.TextInput(attrs={'placeholder': 'Full name'}))

    email = forms.EmailField(label='Email', help_text="Enter your email id",
                             widget=forms.EmailInput(attrs={'placeholder': 'Email id'}))

    roll_number = forms.CharField(label='Roll number', help_text="Enter your roll number(leave blank if you don't "
                                                                 "have one.)", required=False,
                                  widget=forms.TextInput(attrs={'placeholder': 'AM.XX.XXXXXXXXXX'}))

    batch = forms.ChoiceField(choices=batch_choices, label='Batch', help_text="Enter your current year")

    motivation = forms.CharField(label='Why do you want to join FOSS?',

                                 help_text="Write briefly about why you would like to join us. Please answer " +