Commit b293edc4 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Hide firewall view in private network ports

parent 390cf69b
......@@ -111,37 +111,38 @@
src="{{ SYNNEFO_IMAGES_URL }}icons/indicators/small/progress.gif"
class="progress-indicator" />
</div>
<div data-rv-show="model.network.is_public"
class="firewall"
data-rv-hide="model.vm.status|error_status">
<img data-rv-show="model.firewall_running"
src="{{ SYNNEFO_IMAGES_URL }}icons/indicators/small/progress.gif"
class="progress-indicator" />
<div class="toggler-wrap clearfix">
<div class="cont-toggler firewall-toggle">
<span class="label machines-label">Firewall
(<span class="firewall-on">On</span>)
</span>
<div data-rv-hide="model.vm.status|error_status">
<div data-rv-show="model.network.is_public"
class="firewall">
<img data-rv-show="model.firewall_running"
src="{{ SYNNEFO_IMAGES_URL }}icons/indicators/small/progress.gif"
class="progress-indicator" />
<div class="toggler-wrap clearfix">
<div class="cont-toggler firewall-toggle">
<span class="label machines-label">Firewall
(<span class="firewall-on">On</span>)
</span>
</div>
</div>
<div class="firewall-content clearfix"
data-rv-class-dummy="model.firewall_status|update_firewall">
<input type="radio" class="checkboxes" value="DISABLED"
checked="checked"
data-rv-name="model.id|prefix firewall-" />
<span class="checkbox-legends current">Unprotected mode</span>
<br />
<input type="radio" class="checkboxes"
value="ENABLED"
data-rv-name="model.id|prefix firewall-" />
<span class="checkbox-legends">Fully protected mode (Firewall on)</span>
<br />
<input type="radio" class="checkboxes"
data-rv-name="model.id|prefix firewall-"
value="PROTECTED" />
<span class="checkbox-legends">Basically protected mode (Firewall on)</span>
<br />
<button data-rv-on-click="view.set_firewall" type="submit" class="firewall-apply hidden">Apply</button>
</div>
</div>
<div class="firewall-content clearfix"
data-rv-class-dummy="model.firewall_status|update_firewall">
<input type="radio" class="checkboxes" value="DISABLED"
checked="checked"
data-rv-name="model.id|prefix firewall-" />
<span class="checkbox-legends current">Unprotected mode</span>
<br />
<input type="radio" class="checkboxes"
value="ENABLED"
data-rv-name="model.id|prefix firewall-" />
<span class="checkbox-legends">Fully protected mode (Firewall on)</span>
<br />
<input type="radio" class="checkboxes"
data-rv-name="model.id|prefix firewall-"
value="PROTECTED" />
<span class="checkbox-legends">Basically protected mode (Firewall on)</span>
<br />
<button data-rv-on-click="view.set_firewall" type="submit" class="firewall-apply hidden">Apply</button>
</div>
</div>
<div class="actions-content">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment