Added initial version of tabs for services
This commit is contained in:
@@ -32,7 +32,7 @@ class OverviewTab(tabs.Tab):
|
||||
return {"domain_controller": dc}
|
||||
|
||||
|
||||
class WinServicesTab(tabs.TabGroup):
|
||||
class WinServicesTabs(tabs.TabGroup):
|
||||
slug = "services_details"
|
||||
tabs = (OverviewTab,)
|
||||
sticky = True
|
||||
|
@@ -20,7 +20,7 @@
|
||||
|
||||
from django.conf.urls.defaults import patterns, url
|
||||
|
||||
from .views import IndexView, WinServices, CreateWinDCView
|
||||
from .views import IndexView, WinServices, CreateWinDCView, DetailServiceView
|
||||
from .views import Wizard
|
||||
from .forms import WizardFormServiceType, WizardFormConfiguration
|
||||
|
||||
@@ -34,6 +34,6 @@ urlpatterns = patterns(VIEW_MOD,
|
||||
url(r'^create_dc$', CreateWinDCView.as_view(), name='create_dc'),
|
||||
url(r'^(?P<data_center_id>[^/]+)/$', WinServices.as_view(),
|
||||
name='services'),
|
||||
url(r'^(?P<service_id>[^/]+)/$', WinServices.as_view(),
|
||||
url(r'^(?P<service_id>[^/]+)/$', DetailServiceView.as_view(),
|
||||
name='service_details')
|
||||
)
|
||||
|
@@ -43,6 +43,7 @@ from tabula.windc import api
|
||||
|
||||
from .tables import WinDCTable, WinServicesTable
|
||||
from .workflows import CreateWinDC
|
||||
from .tabs import WinServicesTabs
|
||||
from .forms import (WizardFormServiceType, WizardFormConfiguration,
|
||||
WizardFormADConfiguration, WizardFormIISConfiguration)
|
||||
|
||||
@@ -169,6 +170,11 @@ class WinServices(tables.DataTableView):
|
||||
return services
|
||||
|
||||
|
||||
class DetailServiceView(tabs.TabView):
|
||||
tab_group_class = WinServicesTabs
|
||||
template_name = '_services.html'
|
||||
|
||||
|
||||
class CreateWinDCView(workflows.WorkflowView):
|
||||
workflow_class = CreateWinDC
|
||||
template_name = 'create_dc.html'
|
||||
|
Reference in New Issue
Block a user