# Path: realestate/admin/views.py
# MESSAGE_TAGS = {
#     messages.ERROR: 'danger',
# }
#     TEMPLATES = {
#         "listingdata": "dashboard/create-listing-step1.html",
#         "images": "dashboard/create-listing-step2.html",
#         "attributes": "dashboard/create-listing-step3.html",
#     }
# class Dashboard(LoginRequiredMixin, StaffuserRequiredMixin, TemplateView):
# class CreateListingWizard(LoginRequiredMixin, StaffuserRequiredMixin, NamedUrlSessionWizardView):
# class Listings(LoginRequiredMixin, StaffuserRequiredMixin, ListView):
# class Agents(LoginRequiredMixin, StaffuserRequiredMixin, OrderableListMixin, ListView):
# class CreateAgent(LoginRequiredMixin, StaffuserRequiredMixin, CreateView):
# class UpdateAgent(LoginRequiredMixin, StaffuserRequiredMixin, UpdateView):
# class Contacts(LoginRequiredMixin, StaffuserRequiredMixin, OrderableListMixin, ListView):
# class CreateContact(LoginRequiredMixin, StaffuserRequiredMixin, CreateView):
# class UpdateContact(LoginRequiredMixin, StaffuserRequiredMixin, UpdateView):
# class Locations(LoginRequiredMixin, StaffuserRequiredMixin, OrderableListMixin, ListView):
# class CreateLocation(LoginRequiredMixin, StaffuserRequiredMixin, CreateView):
# class UpdateLocation(LoginRequiredMixin, StaffuserRequiredMixin, UpdateView):
# class Users(LoginRequiredMixin, SuperuserRequiredMixin, OrderableListMixin, ListView):
# class CreateUser(LoginRequiredMixin, SuperuserRequiredMixin, CreateView):
# class UpdateUser(LoginRequiredMixin, SuperuserRequiredMixin, UpdateView):
# class Deals(LoginRequiredMixin, StaffuserRequiredMixin, OrderableListMixin, ListView):
# class CreateDeal(LoginRequiredMixin, SuperuserRequiredMixin, CreateView):
# class UpdateDeal(LoginRequiredMixin, SuperuserRequiredMixin, UpdateView):
# class SetUserPassword(LoginRequiredMixin, SuperuserRequiredMixin, FormView):
# class Settings(LoginRequiredMixin, SuperuserRequiredMixin, FormView):
# class ApiKeys(LoginRequiredMixin, StaffuserRequiredMixin, OrderableListMixin, ListView):
# class CreateApiKey(LoginRequiredMixin, SuperuserRequiredMixin, CreateView):
# class DeleteApiKey(LoginRequiredMixin, SuperuserRequiredMixin, DeleteView):
#     def get_template_names(self):
#     def done(self, form_list, **kwargs):
#     def get_success_url(self):
#     def form_valid(self, form):
#     def form_valid(self, form):


from django.conf.urls import patterns, url
from django.contrib.auth.views import password_change
from realestate.admin import views as admin_views

