diff --git a/web/pgadmin/browser/static/css/wizard.css b/web/pgadmin/browser/static/css/wizard.css index acd1d98..128d30a 100644 --- a/web/pgadmin/browser/static/css/wizard.css +++ b/web/pgadmin/browser/static/css/wizard.css @@ -106,6 +106,12 @@ margin-right: 0 !important; } +.wizard-header .wizard-cancel-event { + background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAdklEQVQ4jd2SwQnAIAxF36GH0pOTFHEgF3IkR5LO0F4SCGJVEHroAy/f/E+igV+yAa6hO7nrcgAZuIBg9CBalppXEnDL0RA1q556ASdQqhBrLlLTxVch1uxHZiU2AuKs2Vdt23GGHSy/wfIvzOzBPhpjaRO/5wG/szevJ+ZXzAAAAABJRU5ErkJggg==) no-repeat center center; + padding: 10px; + margin-top: -1px; +} + /* Wizard Status bar CSS */ .pgadmin-wizard .wizard-description { padding: 1.0em 0.1em; @@ -131,4 +137,4 @@ */ .select2-container--open { z-index: 10000; -} \ No newline at end of file +} diff --git a/web/pgadmin/browser/static/js/wizard.js b/web/pgadmin/browser/static/js/wizard.js index 383a312..d914ef9 100644 --- a/web/pgadmin/browser/static/js/wizard.js +++ b/web/pgadmin/browser/static/js/wizard.js @@ -42,6 +42,7 @@ function(_, Backbone, pgAdmin, pgBrowser) { disable_prev: false, disable_finish: false, disable_cancel: false, + show_header_cancel_btn: false, /* show cancel button at wizard header */ height: 400, width: 650, show_left_panel: true @@ -55,16 +56,21 @@ function(_, Backbone, pgAdmin, pgBrowser) { + "

<%= this.options.title %> -" + " <%= page_title %>

" + " " + + " <% if (this.options.show_header_cancel_btn) { %>" + + "
" + + " " + + "
" + + " <% } %>" + " " + " " + "
" - + " <% if(this.options.show_left_panel) { %>" + + " <% if (this.options.show_left_panel) { %>" + "
" + "
" + " <% } %>" - + "
9<% }" + " else { %>12<% } %> wizard-right-panel'>" - + " <% if( typeof show_description != 'undefined'){ %>" + + " <% if ( typeof show_description != 'undefined'){ %>" + "
" + " <%= show_description %>" + "
" @@ -79,7 +85,7 @@ function(_, Backbone, pgAdmin, pgBrowser) { + "