from django.conf.urls import url

from ansible.forms import AnsibleForm1, AnsibleForm2
from ansible.views import (
    PlaybookWizard, PlaybookListView, PlaybookDetailView,
    PlaybookFileCreateView, PlaybookFileEditView, PlaybookFileView
)


urlpatterns = [
    url(
        r'^create/$',
        PlaybookWizard.as_view([
            AnsibleForm1,
            AnsibleForm2
        ]),
        name='playbook-create'
    ),
    url(
        r'^$',
        PlaybookListView.as_view(),
        name='playbook-list'
    ),
    url(
        r'^(?P<pk>[-\w]+)/$',
        PlaybookDetailView.as_view(),
        name='playbook-detail'
    ),
    url(
        r'^(?P<pk>[-\w]+)/new/$',
        PlaybookFileCreateView.as_view(),
        name='playbook-file-create'
    ),
    url(
        r'^(?P<pk>[-\w]+)/files/(?P<slug>[\w-]+)$',
        PlaybookFileView.as_view(),
        name='playbook-file-detail'
    ),
    url(
        r'^(?P<pk>[-\w]+)/files/(?P<slug>[\w-]+)/edit$',
        PlaybookFileEditView.as_view(),
        name='playbook-file-edit'
    ),
]

@@ -120,22 +120,26 @@
 Playbook
-Wizard
+DetailView
 , Playbo
@@ -156,28 +156,46 @@
 , PlaybookDe
-ta
+leteView, PlaybookF
 il
+e
 View,%0A    Pl
@@ -246,24 +246,22 @@
 Playbook
-FileView
+Wizard
 %0A)%0A%0A%0Aurl
@@ -526,32 +526,150 @@
 ok-list'%0A    ),%0A
+%09url(%0A        r'%5E(?P%3Cpk%3E%5B-%5Cw%5D+)/delete$',%0A        PlaybookDeleteView.as_view(),%0A        name='playbook-delete'%0A    ),%0A
     url(%0A       

Add URL for DeleteView