Revision 8550e831

b/ui/static/main.css
833 833
}
834 834

  
835 835
#error-success, #yes-no {
836
    height: 100px;
836
    height: 150px;
837 837
    border: 5px solid #87AADE;
838 838
    z-index: 9999;
839 839
}
......
1129 1129
.selected {
1130 1130
    display:block !important;
1131 1131
    color: orange !important;
1132
}
1132
}
b/ui/templates/home.html
55 55
        var SUCCESS = {
56 56
            'HEADER' : '{% trans "Success!" %}',
57 57
            'DEFAULT' : '{% trans "Your request has been succefully executed." %}',
58
            'CREATE_VM_SUCCESS' : '{% trans "Success!" %}',
59
            'CREATE_VM_SUCCESS_ONE' : '{% trans "Your machine is now being built." %}',
60
            'CREATE_VM_SUCCESS_TWO' : '{% trans "Please write down the following password:" %}',
61
            'CREATE_VM_SUCCESS_THREE' : '{% trans "Do not lose this! You will need it to connect to your machine, once it is ready." %}'
58 62
        };
59 63
        
60 64
        // ajax error checking  
......
92 96
        // ajax success checking
93 97
        function ajax_success(status, password) {
94 98
            // prepare the error message
95
            $("#error-success h3").text(SUCCESS['HEADER']);
96
            $("#error-success p").text(SUCCESS['DEFAULT']);             
97 99
            // bring up success notification
100
            if (status != undefined && SUCCESS[status]) {
101
                if (password != undefined && status == "CREATE_VM_SUCCESS") {
102
                    $("#error-success h3").text(SUCCESS[status]);
103
                    var CREATE_VM_SUCCESS_MSG = SUCCESS["CREATE_VM_SUCCESS_ONE"] + '<br />'
104
                        + SUCCESS["CREATE_VM_SUCCESS_TWO"] + '<br /><br />' + '<b>' + password + '</b>'
105
                        + '<br /><br />' + SUCCESS["CREATE_VM_SUCCESS_THREE"] ;
106
                    $("#error-success p").html(CREATE_VM_SUCCESS_MSG);             
107
                } else {
108
                    $("#error-success h3").text(SUCCESS['HEADER']);
109
                    $("#error-success p").text(SUCCESS[status]);             
110
                }
111
            } else {
112
                $("#error-success h3").text(SUCCESS['HEADER']);
113
                $("#error-success p").text(SUCCESS['DEFAULT']);             
114

  
115
            }
116

  
117

  
98 118
            var triggers = $("a#notification").overlay({
99 119
                // some mask tweaks suitable for modal dialogs
100 120
                mask: {
b/ui/templates/machines.html
384 384
           },
385 385
    success: function(data, textStatus, jqXHR) {
386 386
                if ( jqXHR.status == '202') {
387
                    ajax_success(jqXHR.status);                   
387
                    ajax_success("CREATE_VM_SUCCESS", data.server.adminPass);                   
388 388
                } else {
389 389
                    ajax_error(jqXHR.status);
390 390
                }

Also available in: Unified diff