diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-04-06 21:36:19 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-04-06 21:36:19 +0200 |
| commit | 0cbdebb1b43dbb19bc672e5c4721e47cfa289149 (patch) | |
| tree | 5d83f3e440b35bca23062932f57e630810695897 /ishtar_common | |
| parent | 434b2bed4cc873e8fb6f7b0d47817f52dbb75f4a (diff) | |
| download | Ishtar-0cbdebb1b43dbb19bc672e5c4721e47cfa289149.tar.bz2 Ishtar-0cbdebb1b43dbb19bc672e5c4721e47cfa289149.zip | |
✨ finds - relations between finds: sheet - sheet relations refactorings
Diffstat (limited to 'ishtar_common')
| -rw-r--r-- | ishtar_common/templates/ishtar/blocks/sheet_relations.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_relations.html b/ishtar_common/templates/ishtar/blocks/sheet_relations.html new file mode 100644 index 000000000..e18cb5532 --- /dev/null +++ b/ishtar_common/templates/ishtar/blocks/sheet_relations.html @@ -0,0 +1,22 @@ +{% load i18n l10n %} + {% if display_relations %} + <h3>{% trans "Relations"%}</h3> + {% for rel in item.right_relations.all %} + {% ifchanged rel.relation_type %} + {% if forloop.counter0 %}</div>{% endif %} + <h4>{{rel.relation_type}}</h4> + <div class="row">{% endifchanged %} + <div class="col-12"> + <a href="#" onclick="load_window('{{relation_url}}{{rel.right_record.pk|unlocalize}}/');" class="display_details"> + <i class="fa fa-info-circle" aria-hidden="true"></i> + </a> {{rel.right_record}} + </div> + {% if forloop.last %} + </div>{% endif %} + {% endfor %} + {% else %} + <div class="alert alert-info" role="alert"> + <i class="fa fa-info-circle" aria-hidden="true"></i> + {% trans "No relations" %} + </div> + {% endif %} |
