index-templates.html 1.59 KB
Newer Older
1
{% load i18n %}
2 3
<div class="panel panel-default">
  <div class="panel-heading">
Kálmán Viktor committed
4
    <span class="btn btn-default btn-xs infobtn pull-right" title="{% trans "Help" %}">
5 6
      <i class="icon-info-sign"></i>
    </span>
7
    <h3 class="no-margin"><i class="icon-puzzle-piece"></i> {% trans "Templates" %}
8 9
    </h3>
  </div>
10
  <div class="list-group" id="dashboard-template-list">
11 12
    {% for t in templates %}
    <a href="{% url "dashboard.views.template-detail" pk=t.pk %}" class="list-group-item">
13 14 15 16
      <span class="index-template-list-name">
        <i class="icon-{{ t.os_type }}"></i> {{ t.name }} 
      </span>
      <small class="text-muted index-template-list-system">{{ t.system }}</small>
17
      <div class="pull-right vm-create" data-template="{{ t.pk }}"><i title="{% trans "Start vm instance" %}" class="icon-play"></i></div>
18
      <div class="clearfix"></div>
19
    </a>
20 21 22 23 24 25
    {% empty %}
      <div class="alert alert-warning" style="margin: 10px;">
        <p>
          {% trans "You don't have any templates, however you can still start virtual machines and even save them as new templates!" %}
        </p>
      </div>
26
    {% endfor %}
27 28
    <div href="#" class="list-group-item list-group-footer text-right">
      <p>
29 30 31
        <a href="{% url "dashboard.views.template-list" %}" class="btn btn-primary btn-xs">
          <i class="icon-chevron-sign-right"></i> {% trans "show all" %}
        </a>
32
        <a href="{% url "dashboard.views.template-choose" %}" class="btn btn-success btn-xs template-choose">
33 34
          <i class="icon-plus-sign"></i> {% trans "new" %}
        </a>
35 36 37 38
      </p>
    </div>
  </div>
</div>