1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-12 09:17:41 +03:00

F OpenNebula/one#6183: hide network automatic selection (#2586)

(cherry picked from commit e401e61c17)
This commit is contained in:
Frederick Borges 2023-04-21 14:55:06 +02:00 committed by Tino Vázquez
parent 20c70e4985
commit d03ae2976e
No known key found for this signature in database
GPG Key ID: 14201E424D02047E
2 changed files with 16 additions and 14 deletions

View File

@ -13,7 +13,6 @@
{{! See the License for the specific language governing permissions and }}
{{! limitations under the License. }}
{{! -------------------------------------------------------------------------- }}
{{!-- {{#isFeatureEnabled "automatic_selection_vnet"}} --}}
<div class="only_create">
<div class="row autoContainer">
<fieldset id="{{nicTabId}}interface_type" class="small-12 large-6 columns">
@ -48,19 +47,21 @@
</label>
</div>
</fieldset>
<fieldset class="small-12 large-6 columns">
<legend style="margin:0px;">{{tr "Network selection"}}</legend>
<div class="switch left network_selection">
<input class="switch-input" id="{{nicTabId}}_network_mode" type="checkbox">
<label class="switch-paddle" for="{{nicTabId}}_network_mode">
{{#isFeatureEnabled "automatic_selection_vnet"}}
<fieldset class="small-12 large-6 columns">
<legend style="margin:0px;">{{tr "Network selection"}}</legend>
<div class="switch left network_selection">
<input class="switch-input" id="{{nicTabId}}_network_mode" type="checkbox">
<label class="switch-paddle" for="{{nicTabId}}_network_mode">
</label>
</div>
<label class="left network_selection">
&nbsp;&nbsp;
{{tr "Automatic selection"}}
{{{tip (tr "The Schedule will decide which is the best virtual network")}}}
</label>
</div>
<label class="left network_selection">
&nbsp;&nbsp;
{{tr "Automatic selection"}}
{{{tip (tr "The Schedule will decide which is the best virtual network")}}}
</label>
</fieldset>
</fieldset>
{{/isFeatureEnabled}}
</div>
<div class="row autoContainer">
<fieldset id="rdp_connection" class="small-12 large-6 columns">
@ -144,7 +145,6 @@
</div>
</div>
</div>
{{!-- {{/isFeatureEnabled}} --}}
<div class="no_auto">
{{{vnetsTableSelectHTML}}}
</div>

View File

@ -58,6 +58,7 @@
</fieldset>
{{/if}}
{{#if displaySelection}}
{{#isFeatureEnabled "automatic_selection_vnet"}}
<fieldset class="small-12 large-6 columns" style="margin:0px;">
<legend style="margin:0px;">{{tr "Network selection"}}</legend>
<div id="provision_accordion_dd_{{provision_nic_accordion_dd_id}}_network_selection">
@ -73,6 +74,7 @@
</label>
</div>
</fieldset>
{{/isFeatureEnabled}}
{{/if}}
</div>
<div class="row autoContainer">