urlpatterns = patterns(
    'realestate.admin.views',
    url('^$', admin_views.Dashboard.as_view(), name='dashboard'),

    url('^listing/', admin_views.Listings.as_view(), name='admin-list-listing'),
    url('^new-listing/(?P<step>.+)$', admin_views.CreateListingWizard.as_view(url_name="add-listing-wizard"),
        name='add-listing-wizard'),
    # url('^update-listing/(?P<pk>\d+)$', admin_views.UpdateListing.as_view(), name='update-listing'),
    url('^agents/', admin_views.Agents.as_view(), name='admin-list-agents'),
    url('^new-agent/', admin_views.CreateAgent.as_view(), name='add-agent'),
    url('^update-agent/(?P<pk>\d+)$', admin_views.UpdateAgent.as_view(), name='update-agent'),
    url('^contacts/', admin_views.Contacts.as_view(), name='admin-list-contacts'),
    url('^new-contact/', admin_views.CreateContact.as_view(), name='add-contact'),
    url('^update-contact/(?P<pk>\d+)$', admin_views.UpdateContact.as_view(), name='update-contact'),
    url('^locations/', admin_views.Locations.as_view(), name='admin-list-sectors'),
    url('^new-location/', admin_views.CreateLocation.as_view(), name='add-sector'),
    url('^update-location/(?P<pk>\d+)$', admin_views.UpdateLocation.as_view(), name='update-sector'),
    url('^users/', admin_views.Users.as_view(), name='admin-list-users'),
    url('^new-user/', admin_views.CreateUser.as_view(), name='add-user'),

# Path: realestate/admin/views.py
# MESSAGE_TAGS = {
#     messages.ERROR: 'danger',
# }
#     TEMPLATES = {
#         "listingdata": "dashboard/create-listing-step1.html",
#         "images": "dashboard/create-listing-step2.html",
#         "attributes": "dashboard/create-listing-step3.html",
#     }
# class Dashboard(LoginRequiredMixin, StaffuserRequiredMixin, TemplateView):
# class CreateListingWizard(LoginRequiredMixin, StaffuserRequiredMixin, NamedUrlSessionWizardView):
# class Listings(LoginRequiredMixin, StaffuserRequiredMixin, ListView):
# class Agents(LoginRequiredMixin, StaffuserRequiredMixin, OrderableListMixin, ListView):
# class CreateAgent(LoginRequiredMixin, StaffuserRequiredMixin, CreateView):
# class UpdateAgent(LoginRequiredMixin, StaffuserRequiredMixin, UpdateView):
# class Contacts(LoginRequiredMixin, StaffuserRequiredMixin, OrderableListMixin, ListView):
# class CreateContact(LoginRequiredMixin, StaffuserRequiredMixin, CreateView):
# class UpdateContact(LoginRequiredMixin, StaffuserRequiredMixin, UpdateView):
# class Locations(LoginRequiredMixin, StaffuserRequiredMixin, OrderableListMixin, ListView):
# class CreateLocation(LoginRequiredMixin, StaffuserRequiredMixin, CreateView):
# class UpdateLocation(LoginRequiredMixin, StaffuserRequiredMixin, UpdateView):
# class Users(LoginRequiredMixin, SuperuserRequiredMixin, OrderableListMixin, ListView):
# class CreateUser(LoginRequiredMixin, SuperuserRequiredMixin, CreateView):
# class UpdateUser(LoginRequiredMixin, SuperuserRequiredMixin, UpdateView):
# class Deals(LoginRequiredMixin, StaffuserRequiredMixin, OrderableListMixin, ListView):
# class CreateDeal(LoginRequiredMixin, SuperuserRequiredMixin, CreateView):
# class UpdateDeal(LoginRequiredMixin, SuperuserRequiredMixin, UpdateView):
# class SetUserPassword(LoginRequiredMixin, SuperuserRequiredMixin, FormView):
# class Settings(LoginRequiredMixin, SuperuserRequiredMixin, FormView):
# class ApiKeys(LoginRequiredMixin, StaffuserRequiredMixin, OrderableListMixin, ListView):
# class CreateApiKey(LoginRequiredMixin, SuperuserRequiredMixin, CreateView):
# class DeleteApiKey(LoginRequiredMixin, SuperuserRequiredMixin, DeleteView):
#     def get_template_names(self):
#     def done(self, form_list, **kwargs):
#     def get_success_url(self):
#     def form_valid(self, form):
#     def form_valid(self, form):


# Path: realestate/admin/urls.py
from django.conf.urls import patterns, url
from django.contrib.auth.views import password_change
from realestate.admin import views as admin_views


urlpatterns = patterns(
    'realestate.admin.views',
    url('^$', admin_views.Dashboard.as_view(), name='dashboard'),

    url('^listing/', admin_views.Listings.as_view(), name='admin-list-listing'),
    url('^new-listing/(?P<step>.+)$', admin_views.CreateListingWizard.as_view(url_name="add-listing-wizard"),
        name='add-listing-wizard'),
    # url('^update-listing/(?P<pk>\d+)$', admin_views.UpdateListing.as_view(), name='update-listing'),
    url('^agents/', admin_views.Agents.as_view(), name='admin-list-agents'),
    url('^new-agent/', admin_views.CreateAgent.as_view(), name='add-agent'),
    url('^update-agent/(?P<pk>\d+)$', admin_views.UpdateAgent.as_view(), name='update-agent'),
    url('^contacts/', admin_views.Contacts.as_view(), name='admin-list-contacts'),
    url('^new-contact/', admin_views.CreateContact.as_view(), name='add-contact'),
    url('^update-contact/(?P<pk>\d+)$', admin_views.UpdateContact.as_view(), name='update-contact'),
    url('^locations/', admin_views.Locations.as_view(), name='admin-list-sectors'),
    url('^new-location/', admin_views.CreateLocation.as_view(), name='add-sector'),
    url('^update-location/(?P<pk>\d+)$', admin_views.UpdateLocation.as_view(), name='update-sector'),
    url('^users/', admin_views.Users.as_view(), name='admin-list-users'),
    url('^new-user/', admin_views.CreateUser.as_view(), name='add-user'),

    url('^update-user/(?P<pk>\d+)$', admin_views.UpdateUser.as_view(), name='update-user'),