summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-07-03 18:39:53 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-07-03 18:39:53 +0200
commit78c510e0901d4b7d32e0de3796f1883a8d939e42 (patch)
tree39b252983eceaa65f49bd54b74af1d2850266d1b
parent1ce8309d0ef2e94e0778bb81b099b806db08c571 (diff)
downloadIshtar-78c510e0901d4b7d32e0de3796f1883a8d939e42.tar.bz2
Ishtar-78c510e0901d4b7d32e0de3796f1883a8d939e42.zip
List documentations in sheets (closes #502)
-rw-r--r--ishtar/templates/sheet_contextrecord.html12
-rw-r--r--ishtar/templates/sheet_operation.html12
2 files changed, 12 insertions, 12 deletions
diff --git a/ishtar/templates/sheet_contextrecord.html b/ishtar/templates/sheet_contextrecord.html
index 13fd786a3..2f16c8bb3 100644
--- a/ishtar/templates/sheet_contextrecord.html
+++ b/ishtar/templates/sheet_contextrecord.html
@@ -83,14 +83,14 @@
<th>{% trans "Title" %}</th>
<th>{% trans "Type" %}</th>
<th>{% trans "Authors" %}</th>
- <th>{% trans "Localisation" %}</th>
+ {#<th>{% trans "Localisation" %}</th>#}
</tr>
- {% for doc in item.operation.documents.all %}
+ {% for doc in item.source.all %}
<tr>
- <td>{{ doc.title }}</td>
- <td class='string'>{{doc.type}}</td>
- <td>{{ doc.author.all|join:", " }}</td>
- <td>{{ doc.localisation }}</td>
+ <td class='string'>{{ doc.title }}</td>
+ <td class='string'>{{doc.source_type}}</td>
+ <td class='string'>{{ doc.authors.all|join:", " }}</td>
+ {#<td>{{ doc.localisation }}</td>#}
</tr>
{% empty %}
<tr><td colspan="4" class='no_items'>{% trans "No document associated to this context record" %}</td></tr>
diff --git a/ishtar/templates/sheet_operation.html b/ishtar/templates/sheet_operation.html
index db9d22cee..4db45cc78 100644
--- a/ishtar/templates/sheet_operation.html
+++ b/ishtar/templates/sheet_operation.html
@@ -104,14 +104,14 @@
<th>{% trans "Title" %}</th>
<th>{% trans "Type" %}</th>
<th>{% trans "Authors" %}</th>
- <th>{% trans "Localisation" %}</th>
+ {#<th>{% trans "Localisation" %}</th>#}
</tr>
- {% for doc in item.doc.all %}
+ {% for doc in item.source.all %}
<tr>
- <td>{{ doc.title }}</td>
- <td class='string'>{{doc.type}}</td>
- <td>{{ doc.author.all|join:", " }}</td>
- <td>{{ doc.localisation }}</td>
+ <td class='string'>{{ doc.title }}</td>
+ <td class='string'>{{doc.source_type}}</td>
+ <td class='string'>{{ doc.authors.all|join:", " }}</td>
+ {#<td>{{ doc.localisation }}</td>#}
</tr>
{% empty %}
<tr><td colspan="4" class='no_items'>{% trans "No scientific document associated to this operation" %}</td></tr>