# Path: whatistheplan/forms.py
# class UserForm(forms.ModelForm):
#     """Form for user signup"""
#     password = forms.CharField(widget=forms.PasswordInput())
#     class Meta: #pylint: disable=missing-docstring
#         model = User
#         fields = (
#             'username',
#             'password',
#             'email'
#         )
# 
# class UserProfileForm(forms.ModelForm):
#     """Form for user profile"""
#     class Meta: #pylint: disable=missing-docstring
#         model = UserProfile
#         fields = (
#             'name',
#             'irc',
#             'steamid',
#             'mac_address'
#         )


from whatistheplan.forms import UserForm, UserProfileForm
from django.template import RequestContext
from django.shortcuts import render
from django.http import HttpResponseRedirect
"""view controller for user signup route"""

def user_signup(request):
    """Sign up view"""
    registered = False
    # Check if the user hit POST /signup, not GET /signup
    if request.method == 'POST':

# Path: whatistheplan/forms.py
# class UserForm(forms.ModelForm):
#     """Form for user signup"""
#     password = forms.CharField(widget=forms.PasswordInput())
#     class Meta: #pylint: disable=missing-docstring
#         model = User
#         fields = (
#             'username',
#             'password',
#             'email'
#         )
# 
# class UserProfileForm(forms.ModelForm):
#     """Form for user profile"""
#     class Meta: #pylint: disable=missing-docstring
#         model = UserProfile
#         fields = (
#             'name',
#             'irc',
#             'steamid',
#             'mac_address'
#         )


# Path: whatistheplan/views/user_signup.py
from whatistheplan.forms import UserForm, UserProfileForm
from django.template import RequestContext
from django.shortcuts import render
from django.http import HttpResponseRedirect

"""view controller for user signup route"""

def user_signup(request):
    """Sign up view"""
    registered = False
    # Check if the user hit POST /signup, not GET /signup
    if request.method == 'POST':

        user_form = UserForm(data=request.POST)