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 @@ - - {% if trips %}Logbook trips on this date:
- - {% for item in trips %} - {% if item.isLogbookEntry %}    {{item.title|safe}}
{% endif %} - {% empty %} - None found for this date, bit there should be..
- {% endfor %} -
- {% else %} - No Logbook trips found for this date.
- {% endif %} - - {% if svxothers %}Survex files on this date:
- - {% for item in svxothers %} -     {{item.path|safe}}
- {% empty %} - None found for this date.
- {% endfor %} -
- {% else %} - No survex files found for this date.
- {% endif %} - + {% include 'onthisdate.html' %} {% if metadataurl %}
JSON
@@ -270,4 +246,5 @@ {% endif %} {% endif %} + {% endblock %}