summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2015-03-13 17:10:01 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-21 00:00:02 +0000
commit23c83c6a8af12ad1c008372685f7cd9f87023145 (patch)
treeb86ad6a33438ff128188cd22b8844d1e9b1e06a5
parent484797744dbe421dfeea52e9428ba63b44f1ed88 (diff)
downloadbitbake-23c83c6a8af12ad1c008372685f7cd9f87023145.tar.gz
toaster: display machine and project values in input fields
Explicitly preset the machine and project values in their respective input fields. [YOCTO #7170] Signed-off-by: David Reyna <David.Reyna@windriver.com>
-rw-r--r--lib/toaster/toastergui/templates/project.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/toaster/toastergui/templates/project.html b/lib/toaster/toastergui/templates/project.html
index 35147c0f1..0f538b9ff 100644
--- a/lib/toaster/toastergui/templates/project.html
+++ b/lib/toaster/toastergui/templates/project.html
@@ -355,7 +355,7 @@ vim: expandtab tabstop=2
You cannot really compare the builds for the new machine with the previous ones.
</div>
<form ng-submit="editProjectSettings('#select-machine')" class="input-append">
- <input type="text" id="machine" autocomplete="off" ng-model="machineName" typeahead="m.name for m in getAutocompleteSuggestions('machines', $viewValue)" typeahead-template-url="suggestion_details" />
+ <input type="text" id="machine" autocomplete="off" ng-model="machineName" value="{[machine.name]}" typeahead="m.name for m in getAutocompleteSuggestions('machines', $viewValue)" typeahead-template-url="suggestion_details" />
<input type="submit" id="apply-change-machine" class="btn" type="button" ng-disabled="machineName == machine.name || machineName.length == 0" value="Save"></input>
<input type="reset" id="cancel-machine" class="btn btn-link" ng-click="toggle('#select-machine')" value="Cancel"></input>
{% csrf_token %}
@@ -391,7 +391,7 @@ vim: expandtab tabstop=2
</p>
<div id="change-project-name" style="display:none;">
<form ng-submit="editProjectSettings('#change-project-name')" class="input-append">
- <input type="text" class="input-xlarge" id="type-project-name" ng-model="projectName">
+ <input type="text" class="input-xlarge" id="type-project-name" ng-model="projectName" value="{[project.name]}">
<input type="submit" class="btn" value="Save" ng-disabled="project.name == projectName"/>
<input type="reset" class="btn btn-link" value="Cancel" ng-click="toggle('#change-project-name')">
</form>