1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Feature #4734: Display VR VM Template name in instantiate

This commit is contained in:
Carlos Martín 2016-08-26 16:10:00 +02:00
parent e95328a516
commit 349e15c01b
3 changed files with 6 additions and 3 deletions

View File

@ -192,6 +192,8 @@ define(function(require) {
inputs_div,
template_json,
{text_header: '<i class="fa fa-gears"></i> '+Locale.tr("Custom Attributes")});
$("span.template_name", context).text(template_json.VMTEMPLATE.NAME);
},
error: Notifier.onError
});

View File

@ -14,10 +14,10 @@
{{! limitations under the License. }}
{{! -------------------------------------------------------------------------- }}
<fieldset class="table_wrapper" style="display:none">
<fieldset>
<legend>{{tr "Template"}}</legend>
<div class="row selectTemplateTable">
</div>
<div class="table_wrapper row selectTemplateTable" style="display:none"/>
<p class="no_table_wrapper">{{tr "You selected the following Template:"}} <span class="template_name"/></p>
</fieldset>
<div class="row nameContainer">
<div class="medium-4 columns">

View File

@ -84,6 +84,7 @@ define(function(require) {
$(".selectTemplateTable", context).html(this.templatesTable.dataTableHTML);
$(".table_wrapper", context).show();
$(".no_table_wrapper", context).hide();
this.templatesTable.initialize();