mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-08 05:57:23 +03:00
Bug #3050: flow service instantiate should not be allowed if the nets and custom attrs are not filled
This commit is contained in:
parent
9bdd6bc800
commit
0e6f6b271b
@ -411,7 +411,7 @@ var instantiate_service_template_tmpl ='\
|
||||
<div class="row">\
|
||||
<h3 class="subheader">'+tr("Instantiate Service Template")+'</h3>\
|
||||
</div>\
|
||||
<form id="instantiate_service_template_form" action="">\
|
||||
<form data-abide="ajax" id="instantiate_service_template_form" action="">\
|
||||
<div class="row">\
|
||||
<div class="large-6 columns">\
|
||||
<label for="service_name">'+tr("Service Name")+
|
||||
@ -1884,7 +1884,9 @@ function setupInstantiateServiceTemplateDialog(){
|
||||
|
||||
setupTips(dialog);
|
||||
|
||||
$('#instantiate_service_template_form',dialog).submit(function(){
|
||||
$('#instantiate_service_template_form',dialog).on('invalid', function () {
|
||||
notifyError(tr("One or more required fields are missing or malformed."));
|
||||
}).on('valid', function() {
|
||||
var service_name = $('#service_name',this).val();
|
||||
var n_times = $('#service_n_times',this).val();
|
||||
var n_times_int=1;
|
||||
|
@ -5363,6 +5363,8 @@ function generateInstantiateUserInputs(div, user_inputs, opts) {
|
||||
|
||||
$("input#selected_resource_id_"+unique_id, div).attr(
|
||||
"wizard_field", vnet_attr.name);
|
||||
|
||||
$("input#selected_resource_id_"+unique_id, div).attr("required", "")
|
||||
});
|
||||
}
|
||||
|
||||
@ -5387,7 +5389,7 @@ function generateInstantiateUserInputs(div, user_inputs, opts) {
|
||||
'<div class="large-12 large-centered columns">'+
|
||||
'<label>' +
|
||||
htmlDecode(custom_attr.description) +
|
||||
'<input type="'+custom_attr.type+'" wizard_field="'+custom_attr.name+'"/>'+
|
||||
'<input type="'+custom_attr.type+'" wizard_field="'+custom_attr.name+'" required/>'+
|
||||
'</label>'+
|
||||
'</div>'+
|
||||
'</div>');
|
||||
|
Loading…
x
Reference in New Issue
Block a user