From 4f3664705cf17160f0112c9bad3e6800267fed94 Mon Sep 17 00:00:00 2001 From: David Reyna Date: Thu, 26 Feb 2015 19:46:23 -0800 Subject: bitbake: toaster: hide special code for core vars not present, disable add button Hide the special config variable management sections when the respective variables are not present. Disable the variable add button after a variable is added so that blank values cannot be added, and also when a variable name managed in the project detail page (e.g. BBLAYERS and MACHINE) is entered. [YOCTO #7246] [YOCTO #7371] (Bitbake rev: 1f9aaa7747351f7b0063f80c56cf7fa2c9cc3cf9) Signed-off-by: David Reyna Signed-off-by: Richard Purdie --- .../toaster/toastergui/templates/projectconf.html | 81 +++++++++++++++++++--- bitbake/lib/toaster/toastergui/views.py | 26 +++++-- 2 files changed, 92 insertions(+), 15 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/templates/projectconf.html b/bitbake/lib/toaster/toastergui/templates/projectconf.html index 774e9ea417..c994f31bbc 100644 --- a/bitbake/lib/toaster/toastergui/templates/projectconf.html +++ b/bitbake/lib/toaster/toastergui/templates/projectconf.html @@ -14,6 +14,7 @@
+ {% if distro_defined %}
DISTRO @@ -32,6 +33,9 @@
+ {% endif %} + + {% if fstypes_defined %}
IMAGE_FSTYPES @@ -47,6 +51,9 @@ + {% endif %} + + {% if image_install_append_defined %}
IMAGE_INSTALL_append @@ -66,6 +73,9 @@ + {% endif %} + + {% if package_classes_defined %}
PACKAGE_CLASSES @@ -99,6 +109,9 @@ + {% endif %} + + {% if sdk_machine_defined %}
SDKMACHINE @@ -121,6 +134,7 @@ + {% endif %} @@ -137,7 +151,7 @@ {% endfor %} {% for b in vars_managed %} - + {% endfor %}
@@ -187,6 +201,9 @@