# Path: staff/models.py
# class StaffMember(BaseStaffMember):
#     pass


from django.contrib import admin
from django.contrib.auth.models import User
from django.contrib.auth.admin import UserAdmin
from django.forms.models import inlineformset_factory
from staff.models import StaffMember
"""
Admin classes for the StaffMember model
"""

# from staff.forms import StaffMemberForm

# ADMIN_TEMPLATE = "admin/edit_inline/staff.html"


class StaffMemberAdmin(admin.StackedInline):
    """
    Admin form for a StaffMember that won't appear if the associated User
    isn't actually a staff member.
    """
    # form = StaffMemberForm
    # template = ADMIN_TEMPLATE
    fieldsets = (
        ('Personal Info', {'fields': ('title', 'bio', 'photo', 'website', 'phone',)}),
        ('Social Media', {'fields': ('twitter', 'facebook', 'google_plus')}),
    )

# Path: staff/models.py
# class StaffMember(BaseStaffMember):
#     pass


# Path: staff/admin.py
from django.contrib import admin
from django.contrib.auth.models import User
from django.contrib.auth.admin import UserAdmin
from django.forms.models import inlineformset_factory
from staff.models import StaffMember

"""
Admin classes for the StaffMember model
"""

# from staff.forms import StaffMemberForm

# ADMIN_TEMPLATE = "admin/edit_inline/staff.html"


class StaffMemberAdmin(admin.StackedInline):
    """
    Admin form for a StaffMember that won't appear if the associated User
    isn't actually a staff member.
    """
    # form = StaffMemberForm
    # template = ADMIN_TEMPLATE
    fieldsets = (
        ('Personal Info', {'fields': ('title', 'bio', 'photo', 'website', 'phone',)}),
        ('Social Media', {'fields': ('twitter', 'facebook', 'google_plus')}),
    )

    model = StaffMember