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 %}