1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-12-14 07:15:16 +01:00

The beginning of transfer view

This commit is contained in:
Alexandre Iooss
2019-07-17 13:34:07 +02:00
parent 849bb71d5d
commit 7bafbeb93a
7 changed files with 97 additions and 37 deletions

23
note/views.py Normal file
View File

@@ -0,0 +1,23 @@
# -*- mode: python; coding: utf-8 -*-
# Copyright (C) 2018-2019 by BDE ENS Paris-Saclay
# SPDX-License-Identifier: GPL-3.0-or-later
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from django.utils.translation import gettext_lazy as _
@login_required
def transfer(request):
"""
Show transfer page
TODO: If user have sufficient rights, they can transfer from an other note
"""
return render(
request,
'note/transfer.html',
{
'title': _('Transfer money from your account to one or others')
}
)