# Path: staff/models.py
# class StaffMember(BaseStaffMember):
#     pass
# 
# Path: staff/forms.py
# class ContactForm(forms.Form):
#     """
#     A simple contact form to allow contacting the staff
#     """
#     name = forms.CharField(label=_('Your Name'))
#     email = forms.EmailField(label=_('Your Email'))
#     message = forms.CharField(label=_('Message'), widget=forms.Textarea)


from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from django.template.loader import render_to_string
from django.core.mail import EmailMessage
from staff.models import StaffMember
from staff.forms import ContactForm
        from story.settings import PUBLISHED_STATUS
import json




def index(request, template_name='staffmembers/index.html'):
    """
    The list of employees or staff members
    """
    return render_to_response(template_name,
                              {'staff': StaffMember.objects.active()},
                              context_instance=RequestContext(request))


def userinfo_json(request, user_id):
    """
    Return the user's information in a json object
    """
    data = {'first_name': '',
            'last_name': '',
            'email': '',
            'slug': '',
            'bio': '',
            'phone': '',
            'is_active': False}

    try:

# Path: staff/models.py
# class StaffMember(BaseStaffMember):
#     pass
# 
# Path: staff/forms.py
# class ContactForm(forms.Form):
#     """
#     A simple contact form to allow contacting the staff
#     """
#     name = forms.CharField(label=_('Your Name'))
#     email = forms.EmailField(label=_('Your Email'))
#     message = forms.CharField(label=_('Message'), widget=forms.Textarea)


# Path: staff/views.py
from datetime import datetime
from django.conf import settings
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from django.template.loader import render_to_string
from django.core.mail import EmailMessage
from staff.models import StaffMember
from staff.forms import ContactForm
        from story.settings import PUBLISHED_STATUS
import json





def index(request, template_name='staffmembers/index.html'):
    """
    The list of employees or staff members
    """
    return render_to_response(template_name,
                              {'staff': StaffMember.objects.active()},
                              context_instance=RequestContext(request))


def userinfo_json(request, user_id):
    """
    Return the user's information in a json object
    """
    data = {'first_name': '',
            'last_name': '',
            'email': '',
            'slug': '',
            'bio': '',
            'phone': '',
            'is_active': False}

    try:

        member = StaffMember.objects.get(pk=user_id)