2016-05-03 05:59:40 +00:00
|
|
|
{% extends "hosting/base_short.html" %}
|
Created signup view. Added login after signup.Added signup url to nosystem app urls.py. Added logout view, Added logout button on nabber, Added password reset form, Added password view , Added password reset html, Added password reset email for nosystemd app. Added confirm_reset_password.html, Added confirm_ reset password view, Added confirm reset password form, Fixed reset password token generation, Started donation view, Added donation view, Added donation.html, Added donation form, Adding donation.js lib in order to capture stripe payments for nosystem app.
2016-07-22 06:24:32 +00:00
|
|
|
{% load staticfiles bootstrap3 i18n %}
|
2017-08-11 19:19:20 +00:00
|
|
|
{% block content %}
|
2016-05-03 05:59:40 +00:00
|
|
|
<div>
|
2017-06-01 16:24:50 +00:00
|
|
|
<div class="dashboard-container">
|
2016-05-03 05:59:40 +00:00
|
|
|
<div class="row">
|
2017-06-09 18:55:45 +00:00
|
|
|
<div class="col-xs-12 container-table">
|
2017-08-11 19:19:20 +00:00
|
|
|
<table class="table borderless table-hover">
|
|
|
|
<h3 class="pull-left"><i class="fa fa-server fa-separate" aria-hidden="true"></i> {% trans "Virtual Machines"%}</h3>
|
2017-05-12 05:56:35 +00:00
|
|
|
<div class="col-md-12">
|
|
|
|
<br/>
|
|
|
|
{% if messages %}
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
{% for message in messages %}
|
|
|
|
<span>{{ message }}</span>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2017-05-14 10:22:10 +00:00
|
|
|
{% if not error %}
|
2017-06-01 16:24:50 +00:00
|
|
|
<p class="pull-right btn-create-vm">
|
2017-08-11 19:19:20 +00:00
|
|
|
<a class="btn btn-success" href="{% url 'hosting:create_virtual_machine' %}" >{% trans "Create VM"%} </a>
|
2017-05-14 10:22:10 +00:00
|
|
|
</p>
|
|
|
|
<br/>
|
2017-08-11 19:19:20 +00:00
|
|
|
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2016-07-19 02:24:44 +00:00
|
|
|
<th>{% trans "ID"%}</th>
|
2017-05-23 16:50:02 +00:00
|
|
|
<th>{% trans "Ipv4"%}</th>
|
|
|
|
<th>{% trans "Ipv6"%}</th>
|
2016-07-19 02:24:44 +00:00
|
|
|
<th>{% trans "Status"%}</th>
|
2016-05-03 05:59:40 +00:00
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2017-08-11 19:19:20 +00:00
|
|
|
<tbody>
|
2017-05-12 10:07:05 +00:00
|
|
|
{% for vm in vms %}
|
2017-05-09 00:02:29 +00:00
|
|
|
<tr>
|
2017-08-11 19:19:20 +00:00
|
|
|
<td scope="row">{{vm.vm_id}}</td>
|
2017-05-23 16:52:53 +00:00
|
|
|
{% if vm.ipv6 %}
|
2017-08-11 19:19:20 +00:00
|
|
|
<td>{{vm.ipv4}}</td>
|
|
|
|
|
|
|
|
<td>{{vm.ipv6}}</td>
|
2017-05-23 16:48:02 +00:00
|
|
|
{% endif %}
|
2017-05-23 16:50:02 +00:00
|
|
|
|
2016-06-03 05:07:47 +00:00
|
|
|
<td>
|
2017-08-11 19:19:20 +00:00
|
|
|
|
2017-05-09 00:02:29 +00:00
|
|
|
{% if vm.state == 'ACTIVE' %}
|
|
|
|
<span class="h3 label label-success"><strong> {{vm.state}}</strong></span>
|
2017-05-12 17:13:18 +00:00
|
|
|
{% elif vm.state == 'FAILED' %}
|
2017-05-09 00:02:29 +00:00
|
|
|
<span class="h3 label label-danger"><strong>{{vm.state}}</strong></span>
|
2016-06-03 05:07:47 +00:00
|
|
|
{% else %}
|
2017-05-09 00:02:29 +00:00
|
|
|
<span class="h3 label label-warning"><strong>{{vm.state}}</strong></span>
|
2017-08-11 19:19:20 +00:00
|
|
|
{% endif %}
|
2016-06-03 05:07:47 +00:00
|
|
|
|
2017-08-11 19:19:20 +00:00
|
|
|
</td>
|
2016-05-03 05:59:40 +00:00
|
|
|
<td>
|
2017-05-12 10:07:05 +00:00
|
|
|
<button type="button" class="btn btn-default"><a
|
|
|
|
href="{% url 'hosting:virtual_machines' vm.vm_id %}">{% trans "View Detail"%}</a></button>
|
2017-05-09 00:02:29 +00:00
|
|
|
</td>
|
2016-05-03 05:59:40 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
2017-08-11 19:19:20 +00:00
|
|
|
</tbody>
|
2017-05-14 10:22:10 +00:00
|
|
|
{% endif %}
|
2017-08-11 19:19:20 +00:00
|
|
|
</table>
|
2016-05-03 05:59:40 +00:00
|
|
|
|
|
|
|
{% if is_paginated %}
|
|
|
|
<div class="pagination">
|
|
|
|
<span class="page-links">
|
|
|
|
{% if page_obj.has_previous %}
|
2016-07-19 02:24:44 +00:00
|
|
|
<a href="{{request.path}}?page={{ page_obj.previous_page_number }}">{% trans "previous"%}</a>
|
2016-05-03 05:59:40 +00:00
|
|
|
{% endif %}
|
|
|
|
<span class="page-current">
|
|
|
|
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}.
|
|
|
|
</span>
|
|
|
|
{% if page_obj.has_next %}
|
2016-07-19 02:24:44 +00:00
|
|
|
<a href="{{request.path}}?page={{ page_obj.next_page_number }}">{% trans "next"%}</a>
|
2016-05-03 05:59:40 +00:00
|
|
|
{% endif %}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2017-08-11 19:19:20 +00:00
|
|
|
|
2016-05-03 05:59:40 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2017-05-12 10:07:05 +00:00
|
|
|
{%endblock%}
|