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 13:44:48 +0100 |
commit | 543586462b66434741f47f2884b4ccdeda5397b5 (patch) | |
tree | 75d02763dbf675f1d3274a5a4251fbbf8cce2b1c /lib/toaster/toastergui/templates/newcustomimage.html | |
parent | 4e5472e9ba6850081baa9d56fabc4ddb1aa24846 (diff) | |
download | bitbake-543586462b66434741f47f2884b4ccdeda5397b5.zip |
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.
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 'lib/toaster/toastergui/templates/newcustomimage.html')
-rw-r--r-- | lib/toaster/toastergui/templates/newcustomimage.html | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/templates/newcustomimage.html b/lib/toaster/toastergui/templates/newcustomimage.html new file mode 100644 index 00000000..4487b3ea --- /dev/null +++ b/lib/toaster/toastergui/templates/newcustomimage.html @@ -0,0 +1,54 @@ +{% extends "base.html" %} +{% load projecttags %} +{% load humanize %} +{% load static %} +{% block pagecontent %} + +<script src="{% static 'js/newcustomimage.js' %}"></script> +<script> + $(document).ready(function (){ + var ctx = { + xhrCustomRecipeUrl : "{% url 'xhr_customrecipe' %}", + }; + + try { + newCustomImagePageInit(ctx); + } catch (e) { + document.write("Sorry, An error has occurred loading this page"); + console.warn(e); + } + }); +</script> + +</script> +<div class="modal hide fade in" id="new-custom-image-modal" aria-hidden="false"> + <div class="modal-header"> + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> + <h3>Name your custom image</h3> + </div> + <div class="modal-body"> + <div class="row-fluid"> + <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> + </span></div> + <div class="control-group controls"> + <input type="text" class="huge span5" placeholder="Type the name, something like 'core-image-myimage'"> + <span class="help-block" style="display:none">Image names cannot contain spaces or capital letters. The only allowed special character is dash (-)</span> + <span class="help-block" style="display: none">An image with this name already exists. Image names must be unique: try a different one.</span> + </div> + </div> + <div class="modal-footer"> + <a href="#" id="create-new-custom-image-btn" class="btn btn-primary btn-large" data-original-title="" title="">Create custom image</a> + </div> +</div> + +{% include "projecttopbar.html" %} + + +{% url table_name project.id as xhr_table_url %} +{% include "toastertable.html" %} + + + +{% endblock %} + + |