Revision ebf4619d

b/snf-cyclades-app/synnefo/app_settings/default/ui.py
81 81

  
82 82
# A list of metadata keys to clone from image
83 83
# to the virtual machine on its creation.
84
VM_IMAGE_COMMON_METADATA = ["OS", "loginname", "logindomain"]
84
VM_IMAGE_COMMON_METADATA = ["OS", "loginname", "logindomain", "users", "remote"]
85 85

  
86 86
# A list of suggested vm roles to display to user on create wizard
87 87
VM_CREATE_SUGGESTED_ROLES = ["Database server", "File server", "Mail server", "Web server", "Proxy"]
b/snf-cyclades-app/synnefo/ui/static/snf/css/main.css
5610 5610
    padding-right: 15px;
5611 5611
}
5612 5612

  
5613
.create-vm .select-image.wide .images-info-cont .extra-details .image-detail.extra-meta .title .custom {
5614
    display: inline-block;
5615
}
5616

  
5617
.create-vm .select-image.wide .images-info-cont .extra-details .image-detail.extra-meta .title {
5618
    background-color: #999 !important;
5619
    border-color: #888 !important;
5620
}
5621
.create-vm .select-image.wide .images-info-cont .extra-details .image-detail .custom {
5622
    float: right;
5623
    display: none;
5624
    font-size: 0.8em;
5625
    margin-left: 10px;
5626
    color: #DDD;
5627
    margin-top: 2px;
5628
}
5629

  
5613 5630
.create-vm .select-image.wide .images-info-cont .extra-details .image-detail {
5614 5631
    padding: 0px;
5615 5632
    background-color: transparent;
b/snf-cyclades-app/synnefo/ui/templates/home.html
581 581
            synnefo.config.machines_icons_url = '{{ SYNNEFO_IMAGES_URL }}icons/machines/';
582 582
            synnefo.config.vm_name_template = {{ vm_name_template|safe }};
583 583
            synnefo.config.flavors_disk_templates_info = {{ flavors_disk_templates_info|safe }};
584
            synnefo.config.vm_image_common_metadata = {{ vm_image_common_metadata|safe }};
584 585

  
585 586
            synnefo.config.diagnostics_update_interval = {{ diagnostics_update_interval }};
586 587
            // override diagnostic messages display
......
646 647
            synnefo.config.system_images_owners = {{ system_images_owners|safe }};
647 648
            synnefo.ui.init();
648 649
            synnefo.ui.main.bind("ready", function(){
649
              vms = synnefo.storage.vms;
650
              vm = vms.at(0);
651 650
            });
652 651

  
653 652
        })
b/snf-cyclades-app/synnefo/ui/views.py
67 67
UPDATE_INTERVAL_MAX = getattr(settings, "UI_UPDATE_INTERVAL_MAX", 10000)
68 68

  
69 69
# predefined values settings
70
VM_IMAGE_COMMON_METADATA = getattr(settings, "VM_IMAGE_COMMON_METADATA", ["OS"])
70
VM_IMAGE_COMMON_METADATA = getattr(settings, "UI_VM_IMAGE_COMMON_METADATA", ["OS", "users"])
71 71
SUGGESTED_FLAVORS_DEFAULT = {}
72 72
SUGGESTED_FLAVORS = getattr(settings, "VM_CREATE_SUGGESTED_FLAVORS",
73 73
                            SUGGESTED_FLAVORS_DEFAULT)

Also available in: Unified diff