Skip to content

Commit

Permalink
Merge branch 'feature/network' of github.com:UPC/ravada into feature/…
Browse files Browse the repository at this point in the history
…network
  • Loading branch information
frankiejol committed Nov 7, 2023
2 parents 7273a26 + bb98ade commit 8714192
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions templates/main/manage_machine_edit_net.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,23 @@
</li>
<li class="list-group-item list-group-item-primary"><%=l 'type' %></li>
<li class="list-group-item">

% if ($USER->is_admin || $USER->can_create_networks || $USER->can_manage_all_networks ) {
<select ng-model="item.type"
ng-change="network_edit[$index]=true"
ng-options="type for type in ['bridge','NAT']"
>
</select>
% } else {
{{item.type}}
% }
</li>
<li class="list-group-item list-group-item-primary">
<span ng-show="item.type == 'NAT'"><%=l 'nat' %></span>
<span ng-show="item.type == 'bridge'"><%=l 'bridge' %></span>
</li>
<li class="list-group-item">
% if ($USER->is_admin || $USER->can_create_networks || $USER->can_manage_all_networks ) {
<select ng-model="item.network"
ng-change="network_edit[$index]=true"
ng-show="item.type == 'NAT'"
Expand All @@ -35,6 +41,10 @@
<span ng-hide="item.type == 'NAT' || network_bridges[0]">
<%=l 'No bridges found' %>
</span>
% } else {
<span ng-show="item.type=='NAT'">{{item.network}}</span>
<span ng-show="item.type=='bridge'">{{item.bridge}}</span>
% }
</li>
</ul>
</div>

0 comments on commit 8714192

Please sign in to comment.