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:
23
note/views.py
Normal file
23
note/views.py
Normal 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')
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user