proxadmin/app/templates/panel/dashboard.html

157 lines
7.7 KiB
HTML
Raw Normal View History

2017-03-08 13:53:09 -05:00
{% extends "base.html" %}
2017-06-01 18:27:17 -04:00
{% block styles %}
{{ super() }}
{% endblock %}
2017-05-25 01:54:33 -04:00
{% block scripts %}
{{ super() }}
<script type="text/javascript">
2017-06-01 18:27:17 -04:00
$('a[data-toggle="tooltip"]').tooltip({
animated: 'fade',
placement: 'bottom',
html: true
});
2017-05-25 01:54:33 -04:00
</script>
2017-06-07 11:04:27 -04:00
2017-03-08 13:53:09 -05:00
<script>
// Only run what comes next *after* the page has loaded
addEventListener("DOMContentLoaded", function() {
// Grab all of the elements with a class of command
// (which all of the buttons we just created have)
var commandButtons = document.querySelectorAll(".command");
for (var i=0, l=commandButtons.length; i<l; i++) {
var button = commandButtons[i];
// For each button, listen for the "click" event
button.addEventListener("click", function(e) {
// When a click happens, stop the button
// from submitting our form (if we have one)
2017-05-25 01:54:33 -04:00
e.preventDefault();
2017-03-08 13:53:09 -05:00
2017-05-25 01:54:33 -04:00
if (window.confirm("Are you sure?")) {
2017-03-08 13:53:09 -05:00
var clickedButton = e.target;
var command = clickedButton.value;
var vmid = clickedButton.getAttribute('vmid');
// Now we need to send the data to our server
// without reloading the page - this is the domain of
// AJAX (Asynchronous JavaScript And XML)
// We will create a new request object
// and set up a handler for the response
var request = new XMLHttpRequest();
request.onload = function() {
// We could do more interesting things with the response
// or, we could ignore it entirely
//alert(request.responseText);
};
// We point the request at the appropriate command
2017-10-15 07:38:38 -04:00
request.open("GET", "/vmanager/command/" + command + "/" + vmid, true);
2017-03-08 13:53:09 -05:00
// and then we send it off
request.send();
2017-06-06 09:49:32 -04:00
alert("command " + command + " executed.");
2017-06-04 10:10:38 -04:00
window.location.reload();
2017-05-25 01:54:33 -04:00
}
});
}
2017-03-08 13:53:09 -05:00
}, true);
</script>
2018-05-06 12:13:02 -04:00
{{ pagedown.include_pagedown() }}
2017-06-01 18:27:17 -04:00
{% endblock %}
2017-03-08 13:53:09 -05:00
2017-06-01 18:27:17 -04:00
{% block page_content %}
2017-06-13 19:24:39 -04:00
{% if current_user.fresh_user == True %}
<div class="row">
<center>
<img class="img-responsive img-rounded" src="{{ url_for('static', filename='images/createvm.gif') }}" alt="ping">
</center><br/>
</div>
{% endif %}
2017-03-08 13:53:09 -05:00
<div class="row">
2017-12-26 11:00:53 -05:00
2018-01-24 19:00:06 -05:00
{% if inv_deployments != [] %}
2017-12-26 11:00:53 -05:00
<div class="col-md-12">
<div class="panel panel-info" id="deployments">
2018-01-24 19:00:06 -05:00
<div class="panel-heading">Datacenter Manager</div>
2017-12-26 11:00:53 -05:00
<div class="panel-body"><p>
<div class="panel-group" id="deploycubes" role="tablist" aria-multiselectable="true">
2018-01-24 19:00:06 -05:00
{% for deploy in inv_deployments %}
2018-01-11 08:19:59 -05:00
{% include "panel/vdc_pool.html" %}
2017-12-26 11:00:53 -05:00
{% endfor %}
</div>
</div>
</div>
</div>
{% endif %}
2018-01-18 17:23:08 -05:00
{% if inv_services != [] %}
<div class="col-md-12">
<div class="panel panel-info" id="services">
<div class="panel-heading">Services</div>
<div class="panel-body">
{% include "panel/services.html" %}
</div>
</div>
</div>
{% endif %}
2017-12-14 19:36:32 -05:00
2017-06-28 10:42:21 -04:00
{% if inv_domains != [] %}
<div class="col-md-12">
2017-06-04 10:10:38 -04:00
<div class="panel panel-info" id="domains">
2017-03-08 13:53:09 -05:00
<div class="panel-heading">Domains</div>
2017-09-20 20:08:58 -04:00
<div class="panel-body">
2018-01-31 19:24:37 -05:00
{% include "panel/domains.html" %}
2018-01-31 12:41:20 -05:00
</div>
</div>
</div>
2017-06-28 10:42:21 -04:00
{% endif %}
2017-03-08 13:53:09 -05:00
2017-09-20 20:08:58 -04:00
2017-06-28 10:42:21 -04:00
{% if inv_addresses != [] %}
<div class="col-md-12">
2017-06-04 10:10:38 -04:00
<div class="panel panel-info" id="addresses">
2017-10-07 11:39:50 -04:00
<div class="panel-heading">Communications</div>
2017-06-04 10:10:38 -04:00
<div class="panel-body"><p>
2017-12-14 18:00:02 -05:00
<img width="32" height="32" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAEW0lEQVRYhe3YT0zbVhwH8HfgwKGHHnrYYYcddkBVT7t0kybNh8kvgTiBJlTdhCba0R03qVo3NBUtUkv88sdOgtapYu0mFQ1tY4BGK9qKaZmYkud/BFzKyBYYGmgRNCGBjf+ovB0SVyklJHEM7aR9pafIVmJ//Ht5z34G4P8AAJHQDxHegm48bkJCj4nFzZQzdPRZux4nByT5jUYRGbK4xZATmFhM1XmFXsoZqtJ7DMoZOkK7IjWQxS0Q4aE87FcVVdPE4pdsnJQ816muWznxViXIXcdthm4hk0PO6EJSzlB1PS/9cX04kYwlt8m7nWr6dFD5qVwkREI/jfBa9jPSSjlDRwAAwOwWXoQI/6JVsmyg2YM/uvD15N8zSztkZmmHxJLb5L0b6lq5ldzjPxiiUfgMAACYXOHXIItViPAWdIXPloyjnKGjFq+4oiY2iQbUkHoqyfiUY7QrYoEIh3LIbbNbeBWAXHdn981p1S0ae0DmP/5mcj4fVykyd+FVJiRczoEmKWeoGgAANLgJhZtKvGIxNTy18hSu0u7WooFoFPkQAABoFL6U3cZdRX9Mt4dPnO4YyRTClVPJWq9ykuHlGMPLMRMSXn8MZAU7RJhAt9ANAAC0O+zQ5seiQCsntbX1xVPFgKUgrbwS//ROirQNJomVV6a1/WbX8PFcNy9lt4Xj2S7Ga0WBjR3K3R4lWRSXjzx/4z6xeEWya7QShpPJXkAAsqPbhISeQtsF4wgq6lBsuWTgfpU0e6Q3LD6JMJwchyx+s+jJS4mNl+aVufWygPshIcLEEJgWq09MR//aKBtYaHQbDmzwywk9FSxUScOBjqCi3vt1STdwN9JwoN0vD3SLCxUB87vb4hWJUU9BAAAAGjtGLl76/veiE3WpyLOdY0TPbbFgIBt52cqJ60YAS5nMdaWeFxfKnQsPFfn2ZyPtH9ycWDQKaDiScoaqGU5c3u+J5pkjzR7h3PtdE8tGAvNHd8VrHMoZqmoMKqP+e7MPDwJpSCUZn3KsnpcWeqPJjecWCT34FYYTdwbUtKFADXn+C3XNwol9uoH24AjfdO1++q2ro6TjxzlDgX3R5GqDX868cy3q0IWjXZGaWo+4/t34Bumd2CItX06QC92TpNLRrSY2ibM/vmnjpFnaFanRXT0bL09eGUxkBqd2yODUDrkdf0TYuwli5UTS+u1vD8uFqolNcuWH6bTFK643XY1er+i1RwMvXzzz+dji7fgjogG1BhEmFo9wmfGJaUdQXnXdmt4aUNPk5/g/RHtUG5/fItKfa+TOgwwJDs1uN3eOZWo94gbjE27WeqQXdMMAyL6WqPOKK13R1adwGlD7Lt0ePmH24E/sAQWf8stxGyclIcKE8YnL9bw0eyogR+s8gtfEYsqwe3GDXxlu7Z1J7YXbDTyU2ALKSXtAju1ele3X7IEn17oHmsYOJd4/uljWH743miKO4JNLyQMLRFjXdHFoXf2fAOpthwJ8XvMve9hz7NcDU4IAAAAASUVORK5CYII="> Public<br />
<div id="routers" class="no-more-tables">
2017-06-04 10:10:38 -04:00
<table class="table table-hover table-striped table-condensed cf">
<thead>
<tr>
<th>IP</th>
2017-06-28 10:42:21 -04:00
<th>Region</th>
2017-06-07 11:04:27 -04:00
<th>Reverse DNS</th>
<th>Deployment<th>
2017-06-04 10:10:38 -04:00
</tr>
2017-12-14 18:00:02 -05:00
</thead>
<tbody>
2017-06-04 10:10:38 -04:00
{% for address in inv_addresses %}
<tr>
2017-06-08 10:42:09 -04:00
<td data-title="IP">{{ address.ip }}</td>
2017-12-26 11:00:53 -05:00
<td data-title="Region">{{ regions[address.region_id] }}</td>
2017-06-08 10:42:09 -04:00
<td data-title="RDNS">{{ address.rdns }}</td>
<td data-title="Deployment">{{ address.assignee.deploy.machine_alias }}</td>
2017-06-04 10:10:38 -04:00
</tr>
2017-12-14 18:00:02 -05:00
{% endfor %}
</tbody>
2017-06-04 10:10:38 -04:00
</table>
2017-06-08 10:42:09 -04:00
</div>
2017-12-14 18:00:02 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kMk13oQnrvqeC5sprUnM6LptjsDGy32ltfMv4dUyMQHoAojItudLfz9HE6AldTdj4hrvgsEYru36iypAS+puBs8nb3/doXhPooa6mjGyrodgMxP+pVP/qGDqagaW2N+8tMvn75mcpTauNXUzg1OxzSH++cnRAc1n+mTUzQzsre34xZVNp6kN60HdzMCObzsM/mC6xgumfmZYsd5eIKMfjk9RG9aDX8pj+JgUtsjCOiJDHfBYga/z98tlbcjmkNFeaZTasJb0Ds2gFyHRQE8YeJxx33FeiUpA9qp6rrTJX909i9gfR5AVzGyp6Eato6mftCjhV+4xtLJADlh5ud6cV389kaEO+NQRHxI4PWfR4RPhCJ2eM+jZz30o62M3KmsYRl0TIaqgVFkHK4n15c1+iL7fwgnv5+aiS4gMdchkPddANMa3HOwPR01EeQiis87Zjo9zQquK3P6SmkHkHpymCpyPXadDqOK3CbTB2eLHyyKbQ6rSrCtFYeHE0ieLvf6qzlCciSi3HRpCFofsgb1FDvTlbrz8h8XmDFfdi749dgrh31WaR/yoEyLWC6LxWbJ7YBpVt/yB8Or6rX3tAZwN4WNMWx3SbhMr30Oa1g6GPOFhyBbhXeIU1QQmNgIC3OSRDAsj3GdkxXdBXA2UT2JjNELXCdh5uQOuJUbO9UR2oXAleYW2MH96+HIbJ53YuK87RDMQZaKRRJhzpavNedLd5nzXA/gMy8y47sc/B2jW9xOBxwLO1cZ88R3CA9BlQh9UDqLtIDYZ15a3IxMnnjSwUrZu4pTCxjRcZ+PFk9nFx869trt1GvN1Z2sAiHL2tM1LXOfV8uZZOy8FVvBSJXnl0gBHAptQk0JdvWcjfd+SL99JXpt+4MG5tqxZ9bY2Moj1PMtdCP8rI2t2eIM4r6vhkhuBxtdATm9YWSg3qqGtQPrVkOe6l7z2IlJDRsY/RH3PAGTygMgAAAAASUVORK5CYII="> No Public<br />-->
2018-01-11 08:19:59 -05:00
<!--<button class="btn btn-default" onclick="window.open('{{ url_for('panel.dashboard') }}','_self')"><span class="glyphicon glyphicon-plus" aria-hiddent="true"></span> Assign</button> -->
2017-06-04 10:10:38 -04:00
</div>
</div>
</div>
2017-06-28 10:42:21 -04:00
{% endif %}
2017-03-08 13:53:09 -05:00
2017-06-10 23:26:10 -04:00
<div class="row">
</div>
2017-03-08 13:53:09 -05:00
{% endblock %}