Child: [77df3f] (diff)

Download this file

detail.html    33 lines (32 with data), 1.2 kB

 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
{% load staticfiles %}
<ul>
{% for i in analysis.instance_set.all %}
<li>
<a id_instance="{{ i.id }}" href="#{{ i.actual_instance.name }}">{{ i.actual_instance.name }}</a>&nbsp;
<a target="_blank" href="{% url 'OSProject_detail' i.id %}"><img src="{% static "images/i.png" %}"/></a>
</li>
{% empty %}
<li>No projects yet, please add at least one.</li>
{% endfor %}
</ul>
{% for i in analysis.instance_set.all %}
<div id="{{ i.actual_instance.name }}">
<br>
{% for ospf in i.actual_instance.osprojectforge_set.all %}
<!-- <PRE>
instance_id {{ instance_id }}
{{ i.id }} {{ i.name }}
ospf.os_project.instance_id: {{ ospf.os_project.instance_id }}
i.actual_instance.instance_id: {{ i.actual_instance.instance_id }} {{ i.actual_instance.name }}
</PRE>
-->
<a href="{% url 'OSProjectForge_delete' ospf.id analysis.id %}">
<img src="{% static "images/delete.jpg" %}" />
</a>
<a href="{% url 'OSProjectForge_detail' ospf.id %}" target="_blank">
<img src="{% static "images/" %}{{ ospf.forge.id }}.jpg" />
</a>
{{ ospf.name }}
{% endfor %}
</div>
{% endfor %}