diff options
Diffstat (limited to 'WebHob_1.5/b3/project-configuration.html')
-rw-r--r-- | WebHob_1.5/b3/project-configuration.html | 49 |
1 files changed, 46 insertions, 3 deletions
diff --git a/WebHob_1.5/b3/project-configuration.html b/WebHob_1.5/b3/project-configuration.html index f4b82f9..063ee39 100644 --- a/WebHob_1.5/b3/project-configuration.html +++ b/WebHob_1.5/b3/project-configuration.html @@ -15,6 +15,7 @@ <script src="assets/js/jquery-2.0.3.min.js"></script> <script src="assets/js/bootstrap.js"></script> <script src="assets/js/prettify.js"></script> + <script src="assets/js/bootstrap3-typeahead.js"></script> <script src="assets/js/main.js"></script> </head> @@ -135,9 +136,29 @@ <form class="form-inline"> <div class="form-group"> <span class="glyphicon glyphicon-question-sign get-help" data-placement="left" title="Type the name of one or more recipes you want to build, separated by a space. You can also specify a task by appending a colon and a task name to the recipe name, like so: <code>busybox:clean</code>"></span> - <input id="build-input" type="text" class="form-control input-lg" placeholder="Type the recipe you want to build" autocomplete="off"> + <input id="build-input" type="text" class="form-control input-lg" placeholder="Type the recipe you want to build" data-provide="typeahead" autocomplete="off" data-source='[ + "core-image-base", + "core-image-clutter", + "core-image-directfb", + "core-image-full-cmdline]", + "core-image-lsb", + "core-image-lsb-dev", + "core-image-lsb-sdk", + "core-image-minimal", + "core-image-myimage", + "core-image-anotherimage", + "custom-image-name" ]'> + </div> + <div class="btn-group"> + <a href="#" id="build-button" class="btn btn-primary btn-lg" data-project-id="2" disabled> + <span class="glyphicon glyphicon-question-sign get-help get-help-white heading-help" title="Builds packages and, if selecting an image recipe, a set of root file system files"></span> + Build + </a> + <a href="" class="btn btn-default btn-lg" id="sdk-button" disabled> + <span class="glyphicon glyphicon-question-sign get-help heading-help" title="Only for <strong>image recipes</strong>. Does everything build does, and it also generates the extensible SDK for application development"></span> + SDK + </a> </div> - <button id="build-button" class="btn btn-primary btn-lg" data-project-id="2" disabled>Build</button> </form> </li> </ul> @@ -156,7 +177,8 @@ <li><a href="/toastergui/project/2/machines/">Machines</a></li> <li><a href="/toastergui/project/2/layers/">Layers</a></li> <li class="nav-header">Extra configuration</li> - <li><a href="/toastergui/project/2/configuration">BitBake variables</a></li> + <li><a href="bitbake-variables.html">BitBake variables</a></li> + <li><a href="sdk-configuration.html">SDK configuration</a></li> <li class="nav-header">Actions</li> <li><a href="#deleteProject" data-toggle="modal" class="text-danger"><span class="glyphicon glyphicon-trash"></span> Delete project</a></li> </ul> @@ -272,5 +294,26 @@ </div><!-- /.modal-dialog --> </div><!-- /.modal --> + <script> + $(document).ready(function() { + + // enable / disable the build and sdk buttons + $("#build-input").keyup(function(){ + if ( $(this).val() ) { + $(".btn-group a").removeAttr("disabled"); + } + else { + $(".btn-group a").attr("disabled","disabled"); + } + }); + + $("#sdk-button").click(function(){ + var target = $("#build-input").val(); + $("#sdk-button").attr("href", "project-builds.html?recipe=" + target); + }); + + }); + </script> + </body> </html> |