summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/project/stacks/templates/stacks/_preview_details.html
blob: 12d131a48896b96cba53ca3d9da5a4f77f02e96e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{% extends "horizon/common/_modal.html" %}
{% load i18n %}

{% block modal-header %}{% trans "Stack Preview" %}{% endblock %}

{% block modal-body %}
<div class="row-fluid stack-preview detail">
<form>
  <dl class="dl-horizontal">
    {% for key, value in stack_preview.items %}
      {% if key != 'parameters' and key != 'resources' and key != 'links' %}
        <dt>{{ key }}</dt>
        <dd>{{ value }}</dd>
      {% endif %}
    {% endfor %}
  </dl>

  {% if stack_preview.parameters %}
    <dt>{% trans "Parameters" %}</dt>
    <hr class="header_rule">
    <dl class="dl-horizontal">
      {% for key, value in stack_preview.parameters.items %}
        <dt>{{ key }}</dt>
        <dd>{{ value }}</dd>
      {% endfor %}
    </dl>
  {% endif %}

  {% if stack_preview.links %}
    <dt>{% trans "Links" %}</dt>
    <hr class="header_rule">
      {% for link in stack_preview.links %}
        <dl class="dl-horizontal">
        <dt>{{ link.rel }}</dt>
        <dd>{{ link.href }}</dd>
        </dl>
      {% endfor %}
  {% endif %}

  {% if stack_preview.resources %}
    <dt>{% trans "Resources" %}</dt>
      {% for resource in stack_preview.resources %}
        <hr class="header_rule">
        <dl class="dl-horizontal">
        {% for key, value in resource.items %}
          <dt>{{ key }}</dt>
          <dd>{{ value }}</dd>
        {% endfor %}
        </dl>
      {% endfor %}
  {% endif %}
</form>
</div>
{% endblock %}

{% block modal-footer %}
  <a href="{% url 'horizon:project:stacks:index' %}" class="btn btn-default cancel">{% trans "Close" %}</a>
{% endblock %}