diff --git a/static/style.css b/static/style.css index 74f851b..b269ce6 100644 --- a/static/style.css +++ b/static/style.css @@ -54,13 +54,13 @@ border: 2px solid #FF0B7E; padding: 20px; width: 800px; - height: 225px; + height: 150px; } .mainTestName { font-weight: bold; font-size: 20px; - padding-bottom: 20px; + padding-bottom: 25px; } .solvedTestContainer { @@ -78,7 +78,7 @@ .mainTestMeta { font-size: 13px; - padding-bottom: 15px; + padding-bottom: 40px; color: #808080; /*transform: translate(150%,0%);*/ width:100%; diff --git a/templates/category.html b/templates/category.html index 82425e6..37d78bc 100644 --- a/templates/category.html +++ b/templates/category.html @@ -14,10 +14,9 @@
Próg zaliczenia: {{test.passing_score}}
Ilość pytań: {{test.questions|length}}
-
- - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus volutpat scelerisque tortor, id sodales leo finibus id. Vivamus id viverra nunc, ac faucibus metus. Nulla a mauris imperdiet sapien lobortis dapibus. Quisque ornare posuere pulvinar. -
+ + +
diff --git a/templates/deletedTest.html b/templates/deletedTest.html deleted file mode 100644 index baf3f6c..0000000 --- a/templates/deletedTest.html +++ /dev/null @@ -1,4 +0,0 @@ -Usunąłeś test! - - -Home \ No newline at end of file diff --git a/templates/home.html b/templates/home.html index 9eb0822..f2137d1 100644 --- a/templates/home.html +++ b/templates/home.html @@ -14,10 +14,9 @@
Próg zaliczenia: {{test.passing_score}}
Ilość pytań: {{test.questions|length}}
-
- - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus volutpat scelerisque tortor, id sodales leo finibus id. Vivamus id viverra nunc, ac faucibus metus. Nulla a mauris imperdiet sapien lobortis dapibus. Quisque ornare posuere pulvinar. -
+ + +
diff --git a/templates/myTests.html b/templates/myTests.html index 1162360..5d1bf94 100644 --- a/templates/myTests.html +++ b/templates/myTests.html @@ -14,10 +14,9 @@
Próg zaliczenia: {{test.passing_score}}
Ilość pytań: {{test.questions|length}}
-
- - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus volutpat scelerisque tortor, id sodales leo finibus id. Vivamus id viverra nunc, ac faucibus metus. Nulla a mauris imperdiet sapien lobortis dapibus. Quisque ornare posuere pulvinar. -
+ + +
diff --git a/trials/views.py b/trials/views.py index 674b718..6b4c35b 100644 --- a/trials/views.py +++ b/trials/views.py @@ -20,8 +20,6 @@ import requests def addTest(request): - if request.POST: - return redirect('home') return render(request, 'createTest.html') @@ -71,6 +69,7 @@ def addQuestions(request, **kwargs): ] }) Test.objects.create(name=name, passing_score=passing, category=category, questions=questions, user=user) + return redirect('home') return render(request, 'addQuestions.html') @@ -163,9 +162,7 @@ class EditTestTemplateView(TemplateView): def deleteTest(request, test_id): Test.objects.filter(id=test_id).delete() - return render(request, 'deletedTest.html') - - + return redirect('myTests') class TestModelViewSet(viewsets.ModelViewSet):