From aff29d2cd837df90a2897b9b75753e4af30f132e Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Tue, 4 Aug 2015 22:46:34 +0300 Subject: bitbake: toastergui: Switch to using the new toaster typeahead widget Switch the existing typeahead inputs to use the new typeahead widget. This means we have a defined mechanism and end point for typeaheads which meets the design specification. (Bitbake rev: 31a8ae7909347f7b6edde5bbdf02b86dc1b32ed0) Signed-off-by: Michael Wood Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/base.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/templates') diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index 65367e20dd..d75bf16bf2 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html @@ -32,14 +32,16 @@ jsUrl : "{% static 'js/' %}", htmlUrl : "{% static 'html/' %}", projectsUrl : "{% url 'all-projects' %}", + projectsTypeAheadUrl: {% url 'xhr_projectstypeahead' as prjurl%}{{prjurl|json}}, {% if project.id %} projectId : {{project.id}}, projectPageUrl : {% url 'project' project.id as purl%}{{purl|json}}, projectName : {{project.name|json}}, - projectTargetsUrl: {% url 'projectavailabletargets' project.id as paturl%}{{paturl|json}}, + recipesTypeAheadUrl: {% url 'xhr_recipestypeahead' project.id as paturl%}{{paturl|json}}, + layersTypeAheadUrl: {% url 'xhr_layerstypeahead' project.id as paturl%}{{paturl|json}}, + machinesTypeAheadUrl: {% url 'xhr_machinestypeahead' project.id as paturl%}{{paturl|json}}, + projectBuildsUrl: {% url 'projectbuilds' project.id as pburl %}{{pburl|json}}, - projectLayersUrl: {% url 'projectlayers' project.id as plurl %}{{plurl|json}}, - projectMachinesUrl: {% url 'projectmachines' project.id as pmurl %}{{pmurl|json}}, projectId : {{project.id}}, {% else %} projectId : undefined, -- cgit v1.2.3-54-g00ecf