From 73367c2ca82143c618a22f9faaa101761f192397 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Tue, 4 Aug 2015 22:46:33 +0300 Subject: bitbake: toastergui: Add typeaheads layers, machines, projects, recipes Implementation of typeahead widgets for layers machines and recipes typeahead. [YOCTO #7152] (Bitbake rev: 913d01758564db2f5fae4451bf0fdca38a1b3d61) Signed-off-by: Michael Wood Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/urls.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bitbake/lib/toaster/toastergui/urls.py') diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py index beb43038a1..b44c42f2e3 100644 --- a/bitbake/lib/toaster/toastergui/urls.py +++ b/bitbake/lib/toaster/toastergui/urls.py @@ -21,6 +21,7 @@ from django.views.generic import RedirectView, TemplateView from django.http import HttpResponseBadRequest from toastergui import tables +from toastergui import typeaheads urlpatterns = patterns('toastergui.views', # landing page @@ -127,6 +128,16 @@ urlpatterns = patterns('toastergui.views', url(r'^xhr_datatypeahead/(?P\d+)$', 'xhr_datatypeahead', name='xhr_datatypeahead'), url(r'^xhr_configvaredit/(?P\d+)$', 'xhr_configvaredit', name='xhr_configvaredit'), + # typeahead api end points + url(r'^xhr_typeahead/(?P\d+)/layers$', + typeaheads.LayersTypeAhead.as_view(), name='xhr_layerstypeahead'), + url(r'^xhr_typeahead/(?P\d+)/machines$', + typeaheads.MachinesTypeAhead.as_view(), name='xhr_machinestypeahead'), + url(r'^xhr_typeahead/(?P\d+)/recipes$', + typeaheads.RecipesTypeAhead.as_view(), name='xhr_recipestypeahead'), + url(r'^xhr_typeahead/projects$', + typeaheads.ProjectsTypeAhead.as_view(), name='xhr_projectstypeahead'), + url(r'^xhr_importlayer/$', 'xhr_importlayer', name='xhr_importlayer'), url(r'^xhr_updatelayer/$', 'xhr_updatelayer', name='xhr_updatelayer'), -- cgit v1.2.3-54-g00ecf