diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-11-04 15:44:00 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-10 13:29:17 +0000 |
commit | 5f52614a878269fe7837b7198e653377b25b91d8 (patch) | |
tree | cccfa1e509182a2a219f7cb8474200ecff22816f /bitbake/lib/toaster/toastergui/templates/newcustomimage.html | |
parent | 2a3dd32d669f4d114fe9c978c9fc1269c2566b8a (diff) | |
download | poky-5f52614a878269fe7837b7198e653377b25b91d8.tar.gz |
bitbake: toaster: newcustomimage Move modal dialog out of newcustomimage template
Move the modal template and JS out of the newcustomimage page so that it
can also be used by the image details page.
(Bitbake rev: c310bc6bab1a33124906dd57b3c63462a773ff25)
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 | 44 |
1 files changed, 2 insertions, 42 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/newcustomimage.html b/bitbake/lib/toaster/toastergui/templates/newcustomimage.html index 4487b3ea08..46aed901f1 100644 --- a/bitbake/lib/toaster/toastergui/templates/newcustomimage.html +++ b/bitbake/lib/toaster/toastergui/templates/newcustomimage.html | |||
@@ -4,51 +4,11 @@ | |||
4 | {% load static %} | 4 | {% load static %} |
5 | {% block pagecontent %} | 5 | {% block pagecontent %} |
6 | 6 | ||
7 | <script src="{% static 'js/newcustomimage.js' %}"></script> | 7 | {% include "newcustomimage_modal.html" %} |
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" %} | 8 | {% include "projecttopbar.html" %} |
45 | 9 | ||
46 | |||
47 | {% url table_name project.id as xhr_table_url %} | 10 | {% url table_name project.id as xhr_table_url %} |
11 | <h2>{{title}} (<span class="table-count-{{table_name}}">0</span>)</h2> | ||
48 | {% include "toastertable.html" %} | 12 | {% include "toastertable.html" %} |
49 | 13 | ||
50 | |||
51 | |||
52 | {% endblock %} | 14 | {% endblock %} |
53 | |||
54 | |||