# Path: makesite/modules/flask/base/auth/forms.py
# class LoginForm(Form, EmailFormMixin, PasswordFormMixin):
#     " The default login form. "
# 
#     remember = BooleanField(_("Remember Me"), default=True)
#     next = HiddenField()
#     submit = SubmitField(_("Login"))
# 
#     def __init__(self, *args, **kwargs):
#         super(LoginForm, self).__init__(*args, **kwargs)
# 
#         if request.method == 'GET':
#             self.next.data = request.args.get('next', None)


from flask import render_template, Blueprint
from ..auth.forms import LoginForm



urls = Blueprint('urls', __name__, template_folder='templates')


@urls.route('/')
def index():
    " Main page. "

# Path: makesite/modules/flask/base/auth/forms.py
# class LoginForm(Form, EmailFormMixin, PasswordFormMixin):
#     " The default login form. "
# 
#     remember = BooleanField(_("Remember Me"), default=True)
#     next = HiddenField()
#     submit = SubmitField(_("Login"))
# 
#     def __init__(self, *args, **kwargs):
#         super(LoginForm, self).__init__(*args, **kwargs)
# 
#         if request.method == 'GET':
#             self.next.data = request.args.get('next', None)


# Path: makesite/modules/flask/base/core/views.py
from flask import render_template, Blueprint
from ..auth.forms import LoginForm




urls = Blueprint('urls', __name__, template_folder='templates')


@urls.route('/')
def index():
    " Main page. "

    return render_template('core/index.html', loginform=LoginForm())