Fix title underline error in faq.rst
[ganeti_webmgr.git] / muddle / templates / view / list_fields_direct.html
blob34a23886ca8bf00eeecb260e89b9002de0979359
1 {% load maintain_extras %}
3 {% with wrapper as child_wrapper %}
4 {% for field, wrapper in wrapper.parent.items %}
6 {% with instance|get:field as instance %}
7 {% for field in wrapper.fields %}
8 <td>
9 {% if child_wrapper|link %}
10 <a href="{{ROOT}}/o/{{child_wrapper.name}}/{{instance.id}}" class="model">{{instance|get:field}}</a>
11 {% else %}
12 {{instance|get:field}}
13 {% endif %}
14 </td>
15 {% endfor %}
16 {% for field, wrapper in wrapper.one_to_one.items %}
17 {% with instance|get:field as instance %}
18 <td>
19 {% if wrapper|link %}
20 <a href="{{ROOT}}/o/{{wrapper.name}}/{{instance.id}}" class="model">
21 {% for field in wrapper.fields %}
22 {{ instance|get:field }}
23 {% endfor %}
24 </a>
25 {% else %}
26 {% for field in wrapper.fields %}
27 {{ instance|get:field }}
28 {% endfor %}
29 {% endif %}
30 </td>
31 {% endwith %}
32 {% endfor %}
33 {% endwith %}
34 {% endfor %}
35 {% endwith %}
37 {% for field, wrapper in wrapper.children.items %}
38 {% with instance|get:field as instance %}
39 {% if instance %}
40 {% for field, wrapper in wrapper.many_to_one.items %}
41 {% with instance|get:field as instance %}
42 <td>
43 {% if wrapper|link %}
44 <a href="{{ROOT}}/o/{{wrapper.name}}/{{instance.id}}" class="model">
45 {% for field in wrapper.fields %}
46 <b>{{field}}:</b> {{ instance|get:field }}
47 {% endfor %}
48 </a>
49 {% else %}
50 {% for field in wrapper.fields %}
51 <b>{{field}}:</b> {{ instance|get:field }}
52 {% endfor %}
53 {% endif %}
54 </td>
55 {% endwith %}
56 {% endfor %}
57 {% for field in wrapper.fields %}
58 <td>
59 {% if wrapper|link %}
60 <a href="{{ROOT}}/o/{{wrapper.name}}/{{instance.id}}" class="model">{{instance|get:field}}</a>
61 {% else %}
62 {{instance|get:field}}
63 {% endif %}
64 </td>
65 {% endfor %}
66 {% endif %}
67 {% endwith %}
68 {% endfor %}
70 {% for field in wrapper.fields %}
71 <td>
72 {% if link %}
73 <a href="{{ROOT}}/o/{{wrapper.name}}/{{instance.id}}" class="model">{{instance|get:field}}</a>
74 {% else %}
75 {{instance|get:field}}
76 {% endif %}
77 </td>
78 {% endfor %}