diff options
author | Elliot Smith <elliot.smith@intel.com> | 2016-04-19 17:28:45 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-19 21:11:26 +0100 |
commit | a40a3e6defefd69521a417a366b8752be7e778f9 (patch) | |
tree | aa23613673cd30831cdf8482aa03d3de97a54e7c /bitbake/lib/toaster/toastergui/templates/editcustomimage_modal.html | |
parent | e65c9808e9bb85ffd2b668bade4b8a50e470d050 (diff) | |
download | poky-a40a3e6defefd69521a417a366b8752be7e778f9.tar.gz |
bitbake: toaster: add build dashboard buttons to edit/create custom images
When a build is viewed in the dashboard, enable users to edit
a custom image which was built during that build, and/or create
a new custom image based on one of the image recipes built during
the build.
Add methods to the Build model to enable querying for the
set of image recipes built during a build.
Add buttons to the dashboard, with the "Edit custom image"
button opening a basic modal for now. The "New custom image"
button opens the existing new custom image modal, but is modified
to show a list of images available as a base for a new custom image.
Add a new function to the new custom image modal's script which
enables multiple potential custom images to be shown as radio
buttons in the dialog (if there is more than 1). Modify existing
code to use this new function.
Add a template filter which allows the queryset of recipes for
a build to be available to client-side scripts, and from there
be used to populate the new custom image modal.
[YOCTO #9123]
(Bitbake rev: 4c49ffd28e41c4597bdac34d5e54c125571a4b95)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/editcustomimage_modal.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/editcustomimage_modal.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/editcustomimage_modal.html b/bitbake/lib/toaster/toastergui/templates/editcustomimage_modal.html new file mode 100644 index 0000000000..fd998f63eb --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/editcustomimage_modal.html | |||
@@ -0,0 +1,23 @@ | |||
1 | <!-- | ||
2 | modal dialog shown on the build dashboard, for editing an existing custom image | ||
3 | --> | ||
4 | <div class="modal hide fade in" aria-hidden="false" id="edit-custom-image-modal"> | ||
5 | <div class="modal-header"> | ||
6 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||
7 | <h3>Select custom image to edit</h3> | ||
8 | </div> | ||
9 | <div class="modal-body"> | ||
10 | <div class="row-fluid"> | ||
11 | <span class="help-block"> | ||
12 | Explanation of what this modal is for | ||
13 | </span> | ||
14 | </div> | ||
15 | <div class="control-group controls"> | ||
16 | <input type="text" class="huge" placeholder="input box" required> | ||
17 | <span class="help-block error" style="display:none">Error text</span> | ||
18 | </div> | ||
19 | </div> | ||
20 | <div class="modal-footer"> | ||
21 | <button class="btn btn-primary btn-large" disabled>Action</button> | ||
22 | </div> | ||
23 | </div> | ||