summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2015-02-26 21:42:01 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-27 07:36:08 +0000
commitaecc63de17cd0e448b8139672d43798dc8fa7f18 (patch)
tree186c947dddaf54ca79db00ee7b5649e50e6cc3ee /bitbake
parent8c476c27bb532b33004cba363bdf5794bba3a6f7 (diff)
downloadpoky-aecc63de17cd0e448b8139672d43798dc8fa7f18.tar.gz
bitbake: toaster: config var layout fixes
Block duplicates of custom variables regardless of case, fix spacing of delete icon, no extra error msg on blank DISTRO name [YOCTO #7359] (Bitbake rev: baec2940c2b4ec792cacad5cc8d8056d9162919b) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/static/css/default.css2
-rw-r--r--bitbake/lib/toaster/toastergui/templates/projectconf.html22
2 files changed, 12 insertions, 12 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/css/default.css b/bitbake/lib/toaster/toastergui/static/css/default.css
index 0cf0f1991c..dc1b92a225 100644
--- a/bitbake/lib/toaster/toastergui/static/css/default.css
+++ b/bitbake/lib/toaster/toastergui/static/css/default.css
@@ -151,7 +151,7 @@ select { width: auto; }
151#dependencies_modal_form { margin-bottom: 0px; } 151#dependencies_modal_form { margin-bottom: 0px; }
152 152
153/* Configuration styles */ 153/* Configuration styles */
154.icon-trash { color: #B94A48; font-size: 16px; padding-left: 2px; } 154.icon-trash { color: #B94A48; font-size: 16px; padding-left: 5px; }
155.icon-trash:hover { color: #943A38; text-decoration: none; cursor: pointer; } 155.icon-trash:hover { color: #943A38; text-decoration: none; cursor: pointer; }
156.icon-pencil, .icon-download-alt, .icon-refresh, .icon-star-empty, .icon-star, .icon-tasks { font-size: 16px; color: #0088CC; padding-left: 2px; } 156.icon-pencil, .icon-download-alt, .icon-refresh, .icon-star-empty, .icon-star, .icon-tasks { font-size: 16px; color: #0088CC; padding-left: 2px; }
157.icon-pencil:hover, .icon-download-alt:hover, .icon-refresh:hover, .icon-star-empty:hover, .icon-star:hover, .icon-tasks:hover { color: #005580; text-decoration: none; cursor: pointer; } 157.icon-pencil:hover, .icon-download-alt:hover, .icon-refresh:hover, .icon-star-empty:hover, .icon-star:hover, .icon-tasks:hover { color: #005580; text-decoration: none; cursor: pointer; }
diff --git a/bitbake/lib/toaster/toastergui/templates/projectconf.html b/bitbake/lib/toaster/toastergui/templates/projectconf.html
index dde8a115c2..774e9ea417 100644
--- a/bitbake/lib/toaster/toastergui/templates/projectconf.html
+++ b/bitbake/lib/toaster/toastergui/templates/projectconf.html
@@ -23,12 +23,12 @@
23 <i class="icon-pencil" id="change-distro-icon"></i> 23 <i class="icon-pencil" id="change-distro-icon"></i>
24 <form id="change-distro-form" style="display:none;"> 24 <form id="change-distro-form" style="display:none;">
25 <div class="input-append"> 25 <div class="input-append">
26 <span id="edit-distro-name-div" class="control-group"> 26 <span id="edit-distro-name-div" class="control-group">
27 <input type="text" id="new-distro" value="{{distro}}"> 27 <input type="text" id="new-distro" value="{{distro}}">
28 <button id="apply-change-distro" class="btn" type="button">Save</button> 28 <button id="apply-change-distro" class="btn" type="button">Save</button>
29 <button id="cancel-change-distro" type="button" class="btn btn-link">Cancel</button> 29 <button id="cancel-change-distro" type="button" class="btn btn-link">Cancel</button>
30 </span>
30 <span class="help-block error" id="distro-error-message"></span> 31 <span class="help-block error" id="distro-error-message"></span>
31 </span>
32 </div> 32 </div>
33 </form> 33 </form>
34 </dd> 34 </dd>
@@ -52,7 +52,7 @@
52 <i class="icon-question-sign get-help" title="Specifies additional packages to install into an image. If your build creates more than one image, the packages will be installed in <strong>all of them</strong> <br /><a href='http://www.yoctoproject.org/docs/1.6.1/ref-manual/ref-manual.html#var-IMAGE_INSTALL' target='_blank'>Read more in the manual</a>"></i> 52 <i class="icon-question-sign get-help" title="Specifies additional packages to install into an image. If your build creates more than one image, the packages will be installed in <strong>all of them</strong> <br /><a href='http://www.yoctoproject.org/docs/1.6.1/ref-manual/ref-manual.html#var-IMAGE_INSTALL' target='_blank'>Read more in the manual</a>"></i>
53 </dt> 53 </dt>
54 <dd class="lead"> 54 <dd class="lead">
55 <span id="image_install">{% if image_install_append %}{{image_install_append}}{%else%}<i>Not set</i>{%endif%}</span> 55 <span id="image_install"{% if image_install_append %}{%else%} class="muted"{%endif%}>{% if image_install_append %}{{image_install_append}}{%else%}Not set{%endif%}</span>
56 <i class="icon-pencil" id="change-image_install-icon"></i> 56 <i class="icon-pencil" id="change-image_install-icon"></i>
57 <i class="icon-trash" id="delete-image_install-icon" {% if image_install_append %}{%else%}style="display:none;"{%endif%}></i> 57 <i class="icon-trash" id="delete-image_install-icon" {% if image_install_append %}{%else%}style="display:none;"{%endif%}></i>
58 <form id="change-image_install-form" style="display:none;"> 58 <form id="change-image_install-form" style="display:none;">
@@ -198,14 +198,14 @@
198 198
199 var existing_configvars = document.getElementsByClassName('js-config-var-name'); 199 var existing_configvars = document.getElementsByClassName('js-config-var-name');
200 for (var i = 0, length = existing_configvars.length; i < length; i++) { 200 for (var i = 0, length = existing_configvars.length; i < length; i++) {
201 if (existing_configvars[i].innerHTML == variable) { 201 if (existing_configvars[i].innerHTML.toUpperCase() == variable.toUpperCase()) {
202 error_msg = "This variable is already set in this page, edit its value instead"; 202 error_msg = "This variable is already set in this page, edit its value instead";
203 } 203 }
204 } 204 }
205 205
206 var blacklist_configvars = document.getElementsByClassName('js-config-blacklist-name'); 206 var blacklist_configvars = document.getElementsByClassName('js-config-blacklist-name');
207 for (var i = 0, length = blacklist_configvars.length; i < length; i++) { 207 for (var i = 0, length = blacklist_configvars.length; i < length; i++) {
208 if (blacklist_configvars[i].value == variable.toUpperCase()) { 208 if (blacklist_configvars[i].value.toUpperCase() == variable.toUpperCase()) {
209 error_msg = "You cannot edit this variable in Toaster because it is set by the build servers"; 209 error_msg = "You cannot edit this variable in Toaster because it is set by the build servers";
210 } 210 }
211 } 211 }
@@ -257,7 +257,7 @@
257 if (has_spaces) { 257 if (has_spaces) {
258 error_msg = "A valid distro name cannot include spaces"; 258 error_msg = "A valid distro name cannot include spaces";
259 } else if (0 == value.length) { 259 } else if (0 == value.length) {
260 error_msg = "A valid distro name cannot be empty"; 260 error_msg = " ";
261 } 261 }
262 262
263 if ("" != error_msg) { 263 if ("" != error_msg) {
@@ -609,7 +609,7 @@
609 var name = $('#new-image_install').val(); 609 var name = $('#new-image_install').val();
610 postEditAjaxRequest({"configvarChange" : 'IMAGE_INSTALL_append:'+name}); 610 postEditAjaxRequest({"configvarChange" : 'IMAGE_INSTALL_append:'+name});
611 $('#image_install').text(name); 611 $('#image_install').text(name);
612 $('#image_install').parent().removeClass('muted'); 612 $('#image_install').removeClass('muted');
613 $("#change-image_install-form").slideUp(function () { 613 $("#change-image_install-form").slideUp(function () {
614 $('#image_install, #change-image_install-icon').show(); 614 $('#image_install, #change-image_install-icon').show();
615 if (name.length > -1) { 615 if (name.length > -1) {
@@ -624,7 +624,7 @@
624 $(this).tooltip('hide'); 624 $(this).tooltip('hide');
625 postEditAjaxRequest({"configvarChange" : 'IMAGE_INSTALL_append:'+''}); 625 postEditAjaxRequest({"configvarChange" : 'IMAGE_INSTALL_append:'+''});
626 $('#image_install').parent().fadeOut(1000, function(){ 626 $('#image_install').parent().fadeOut(1000, function(){
627 $('#image_install').parent().addClass('muted'); 627 $('#image_install').addClass('muted');
628 $('#image_install').text('Not set'); 628 $('#image_install').text('Not set');
629 $('#delete-image_install-icon').hide(); 629 $('#delete-image_install-icon').hide();
630 $('#image_install').parent().fadeIn(1000); 630 $('#image_install').parent().fadeIn(1000);