blob: e53416b6aab4ca6ce20c63d1cf08dccc8ab90416 (
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
|
{% load i18n %}
{% load url from future %}
{% include 'horizon/common/_form_errors.html' with form=form %}
<table class="table">
<tr>
<th>{% trans "Name" %}</th>
<th>{% trans "Node profiles" %}</th>
<th>{% trans "Nodes" %}</th>
{% if show_change %}
<th>{% trans "Change" %}</th>
{% endif %}
</tr>
{% for role_id, label, fields in form.roles_fieldset %}
<tbody>
{% for field in fields %}
<tr>
{% if forloop.first %}
<td rowspan="{{ fields|length }}">
{% if editable %}
<a
href="{% url 'horizon:infrastructure:overcloud:role_edit' role_id %}"
class="ajax-modal"
><i class="icon-pencil"></i></a>
{% endif %}
{{ label }}
</td>
{% endif %}
<td>
{% if field.field.label %}
{{ field.label }}
{% elif editable %}
(<a
href="{% url 'horizon:infrastructure:overcloud:role_edit' role_id %}"
class="ajax-modal"
>{% trans "Add a node profile" %}</a>)
{% else %}
({% trans "No node profile" %})
{% endif %}
</td>
<td>
{{ field }}
{% for error in field.errors %}
<span class="help-inline">{{ error }}</span>
{% endfor %}
</td>
{% if show_change %}
<td class="changed"><span class="muted">no change</span></td>
{% endif %}
</tr>
{% endfor %}
</tbody>
{% endfor %}
</table>
|