group-list.html 1.68 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
{% extends "dashboard/base.html" %}
{% load i18n %}
{% load render_table from django_tables2 %}
{% block content %}

<div class="alert alert-info">
  Tip #1: you can select multiple vm instances while holding down the <strong>CTRL</strong> key!
</div>

<div class="alert alert-info">
  Tip #2: if you want to select multiple instances by one click select an instance then hold down <strong>SHIFT</strong> key and select another one!
</div>

<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
18
        <h3 class="no-margin"><i class="icon-group"></i> Your groups</h3>
19
      </div>
20
      <div class="panel-body group-list-group-control">
21 22
        <p>
          <strong>Group actions</strong>
23 24
          <button id="group-list-group-select-all" class="btn btn-info btn-xs">Select all</button>
          <a id="group-list-group-delete" disabled href="#" class="btn btn-danger btn-xs"><i class="icon-remove"></i> Discard</a>
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
        </p>
	</div>
	<div id="table_container">
	
        <div id="rendered_table" class="panel-body">
	      {% render_table table %}
        </div>
      </div>
    </div>
  </div>
</div>
<style>
  .popover {
    max-width: 600px;
  }

41
  .group-list-selected, .group-list-selected td {
42 43 44
    background-color: #e8e8e8 !important;
  }

45
  .group-list-selected:hover, .group-list-selected:hover td {
46 47 48
    background-color: #d0d0d0 !important;
  }

49
  .group-list-selected td:first-child {
50 51 52
    font-weight: bold;
  }

53
  .group-list-table-thin {
54 55 56
    width: 10px;
  }

57
  .group-list-table-admin {
58 59 60 61 62 63
    width: 130px;
  }
</style>
{% endblock %}

{% block extra_js %}
64
<script src="{{ STATIC_URL}}dashboard/group-list.js"></script>
65
{% endblock %}