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