aboutsummaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/templates/importlayer.html
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-12-09 16:52:50 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-12 20:44:47 +0000
commit28114be42174095b812a93d4b5a0e01e953d74f8 (patch)
treef4e4e630c62014da71076711ad18cf78fd3431cd /lib/toaster/toastergui/templates/importlayer.html
parenta94ae3ad0cb07a52004143c6f86f371b9e330e9f (diff)
downloadbitbake-28114be42174095b812a93d4b5a0e01e953d74f8.tar.gz
toaster: importlayer Add git revision typeahead to that input field
Add the front end mechanism to load the typeahead for the git revision field on importing a layer. Also fix one indentation issue and update the js test. Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/toastergui/templates/importlayer.html')
-rw-r--r--lib/toaster/toastergui/templates/importlayer.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/toaster/toastergui/templates/importlayer.html b/lib/toaster/toastergui/templates/importlayer.html
index bd507b567..afbeb94d4 100644
--- a/lib/toaster/toastergui/templates/importlayer.html
+++ b/lib/toaster/toastergui/templates/importlayer.html
@@ -14,6 +14,7 @@
$(document).ready(function (){
var ctx = {
xhrLayerUrl : "{% url 'xhr_layer' project.id %}",
+ xhrGitRevTypeAheadUrl : "{% url 'xhr_gitrevtypeahead' %}",
};
try {
@@ -112,8 +113,10 @@
Git revision
<span class="glyphicon glyphicon-question-sign get-help" title="You can provide a Git branch, a tag or a commit SHA as the revision"></span>
</label>
- <input type="text" class="form-control" id="layer-git-ref" required>
+ <span style="display: block">
+ <input type="text" class="form-control" id="layer-git-ref" autocomplete="off" data-minLength="1" data-autocomplete="off" data-provide="typeahead" required>
<span class="help-inline" style="display:none;" id="invalid-layer-revision-hint"></span>
+ </span>
</div>
</fieldset>