icon and title

This commit is contained in:
Alicja Cięciwa
2020-11-11 21:20:23 +01:00
parent c26db18f86
commit e19cde9660
9 changed files with 17 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ from work.forms import HoursInputForm
def get_basic_workdata(request):
title = 'Rejestracja'
if request.method == 'POST':
form = HoursInputForm(request.POST)
if form.is_valid():
@@ -11,5 +12,5 @@ def get_basic_workdata(request):
else:
form = HoursInputForm()
return render(request, 'inputhours.html', {'form': form})
return render(request, 'inputhours.html', {'form': form, 'title': title})