# Case Conductor is a Test Case Management system.
# Copyright (C) 2011-2012 Mozilla
#
# This file is part of Case Conductor.
#
# Case Conductor is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Case Conductor is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Case Conductor.  If not, see <http://www.gnu.org/licenses/>.
"""
Case Conductor root URLconf.

"""
from django.conf.urls.defaults import patterns, url, include
from django.conf.urls.static import static
from django.conf import settings

from django.contrib import admin

admin.autodiscover()


# @@@ for wireframes
from django.views.generic.simple import direct_to_template
from django.contrib.auth.decorators import login_required



urlpatterns = patterns(
    "",

    # users ------------------------------------------------------------------
    url("^users/", include("cc.users.urls")),

    # testcase (@@@ wireframe) -----------------------------------------------
    # add
    url("^manage/case/add/$",
        direct_to_template,
        {"template": "manage/product/testcase/add_case.html"},
        name="manage_testcase_add"),

    # add bulk
    url("^manage/case/add/bulk/$",
        direct_to_template,
        {"template": "manage/product/testcase/form/add_case_bulk.html"},
        name="manage_testcase_add_bulk"),

    # edit
    url("^manage/caseid/$",
        direct_to_template,
        {"template": "manage/product/testcase/form/edit_case.html"},
        name="manage_testcase_edit"),

    # manage
    url("^manage/cases/$",
        login_required(direct_to_template),
        {"template": "manage/product/testcase/cases.html"},
        name="manage_testcases"),

    # admin ------------------------------------------------------------------
    url("^admin/", include(admin.site.urls)),
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

@@ -1849,21 +1849,16 @@
 estcase/
-form/
 edit_cas

fix case edit url/template