diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-03-21 14:56:34 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-03-21 14:56:34 +0000 |
commit | 6b3cb9f02ea9477834e685d4bb5c87a1d13a7fc7 (patch) | |
tree | 873f858b385e101285d8b694c235b56f3a376f70 | |
parent | 435f3cf00b1291eee5f3fef61ce40db7851a43ec (diff) | |
download | troggle-6b3cb9f02ea9477834e685d4bb5c87a1d13a7fc7.tar.gz troggle-6b3cb9f02ea9477834e685d4bb5c87a1d13a7fc7.tar.bz2 troggle-6b3cb9f02ea9477834e685d4bb5c87a1d13a7fc7.zip |
samedate for all wallets on wallet edit form
-rw-r--r-- | core/views/wallets_edit.py | 2 | ||||
-rw-r--r-- | templates/walletform.html | 27 |
2 files changed, 4 insertions, 25 deletions
diff --git a/core/views/wallets_edit.py b/core/views/wallets_edit.py index 9cb667e..4ce590f 100644 --- a/core/views/wallets_edit.py +++ b/core/views/wallets_edit.py @@ -845,6 +845,7 @@ def walletedit(request, path=None): if samedate: svxothers = SurvexFile.objects.filter(survexblock__date=samedate).distinct() trips = LogbookEntry.objects.filter(date=samedate) + wallets = Wallet.objects.filter(walletdate=samedate) else: svxothers = None trips = None @@ -887,6 +888,7 @@ def walletedit(request, path=None): "checked": checked, "trips": trips, "manywallets": [thiswallet], + "wallets": wallets, "svxothers": svxothers, "create": create, "metadataurl": metadataurl, diff --git a/templates/walletform.html b/templates/walletform.html index 801b5a2..5290933 100644 --- a/templates/walletform.html +++ b/templates/walletform.html @@ -230,31 +230,7 @@ </div> <span style="font-family: monospace; font-size: 150%; "> - - {% if trips %}<u>Logbook trips</u> on this date:<br> - <span style="font-size: 70%; "> - {% for item in trips %} - {% if item.isLogbookEntry %} <a href="{{item.get_absolute_url}}">{{item.title|safe}}</a><br/>{% endif %} - {% empty %} - <em>None found for this date, bit there should be..</em><br> - {% endfor %} - </span> - {% else %} - <em>No Logbook trips found for this date.</em><br> - {% endif %} - - {% if svxothers %}<u>Survex files</u> on this date:<br> - <span style="font-size: 70%; "> - {% for item in svxothers %} - <a href="/survexfile/{{item.path}}">{{item.path|safe}}</a><br/> - {% empty %} - <em>None found for this date.</em><br> - {% endfor %} - </span> - {% else %} - <em>No survex files found for this date.</em><br> - {% endif %} - + {% include 'onthisdate.html' %} {% if metadataurl %}<span style="font-size: 70%; "><details><summary> JSON <br> </summary> @@ -270,4 +246,5 @@ {% endif %} {% endif %} <!-- not create --> </span> + {% endblock %} |