diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-09-28 21:45:24 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-29 14:11:37 +0100 |
commit | d98c771a9aa047a71a30b570aba544c043d05447 (patch) | |
tree | 2fdcddd23547a1a6cea72cb9ed7e576f4d8a5c5e /bitbake/lib/toaster/toastergui/templates/newcustomimage.html | |
parent | 37948cc5d0e9274a2ca0ec70a5b4788fa26e55e5 (diff) | |
download | poky-d98c771a9aa047a71a30b570aba544c043d05447.tar.gz |
bitbake: toaster: Add Image customisation frontend feature
Add the Image customisation front end feature to Toaster.
Caveat - This feature is currently in development and should not be
enabled by default.
(Bitbake rev: 543586462b66434741f47f2884b4ccdeda5397b5)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/newcustomimage.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/newcustomimage.html | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/newcustomimage.html b/bitbake/lib/toaster/toastergui/templates/newcustomimage.html new file mode 100644 index 0000000000..4487b3ea08 --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/newcustomimage.html | |||
@@ -0,0 +1,54 @@ | |||
1 | {% extends "base.html" %} | ||
2 | {% load projecttags %} | ||
3 | {% load humanize %} | ||
4 | {% load static %} | ||
5 | {% block pagecontent %} | ||
6 | |||
7 | <script src="{% static 'js/newcustomimage.js' %}"></script> | ||
8 | <script> | ||
9 | $(document).ready(function (){ | ||
10 | var ctx = { | ||
11 | xhrCustomRecipeUrl : "{% url 'xhr_customrecipe' %}", | ||
12 | }; | ||
13 | |||
14 | try { | ||
15 | newCustomImagePageInit(ctx); | ||
16 | } catch (e) { | ||
17 | document.write("Sorry, An error has occurred loading this page"); | ||
18 | console.warn(e); | ||
19 | } | ||
20 | }); | ||
21 | </script> | ||
22 | |||
23 | </script> | ||
24 | <div class="modal hide fade in" id="new-custom-image-modal" aria-hidden="false"> | ||
25 | <div class="modal-header"> | ||
26 | <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||
27 | <h3>Name your custom image</h3> | ||
28 | </div> | ||
29 | <div class="modal-body"> | ||
30 | <div class="row-fluid"> | ||
31 | <span class="help-block span8">Image names must be unique. They should not contain spaces or capital letters, and the only allowed special character is dash (-).<p></p> | ||
32 | </span></div> | ||
33 | <div class="control-group controls"> | ||
34 | <input type="text" class="huge span5" placeholder="Type the name, something like 'core-image-myimage'"> | ||
35 | <span class="help-block" style="display:none">Image names cannot contain spaces or capital letters. The only allowed special character is dash (-)</span> | ||
36 | <span class="help-block" style="display: none">An image with this name already exists. Image names must be unique: try a different one.</span> | ||
37 | </div> | ||
38 | </div> | ||
39 | <div class="modal-footer"> | ||
40 | <a href="#" id="create-new-custom-image-btn" class="btn btn-primary btn-large" data-original-title="" title="">Create custom image</a> | ||
41 | </div> | ||
42 | </div> | ||
43 | |||
44 | {% include "projecttopbar.html" %} | ||
45 | |||
46 | |||
47 | {% url table_name project.id as xhr_table_url %} | ||
48 | {% include "toastertable.html" %} | ||
49 | |||
50 | |||
51 | |||
52 | {% endblock %} | ||
53 | |||
54 | |||