mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-30 22:50:10 +03:00
bug #1875: Remove name from update form, use rename in the extended panel instead
This commit is contained in:
parent
509c1ad439
commit
32714e6d91
@ -537,15 +537,13 @@ function generate_capacity_tab_content() {
|
||||
'<div class="two columns">'+
|
||||
'<label class="inline right" for="NAME">'+tr("NAME")+':</label>'+
|
||||
'</div>'+
|
||||
'<div class="nine columns">'+
|
||||
'<div class="six columns">'+
|
||||
'<input type="text" id="NAME" name="name"/>'+
|
||||
'</div>'+
|
||||
'<div class="one columns">'+
|
||||
'<div class="tip">'+tr("Name that the VM will get for description purposes. If NAME is not supplied a name generated by one will be in the form of one-<VID>.")+'</div>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'<hr>'+
|
||||
'<br>'+
|
||||
'<div class="row">'+
|
||||
'<div class="two columns">'+
|
||||
'<label class="inline right" for="CPU">'+tr("CPU")+':</label>'+
|
||||
@ -3538,6 +3536,9 @@ function popUpUpdateTemplateDialog(){
|
||||
$('#create_template_header', $create_template_dialog).hide();
|
||||
$('#update_template_header', $create_template_dialog).show();
|
||||
|
||||
$('#template_name_form', $create_template_dialog).hide();
|
||||
$('#NAME').attr("disabled", "disabled");;
|
||||
|
||||
$create_template_dialog.reveal();
|
||||
};
|
||||
|
||||
@ -3550,6 +3551,9 @@ function popUpCreateTemplateDialog(){
|
||||
$('#create_template_header', $create_template_dialog).show();
|
||||
$('#update_template_header', $create_template_dialog).hide();
|
||||
|
||||
$('#template_name_form', $create_template_dialog).show();
|
||||
$('#NAME').removeAttr('disabled');
|
||||
|
||||
$create_template_dialog.reveal();
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user