access.html 1.89 KB
Newer Older
1 2 3
{% load i18n %}
<h3>{% trans "Owner" %}</h3>
<p>
4
  {% if user == instance.owner %}
5
  {% blocktrans %}You are the current owner of this instance.{% endblocktrans %}
6
  {% else %}
7
  {% url "dashboard.views.profile" username=instance.owner.username as url %}
8
  {% blocktrans with owner=instance.owner name=instance.owner.get_full_name%}
9
    The current owner of this instance is <a href="{{url}}">{{name}} ({{owner}})</a>.
10 11 12
  {% endblocktrans %}
  {% endif %}
  {% if user == instance.owner or user.is_superuser %}
13
  <span class="operation-wrapper">
14
  <a href="{% url "dashboard.views.vm-transfer-ownership" instance.pk %}"
15 16
      class="btn btn-link operation">{% trans "Transfer ownership..." %}</a>
  </span>
17
  {% endif %}
18 19
</p>
<h3>{% trans "Permissions"|capfirst %}</h3>
20
{% include "dashboard/_manage_access.html" with table_id="vm-access-table" %}
Kálmán Viktor committed
21

22
<dl class="well well-sm" id="vm-detail-access-help">
23 24 25 26
  <dt>{% trans "Permissions" %}</dt>
  <dd>
  {% trans "With Permissions you can add Users and Groups with different levels to grant access to the virtual machine." %}
  </dd>
27 28
  <dt>{% trans "User" %}</dt>
  <dd>
29
    {% trans "User level grants access to the virtual machine's details page. Users are able to connect to this machine." %}
Kálmán Viktor committed
30
  </dd>
31 32 33
  <dt>{% trans "Operator" %}</dt>
  <dd>
    {% blocktrans %}
34
    Operator level permit the modification of the name and description fields. Allow the operator to open ports and grant/revoke User level access to the virtual machine.
35
    {% endblocktrans %}
Kálmán Viktor committed
36
  </dd>
37
  <dt>{% trans "Owner" %}</dt>
Kálmán Viktor committed
38
  <dd>
39
    {% blocktrans %}
40 41 42
    Owner level enables all operations on the virtual machine. Owners are able to grant/revoke Operator, User and Owner level access to others.
    The accountable owner (the one who deployed the machine) can not be demoted. The accountable ownership can be transferred
    to other User via the "Transfer onwership" button.
43
    {% endblocktrans %}
Kálmán Viktor committed
44 45
  </dd>
</dl>