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 %}
|
2016-05-03 05:59:40 +00:00
|
|
|
{% block content %}
|
|
|
|
<div>
|
|
|
|
<div class="container dashboard-container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8 col-md-offset-2">
|
|
|
|
<table class="table borderless table-hover">
|
2017-05-04 04:19:32 +00:00
|
|
|
<h3 class="pull-left"><i class="fa fa-server" aria-hidden="true"></i> {% trans "Virtual Machines"%} </h3>
|
|
|
|
<p class="pull-right">
|
|
|
|
<a class="btn btn-success" href="{% url 'hosting:create-virtual-machine' %}" >{% trans "Create VM"%} </a>
|
|
|
|
</p>
|
2016-05-03 05:59:40 +00:00
|
|
|
<br/>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2016-07-19 02:24:44 +00:00
|
|
|
<th>{% trans "ID"%}</th>
|
|
|
|
<th>{% trans "Amount"%}</th>
|
|
|
|
<th>{% trans "Status"%}</th>
|
2016-05-03 05:59:40 +00:00
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2017-05-09 00:02:29 +00:00
|
|
|
{% for vm in vms_opennebula %}
|
|
|
|
<tr>
|
|
|
|
<td scope="row">{{vm.deploy_id}}</td>
|
2016-05-03 05:59:40 +00:00
|
|
|
<td>{{vm.price}} CHF</td>
|
2016-06-03 05:07:47 +00:00
|
|
|
<td>
|
2017-05-09 00:02:29 +00:00
|
|
|
|
|
|
|
{% if vm.state == 'ACTIVE' %}
|
|
|
|
<span class="h3 label label-success"><strong> {{vm.state}}</strong></span>
|
|
|
|
{% elif vm.state == 'POWEROFF' %}
|
|
|
|
<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>
|
2016-06-03 05:07:47 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
</td>
|
2016-05-03 05:59:40 +00:00
|
|
|
<td>
|
2017-05-09 00:02:29 +00:00
|
|
|
<button type="button" class="btn btn-default"><a href="{% url 'hosting:virtual_machines' vm.id %}">{% trans "View Detail"%}</a></button>
|
|
|
|
</td>
|
2016-05-03 05:59:40 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{% 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 %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{%endblock%}
|