template-list.html 1.53 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
{% endblock %}
51 52 53 54

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