diff --git a/bitbake/lib/toaster/toastergui/static/js/newcustomimage.js b/bitbake/lib/toaster/toastergui/static/js/newcustomimage_modal.js similarity index 92% rename from bitbake/lib/toaster/toastergui/static/js/newcustomimage.js rename to bitbake/lib/toaster/toastergui/static/js/newcustomimage_modal.js index 935b21ede8..71a28f7b2a 100644 --- a/bitbake/lib/toaster/toastergui/static/js/newcustomimage.js +++ b/bitbake/lib/toaster/toastergui/static/js/newcustomimage_modal.js @@ -1,6 +1,7 @@ "use strict"; -function newCustomImagePageInit(ctx){ +/* Used for the newcustomimage_modal actions */ +function newCustomImageModalInit(ctx){ var newCustomImgBtn = $("#create-new-custom-image-btn"); var imgCustomModal = $("#new-custom-image-modal"); @@ -44,6 +45,4 @@ function newCustomImagePageInit(ctx){ } }); } - - } 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 @@ {% load static %} {% block pagecontent %} - - - - - - +{% include "newcustomimage_modal.html" %} {% include "projecttopbar.html" %} - {% url table_name project.id as xhr_table_url %} +

{{title}} (0)

{% include "toastertable.html" %} - - {% endblock %} - - diff --git a/bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html b/bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html new file mode 100644 index 0000000000..93cf9d7e02 --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/newcustomimage_modal.html @@ -0,0 +1,33 @@ +{% load static %} + + + + +