From 32f3397f26454c541a9b1f08b15337bdce94aa80 Mon Sep 17 00:00:00 2001 From: Anton Kamalov Date: Fri, 22 Nov 2024 00:40:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D0=B3=D0=BE=D0=BD=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BF=D0=BE=D0=B4=20=D0=A0=D0=9F=D0=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/Report/__init__.py | 12 ++++++------ App/Report/templates/report_basic.html | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/App/Report/__init__.py b/App/Report/__init__.py index 74ffaad..73ce20b 100644 --- a/App/Report/__init__.py +++ b/App/Report/__init__.py @@ -20,9 +20,9 @@ def menu(): def create(): if request.method == 'GET': return render_template('report_basic.html', - write=True, - title='Создание отчета', - items = report_list) + is_write=True, + title='Создание отчетов', + items=report_list) else: data = dict(id=request.form.get('category'), month=request.form.get('month'), @@ -46,9 +46,9 @@ def create(): def view(): if request.method == 'GET': return render_template('report_basic.html', - write=False, - title='Просмотр отчета', - items = report_list) + is_write=False, + title='Просмотр отчетов', + items=report_list) else: data = dict(id=request.form.get('category'), month=request.form.get('month'), diff --git a/App/Report/templates/report_basic.html b/App/Report/templates/report_basic.html index dbc693c..ab2de71 100644 --- a/App/Report/templates/report_basic.html +++ b/App/Report/templates/report_basic.html @@ -36,10 +36,10 @@ - + - {% if write %} + {% if is_write %} {% else %}