template-list.html 1.76 KB
Newer Older
1 2 3 4 5 6 7 8 9
{% extends "dashboard/base.html" %}
{% load i18n %}
{% load render_table from django_tables2 %}
{% block content %}

<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
10
        <a href="{% url "dashboard.views.template-create" %}" class="pull-right btn btn-success btn-xs">
11 12 13 14 15
          <i class="icon-plus"></i> new template
        </a>
        <h3 class="no-margin"><i class="icon-desktop"></i> {% trans "Templates" %}</h3>
      </div>
      <div class="panel-body">
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
        {% render_table table %}
      </div>
    </div>
  </div>
</div>

<div class="row">
  <div class="col-md-6">
    <div class="panel panel-default">
      <div class="panel-heading">
        <a href="{% url "dashboard.views.lease-create" %}" class="pull-right btn btn-success btn-xs" style="margin-right: 10px;">
          <i class="icon-plus"></i> new lease
        </a>
        <h3 class="no-margin"><i class="icon-desktop"></i> {% trans "Leases" %}</h3>
      </div>
      <div class="panel-body">
32 33 34 35 36 37 38
        <div class="" style="max-width: 600px;">
          {% render_table lease_table %}
        </div>
      </div>
    </div>
  </div>

39 40 41 42 43 44 45 46 47 48 49
  <div class="col-md-6">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="no-margin"><i class="icon-desktop"></i> Placeholder</h3>
      </div>
      <div class="panel-body">
        ???
      </div>
    </div>
  </div>
</div>
50 51 52 53 54 55 56

<style>
  .template-list-table td, .template-list-table th,
  .lease-list-table td, .lease-list-table th {
    text-align: center;
  }

57 58 59 60
  .template-list-table td:nth-child(1), .lease-list-table td:nth-child(1) {
    text-align: left;
  }

61 62 63 64 65 66 67 68 69
  .vm-list-table-thin {
    width: 10px;
  }

  .vm-list-table-admin {
    width: 130px;
  }
</style>
{% endblock %}