From 717891869de7282bf02a3d83d23e27e6128d7d5b Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sat, 14 Mar 2020 15:36:03 +0100 Subject: [PATCH] Auto-complete first and last name for credits and debits --- apps/note/views.py | 3 +-- locale/de/LC_MESSAGES/django.po | 2 +- locale/fr/LC_MESSAGES/django.po | 4 ++-- templates/note/transaction_form.html | 27 ++++++++++++++++++++++----- 4 files changed, 26 insertions(+), 10 deletions(-) diff --git a/apps/note/views.py b/apps/note/views.py index 07fd03f8..23326e5f 100644 --- a/apps/note/views.py +++ b/apps/note/views.py @@ -28,8 +28,7 @@ class TransactionCreate(LoginRequiredMixin, TemplateView): Add some context variables in template such as page title """ context = super().get_context_data(**kwargs) - context['title'] = _('Transfer money from your account ' - 'to one or others') + context['title'] = _('Transfer money') context['polymorphic_ctype'] = ContentType.objects.get_for_model(Transaction).pk context['special_polymorphic_ctype'] = ContentType.objects.get_for_model(SpecialTransaction).pk context['special_types'] = NoteSpecial.objects.order_by("special_type").all() diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po index 6c60a9fe..489e64cd 100644 --- a/locale/de/LC_MESSAGES/django.po +++ b/locale/de/LC_MESSAGES/django.po @@ -443,7 +443,7 @@ msgid "membership transactions" msgstr "" #: apps/note/views.py:29 -msgid "Transfer money from your account to one or others" +msgid "Transfer money" msgstr "" #: apps/note/views.py:139 diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po index 6fb317ad..695a789b 100644 --- a/locale/fr/LC_MESSAGES/django.po +++ b/locale/fr/LC_MESSAGES/django.po @@ -456,8 +456,8 @@ msgid "membership transactions" msgstr "transactions d'adhésion" #: apps/note/views.py:29 -msgid "Transfer money from your account to one or others" -msgstr "Transfert d'argent de ton compte vers un ou plusieurs autres" +msgid "Transfer money" +msgstr "Transferts d'argent" #: note_kfet/settings/__init__.py:63 msgid "" diff --git a/templates/note/transaction_form.html b/templates/note/transaction_form.html index 0543f2d6..c6f3cd9b 100644 --- a/templates/note/transaction_form.html +++ b/templates/note/transaction_form.html @@ -9,7 +9,7 @@ SPDX-License-Identifier: GPL-2.0-or-later
-
+