index-templates.html 1.1 KB
Newer Older
1
{% load i18n %}
2 3
<div class="panel panel-default">
  <div class="panel-heading">
4
    <span class="btn btn-default btn-xs infobtn pull-right" title="Halp">
5 6
      <i class="icon-info-sign"></i>
    </span>
7 8 9 10
    <h3 class="no-margin"><i class="icon-puzzle-piece"></i> Templates
    </h3>
  </div>
  <div class="list-group" id="vm-list-view">
11 12 13 14
    {% for t in templates %}
    <a href="{% url "dashboard.views.template-detail" pk=t.pk %}" class="list-group-item">
      <i class="icon-{{ t.os_type }}"></i> {{ t.name }} <small class="text-muted">{{ t.system }}</small>
      <div class="pull-right vm-create" data-template="{{ t.pk }}"><i title="{% trans "Start vm instance" %}" class="icon-play"></i></div>
15
    </a>
16
    {% endfor %}
17 18
    <div href="#" class="list-group-item list-group-footer text-right">
      <p>
19
        <a href="{% url "dashboard.views.template-list" %}" class="btn btn-primary btn-xs"><i class="icon-chevron-sign-right"></i> show all  </a>
20
        <a href="{% url "dashboard.views.template-create" %}" class="btn btn-success btn-xs"><i class="icon-plus-sign"></i> new </a>
21 22 23 24
      </p>
    </div>
  </div>
</div>