1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 12:04:15 +00:00
webvirtcloud/interfaces/templates/interfaces.html

97 lines
4.4 KiB
HTML
Raw Normal View History

2015-03-03 14:53:10 +00:00
{% extends "base.html" %}
{% load i18n %}
2015-04-06 07:51:50 +00:00
{% load staticfiles %}
2015-03-03 14:53:10 +00:00
{% block title %}{% trans "Interfaces" %} - {{ compute.name }}{% endblock %}
{% block content %}
2015-03-05 09:55:15 +00:00
<!-- Page Heading -->
<div class="row">
<div class="col-lg-12">
2015-04-02 13:20:46 +00:00
{% include 'create_iface_block.html' %}
2015-03-05 09:55:15 +00:00
<h1 class="page-header">{{ compute.name }}</h1>
<ol class="breadcrumb">
<li class="active">
<i class="fa fa-dashboard"></i> <a href="{% url 'overview' compute.id %}">{% trans "Overview" %}</a>
</li>
<li>
<i class="fa fa-hdd-o"></i> <a href="{% url 'storages' compute.id %}">{% trans "Storages" %}</a>
</li>
<li>
<i class="fa fa-sitemap"></i> <a href="{% url 'networks' compute.id %}">{% trans "Networks" %}</a>
</li>
<li>
<i class="fa fa-wifi"></i> {% trans "Interfaces" %}
</li>
2018-09-21 13:50:44 +00:00
<li>
<i class="fa fa-filter"></i> <a href="{% url 'nwfilters' compute.id %}">{% trans "NWFilters" %}</a>
</li>
2015-03-05 09:55:15 +00:00
<li>
<i class="fa fa-key"></i> <a href="{% url 'secrets' compute.id %}">{% trans "Secrets" %}</a>
</li>
</ol>
</div>
</div>
<!-- /.row -->
2015-03-03 14:53:10 +00:00
{% include 'errors_block.html' %}
<div class="row">
2015-03-04 13:43:29 +00:00
{% if not ifaces_all %}
2015-03-05 09:55:15 +00:00
<div class="col-lg-12">
<div class="alert alert-warning alert-dismissable">
2018-08-01 14:18:51 +00:00
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
2015-03-05 09:55:15 +00:00
<i class="fa fa-exclamation-triangle"></i> <strong>{% trans "Warning:" %}</strong> {% trans "Hypervisor doesn't have any Interfaces" %}
</div>
2015-03-04 13:43:29 +00:00
</div>
{% else %}
{% for iface in ifaces_all %}
<div class="col-xs-12 col-sm-4">
<div class="panel {% ifequal iface.state 1 %}panel-success{% else %}panel-danger{% endifequal %} panel-data">
<div class="panel-heading">
<h3 class="panel-title"><a href="{% url 'interface' compute.id iface.name %}">{{ iface.name }}</a>
</h3>
</div>
<div class="panel-body">
2015-03-05 09:55:15 +00:00
<div class="row">
<div class="col-xs-4 col-sm-4">
<p><strong>{% trans "Type:" %}</strong></p>
<p><strong>{% trans "MAC:" %}</strong></p>
</div>
<div class="col-xs-6 col-sm-7">
<p>{{ iface.type }}</p>
<p>{{ iface.mac }}</p>
</div>
</div>
2015-03-04 13:43:29 +00:00
</div>
</div>
</div>
{% endfor %}
{% endif %}
2015-03-03 14:53:10 +00:00
</div>
2015-03-06 11:59:27 +00:00
{% endblock %}
{% block script %}
2015-04-06 07:51:50 +00:00
<script>
$(document).ready(function () {
$('#itype').change(function (eventObject) {
if ($(this).val() == 'bridge') {
$('.bridge_name_form_group').show();
} else {
$('.bridge_name_form_group').hide();
}
}).change();
$('#ipv4').change(function (eventObject) {
if ($(this).val() == 'static') {
$('.static_ipv4_form_group').show();
} else {
$('.static_ipv4_form_group').hide();
}
}).change();
$('#ipv6').change(function (eventObject) {
if ($(this).val() == 'static') {
$('.static_ipv6_form_group').show();
} else {
$('.static_ipv6_form_group').hide();
}
}).change();
});
</script>
2015-03-03 14:53:10 +00:00
{% endblock %}