diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2018-09-03 20:58:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-03 20:58:28 +0200 |
| commit | bfac0c19788118c27bcf60b0b35adbc78af21370 (patch) | |
| tree | e2adcfa48a3acca0aebf0a7a56d7e5af9c0869c0 /ihatemoney/templates | |
| parent | c34583d07971e6436f5b9e559a97c8f734b46679 (diff) | |
| download | ihatemoney-mirror-bfac0c19788118c27bcf60b0b35adbc78af21370.zip ihatemoney-mirror-bfac0c19788118c27bcf60b0b35adbc78af21370.tar.gz ihatemoney-mirror-bfac0c19788118c27bcf60b0b35adbc78af21370.tar.bz2 | |
Sort members alphabetically in the new bill form. (#374)
Fixes #333
Diffstat (limited to 'ihatemoney/templates')
| -rw-r--r-- | ihatemoney/templates/forms.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ihatemoney/templates/forms.html b/ihatemoney/templates/forms.html index 6d99dfd..d67a7ea 100644 --- a/ihatemoney/templates/forms.html +++ b/ihatemoney/templates/forms.html @@ -101,7 +101,7 @@ <div class="controls col-9"> <ul id="payed_for" class="inputs-list"> <p><a href="#" id="selectall" onclick="selectCheckboxes(true)">{{ _("Select all") }}</a> | <a href="#" id="selectnone" onclick="selectCheckboxes(false)">{{_("Select none")}}</a></p> - {% for key, value, checked in form.payed_for.iter_choices() %} + {% for key, value, checked in form.payed_for.iter_choices() | sort(attribute='1') %} <p class="form-check"><label for="payed_for-{{key}}" class="form-check-label"><input name="payed_for" type="checkbox" {% if checked %}checked{% endif %} class="form-check-input" value="{{key}}" id="payed_for-{{key}}"/><span>{{value}}</span></label></p> {% endfor %} </ul> |
