Commit 9e10d175 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou

ui: Display selected project name in vm wizard confirm step

parent a36cff7a
......@@ -6401,6 +6401,7 @@ table.list-machines .wave {
height: 290px;
}
.create-vm .image-warning p {
width: 80%;
float: left;
......
......@@ -1573,6 +1573,7 @@
this.name = this.$("h3.vm-name");
this.keys = this.$(".confirm-params.ssh");
this.meta = this.$(".confirm-params.meta");
this.project = this.$(".confirm-cont.image .project-title");
this.ip_addresses = this.$(".confirm-params.ip-addresses");
this.private_networks = this.$(".confirm-params.private-networks");
this.init_handlers();
......@@ -1694,6 +1695,10 @@
this.update_image_details();
this.update_flavor_details();
this.update_network_details();
var project_name = this.get_project().get('name');
project_name = util.truncate(project_name, 25);
this.project.text(project_name);
if (!params.image.supports('ssh')) {
this.keys.hide();
......
......@@ -292,6 +292,12 @@
<div class="confirm-conts clearfix">
<div class="list-cont confirm-cont image">
<h4>{% trans "Project" %}</h4>
<ul class="confirm-params">
<li class="param image-name clearfix">
<h4 class="project-title"></h4>
</li>
</ul>
<h4>{% trans "Image" %}</h4>
<ul class="confirm-params">
<li class="param image-name clearfix">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment