diff options
author | Belal, Awais <Awais_Belal@mentor.com> | 2017-04-05 00:12:48 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-10 23:00:32 +0100 |
commit | f45a5a5de8ee8e7b014a780aa45b37774a4b06a1 (patch) | |
tree | 10f8e1950194953d1663547cba539ecdc05ff0b5 /bitbake/lib/toaster/toastergui/templates/project.html | |
parent | eb7430e5b9cb51ad593379ddf9aa1dca38d6d34f (diff) | |
download | poky-f45a5a5de8ee8e7b014a780aa45b37774a4b06a1.tar.gz |
bitbake: toaster: toastergui: implement machine name validation
Valid machine names cannot include spaces anywhere
in the name and doing so will result in a build failure.
This implements a mechanism to alert the user against
such a misconfiguration and does not allow input of
such machine names.
[YOCTO #8721]
(Bitbake rev: 6fb642935a3787659aa316ca906025d2d87964cf)
Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/project.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/project.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/project.html b/bitbake/lib/toaster/toastergui/templates/project.html index 5abe241305..ab7e665b64 100644 --- a/bitbake/lib/toaster/toastergui/templates/project.html +++ b/bitbake/lib/toaster/toastergui/templates/project.html | |||
@@ -67,11 +67,12 @@ | |||
67 | 67 | ||
68 | <form id="select-machine-form" style="display:none;" class="form-inline"> | 68 | <form id="select-machine-form" style="display:none;" class="form-inline"> |
69 | <span class="help-block">Machine suggestions come from the list of layers added to your project. If you don't see the machine you are looking for, <a href="{% url 'projectmachines' project.id %}">check the full list of machines</a></span> | 69 | <span class="help-block">Machine suggestions come from the list of layers added to your project. If you don't see the machine you are looking for, <a href="{% url 'projectmachines' project.id %}">check the full list of machines</a></span> |
70 | <div class="form-group"> | 70 | <div class="form-group" id="machine-input-form"> |
71 | <input class="form-control" id="machine-change-input" autocomplete="off" value="" data-provide="typeahead" data-minlength="1" data-autocomplete="off" type="text"> | 71 | <input class="form-control" id="machine-change-input" autocomplete="off" value="" data-provide="typeahead" data-minlength="1" data-autocomplete="off" type="text"> |
72 | </div> | 72 | </div> |
73 | <button id="machine-change-btn" class="btn btn-default" type="button">Save</button> | 73 | <button id="machine-change-btn" class="btn btn-default" type="button">Save</button> |
74 | <a href="#" id="cancel-machine-change" class="btn btn-link">Cancel</a> | 74 | <a href="#" id="cancel-machine-change" class="btn btn-link">Cancel</a> |
75 | <span class="help-block text-danger" id="invalid-machine-name-help" style="display:none">A valid machine name cannot include spaces.</span> | ||
75 | <p class="form-link"><a href="{% url 'projectmachines' project.id %}">View compatible machines</a></p> | 76 | <p class="form-link"><a href="{% url 'projectmachines' project.id %}">View compatible machines</a></p> |
76 | </form> | 77 | </form> |
77 | </div> | 78 | </div> |