Polish language
This commit is contained in:
parent
b4a0a4da0c
commit
375bcded4a
@ -385,7 +385,7 @@ background-color:#FF0B7E
|
||||
|
||||
.testContent input[type=submit]{
|
||||
height: 30px;
|
||||
width: 150px;
|
||||
width: 175px;
|
||||
color: #FFF;
|
||||
font-size: 17px;
|
||||
background: #00916E;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Account{% endblock %}
|
||||
{% block title %}Konto{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="accountInfoContainer ">
|
||||
@ -8,9 +8,9 @@
|
||||
<img class="resultImage" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAY1BMVEXp6ekyicju7Orv7eosh8cjhMcbgsbz7+vm6OnS3eVqo9FZm86FsdWlwNrd4+c6jcm3zd/D1OGtx93K2OOPttdhn89Hk8u0y96ZvNna4eaCr9XO2uTG1eJ7q9NHkstyqNKWudgoHijKAAAHxklEQVR4nO2d2XbiMAyGE1nOCglhCQQI9P2fchyWQjsQstiS3ZPvZs70ovBX8ibLkudNTExMTExMTExMTExMTExMTExMTExMTExMTDgGAAgQF9Q/6n/cX0gnIMIoLra72Tm5sl/PF8dKKf4LMpWxDtt9mvtSSvym+U9eJrsic1wlhNmiPuFFmv+bi1A/3R2VLbm/6EAg2m58+ULbD5nKmOuVixohPOw/yburlLJcRo5pBFFsusm7i8RZJri/dXcAFmXQXd7dkLPMFTvCKu2r74KUayd8FbJ6kL6Lxnxp/+IBS18O1KfAYBPbLRGqzWAD3jTinFtEG7D1x+lrCBKLZ5z1SAPezJgXdi4cEG1GjMAfEuXcRitCfNJhwCvBzD6JotAwBB/IM7eg38Cixx6tk8Qk4tb0A1hoteBFYmqTRKFfYGNFblkPYGVAYDMWbZluoNI4i/6QaMuMGqVmBCqJdqyLcNa00P8PYmGBRLEzJrDZwGXc+tQso3kh/CWRf0KNSpMCLRiKMDPoow2IB1aJcDQsUEncc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" alt="Card image cap">
|
||||
<h5 class="accountInfoName">{{user.first_name}} {{user.last_name}}</h5>
|
||||
<p class="accountInfoText"><b>Email:</b> {{user.email}}</p>
|
||||
<button><a href="{% url 'changeEmail' %}">Change email</a></button><br>
|
||||
<button><a href="{% url 'changePassword' %}">Change password</a></button><br>
|
||||
<button><a href="{% url 'changeName' %}">Change name</a></button><br>
|
||||
<button><a href="{% url 'changeEmail' %}">Zmień email</a></button><br>
|
||||
<button><a href="{% url 'changePassword' %}">Zmień hasło</a></button><br>
|
||||
<button><a href="{% url 'changeName' %}">Zmień imię</a></button><br>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
@ -8,30 +8,30 @@
|
||||
{% block content %}
|
||||
<div class="newContainer">
|
||||
<form method="post">
|
||||
<h1>Add questions</h1>
|
||||
<h1>Dodaj pytania</h1>
|
||||
{% for i in request.GET.number_of_questions|times %}
|
||||
<h2>Question {{forloop.counter}}</h2>
|
||||
<label for="desc">Description: </label>
|
||||
<h2>Pytanie {{forloop.counter}}</h2>
|
||||
<label for="desc">Opis: </label>
|
||||
<input id="desc" type="text" name="desc">
|
||||
<br>
|
||||
<br>
|
||||
<label for="ans1">Answer 1: </label>
|
||||
<label for="ans1">Odpowiedź 1: </label>
|
||||
<input id="ans1" type="text" name="ans1">
|
||||
<br>
|
||||
<br>
|
||||
<label for="ans2">Answer 2: </label>
|
||||
<label for="ans2">Odpowiedź 2: </label>
|
||||
<input id="ans2" type="text" name="ans2">
|
||||
<br>
|
||||
<br>
|
||||
<label for="ans3">Answer 3: </label>
|
||||
<label for="ans3">Odpowiedź 3: </label>
|
||||
<input id="ans3" type="text" name="ans3">
|
||||
<br>
|
||||
<br>
|
||||
<label for="ans4">Answer 4: </label>
|
||||
<label for="ans4">Odpowiedź 4: </label>
|
||||
<input id="ans4" type="text" name="ans4">
|
||||
<br>
|
||||
<br>
|
||||
<label for="is_correct">Correct: </label>
|
||||
<label for="is_correct">Poprawna: </label>
|
||||
<select name="is_correct" id="is_correct">
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
@ -41,7 +41,7 @@
|
||||
<br>
|
||||
<br>
|
||||
{% endfor %}
|
||||
<input type="submit" value="Create test">
|
||||
<input type="submit" value="Stwórz test">
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -12,12 +12,12 @@
|
||||
|
||||
<body>
|
||||
<div class="sidenav">
|
||||
<a href="{% url 'home' %}">Home</a>
|
||||
<a href="{% url 'newTest' %}">Create test</a>
|
||||
<a href="{% url 'myTests' %}">Your tests</a>
|
||||
<a href="{% url 'solvedTests' %}">Solved tests</a>
|
||||
<a href="{% url 'help' %}">Help</a>
|
||||
<p>Categories</p>
|
||||
<a href="{% url 'home' %}">Strona główna</a>
|
||||
<a href="{% url 'newTest' %}">Stwórz test</a>
|
||||
<a href="{% url 'myTests' %}">Twoje testy</a>
|
||||
<a href="{% url 'solvedTests' %}">Wyniki testów</a>
|
||||
<a href="{% url 'help' %}">Pomoc</a>
|
||||
<p>Kategorie</p>
|
||||
<a href="/category/JezykPolski">Język polski</a>
|
||||
<a href="/category/JezykAngielski">Język angielski</a>
|
||||
<a href="/category/JezykNiemiecki">Język niemiecki</a>
|
||||
@ -28,9 +28,9 @@
|
||||
<a href="/category/Biologia">Biologia</a>
|
||||
<a href="/category/Geografia">Geografia</a>
|
||||
<a href="/category/Historia">Historia</a>
|
||||
<p>Account</p>
|
||||
<a href="/users/account">Settings</a>
|
||||
<a href="/users/logout">Logout</a>
|
||||
<p>Konto</p>
|
||||
<a href="/users/account">Ustawienia</a>
|
||||
<a href="/users/logout">Wyloguj</a>
|
||||
</div>
|
||||
|
||||
<div id="content", name="content", class="main">
|
||||
|
@ -1,24 +1,24 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Category - {{name}}{% endblock %}
|
||||
{% block title %}Kategoria - {{name}}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Tests in {{name}} category</h1>
|
||||
<h1>Testy w kategorii {{name}}</h1>
|
||||
{% for test in tests %}
|
||||
<div class="mainTestContainer">
|
||||
<div class="mainTestName">
|
||||
{{test.name}}
|
||||
</div>
|
||||
<div class="mainTestMeta">
|
||||
<div class="left">Category: {{test.category}}</div>
|
||||
<div class="center">Passing score: {{test.passing_score}}</div>
|
||||
<div class="right">Questions: {{test.questions|length}}</div>
|
||||
<div class="left">Kategoria: {{test.category}}</div>
|
||||
<div class="center">Próg zaliczenia: {{test.passing_score}}</div>
|
||||
<div class="right">Ilość pytań: {{test.questions|length}}</div>
|
||||
</div>
|
||||
<div class="mainTestDesc">
|
||||
<!-- TODO 250 words limit-->
|
||||
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.
|
||||
</div>
|
||||
<button><a href="/tests/{{test.id}}/show">Start</a></button>
|
||||
<button><a href="/tests/{{test.id}}/show">Rozwiąż</a></button>
|
||||
</div>
|
||||
<br>
|
||||
{% endfor %}
|
||||
|
@ -1,15 +1,15 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Update email{% endblock %}
|
||||
{% block title %}Zaktualizuj email{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="accountInfoContainer ">
|
||||
<form method="post">
|
||||
<input type="email" id="email" name="email" class="form-control" placeholder="Email" required><br><br>
|
||||
<input type="submit" value="Change email"><br><br>
|
||||
<input type="submit" value="Zaktualizuj email"><br><br>
|
||||
</form>
|
||||
<div class="linkDefault">
|
||||
<a href="{% url 'account' %}">Back to dashboard</a>
|
||||
<a href="{% url 'account' %}">Wróc</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,16 +1,16 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Update name{% endblock %}
|
||||
{% block title %}Zaktualizuj imię{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="accountInfoContainer ">
|
||||
<form method="post">
|
||||
<input type="text" id="firstName" name="firstName" class="form-control" placeholder="First Name" required><br><br>
|
||||
<input type="text" id="lastName" name="lastName" class="form-control" placeholder="First Name" required><br><br>
|
||||
<input type="submit" value="Change name"><br><br>
|
||||
<input type="text" id="firstName" name="firstName" class="form-control" placeholder="Imię" required><br><br>
|
||||
<input type="text" id="lastName" name="lastName" class="form-control" placeholder="Nazwisko" required><br><br>
|
||||
<input type="submit" value="Zaktualizuj imię"><br><br>
|
||||
</form>
|
||||
<div class="linkDefault">
|
||||
<a href="{% url 'account' %}">Back to dashboard</a>
|
||||
<a href="{% url 'account' %}">Wróć</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -1,17 +1,17 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Update name{% endblock %}
|
||||
{% block title %}Zmień hasło{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="accountInfoContainer ">
|
||||
<form method="post">
|
||||
<input type="password" id="oldPassword" name="oldPassword" class="form-control" placeholder="Old password" required><br><br>
|
||||
<input type="password" id="newPassword" name="newPassword" class="form-control" placeholder="New password" required><br><br>
|
||||
<input type="password" id="repeatPassword" name="repeatPassword" class="form-control" placeholder="Repeat password" required><br><br>
|
||||
<input type="submit" value="Change password"><br><br>
|
||||
<input type="password" id="oldPassword" name="oldPassword" class="form-control" placeholder="Stare hasło" required><br><br>
|
||||
<input type="password" id="newPassword" name="newPassword" class="form-control" placeholder="Nowe hasło" required><br><br>
|
||||
<input type="password" id="repeatPassword" name="repeatPassword" class="form-control" placeholder="Powtórz hasło" required><br><br>
|
||||
<input type="submit" value="Zmień hasło"><br><br>
|
||||
</form>
|
||||
<div class="linkDefault">
|
||||
<a href="{% url 'account' %}">Back to dashboard</a>
|
||||
<a href="{% url 'account' %}">Wróć</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
@ -2,16 +2,16 @@
|
||||
{% load filters %}
|
||||
{% load rest_framework %}
|
||||
|
||||
{% block title %}New Test{% endblock %}
|
||||
{% block title %}Nowy test{% endblock %}
|
||||
{% block content %}
|
||||
<div class="newContainer">
|
||||
<form method="post">
|
||||
<h1>Create test</h1>
|
||||
<label for="name">Name: </label>
|
||||
<input id="name" type="text" name="name" value="New test">
|
||||
<h1>Stwórz test</h1>
|
||||
<label for="name">Nazwa: </label>
|
||||
<input id="name" type="text" name="name" value="Nowy test">
|
||||
<br>
|
||||
<br>
|
||||
<label for="category">Category: </label>
|
||||
<label for="category">Kategoria: </label>
|
||||
<select name="category" id="category">
|
||||
<option value="JezykPolski">Język Polski</option>
|
||||
<option value="JezykAngielski">Język Angielski</option>
|
||||
@ -26,11 +26,11 @@
|
||||
</select>
|
||||
<br>
|
||||
<br>
|
||||
<label for="questions">Number of questions: </label>
|
||||
<label for="questions">Ilość pytań: </label>
|
||||
<input id="questions" type="number" name="questions" value="2">
|
||||
<br>
|
||||
<br>
|
||||
<label for="passing">Passing score: </label>
|
||||
<label for="passing">Próg zaliczenia: </label>
|
||||
<input id="passing" type="number" name="passing" value="5">
|
||||
<br>
|
||||
<br>
|
||||
|
@ -1,7 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
{% load rest_framework %}
|
||||
|
||||
{% block title %}{{ test.name }} - Edit{% endblock %}
|
||||
{% block title %}{{ test.name }} - Edytuj{% endblock %}
|
||||
|
||||
{% block additional_head %}
|
||||
<meta charset="UTF-8">
|
||||
@ -12,24 +12,24 @@
|
||||
<form method="post" novalidate>
|
||||
<div class="editContainerSection">
|
||||
<div class="editContainerLine">
|
||||
<label for="name"><h2>Name:</h2></label>
|
||||
<input id="name" type="text" name="name" value="New test">
|
||||
<label for="name"><h2>Nazwa:</h2></label>
|
||||
<input id="name" type="text" name="name" value="{{ test.name }}">
|
||||
</div>
|
||||
</div>
|
||||
{% for question in test.questions.all %}
|
||||
<div class="editContainerSection">
|
||||
<div class="editContainerLine">
|
||||
<label for="desc"><b>Description:</b></label>
|
||||
<label for="desc"><b>Opis:</b></label>
|
||||
<input id="desc" type="text" name="desc", value="{{ question.description }}">
|
||||
</div>
|
||||
{% for answer in question.answers.all %}
|
||||
<div class="editContainerLine">
|
||||
<label for="ans-{{ forloop.counter }}">Answer {{ forloop.counter }}: </label>
|
||||
<label for="ans-{{ forloop.counter }}">Odpowiedź {{ forloop.counter }}: </label>
|
||||
<input id="ans-{{ forloop.counter }}" type="text" name="ans-{{ forloop.counter }}", value="{{ answer.description }}">
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="editContainerLine">
|
||||
<label for="category">Correct: </label>
|
||||
<label for="category">Poprawna: </label>
|
||||
<select name="category" id="category">
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
@ -40,7 +40,7 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="testContent">
|
||||
<input type="submit" value="Edit test">
|
||||
<input type="submit" value="Zapisz test">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -43,7 +43,7 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
<div class="testContent">
|
||||
<input type="submit" value="Send answers">
|
||||
<input type="submit" value="Wyślij odpowiedzi">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -1,24 +1,24 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Home{% endblock %}
|
||||
{% block title %}Główna{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Take some tests!</h1>
|
||||
<h1>Rozwiąż sobie jakiś test!</h1>
|
||||
{% for test in tests %}
|
||||
<div class="mainTestContainer">
|
||||
<div class="mainTestName">
|
||||
{{test.name}}
|
||||
</div>
|
||||
<div class="mainTestMeta">
|
||||
<div class="left">Category: {{test.category}}</div>
|
||||
<div class="center">Passing score: {{test.passing_score}}</div>
|
||||
<div class="right">Questions: {{test.questions|length}}</div>
|
||||
<div class="left">Kategoria: {{test.category}}</div>
|
||||
<div class="center">Próg zaliczenia: {{test.passing_score}}</div>
|
||||
<div class="right">Ilość pytań: {{test.questions|length}}</div>
|
||||
</div>
|
||||
<div class="mainTestDesc">
|
||||
<!-- TODO 250 words limit-->
|
||||
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.
|
||||
</div>
|
||||
<button><a href="/tests/{{test.id}}/show">Start</a></button>
|
||||
<button><a href="/tests/{{test.id}}/show">Rozwiąż</a></button>
|
||||
</div>
|
||||
<br>
|
||||
{% endfor %}
|
||||
|
@ -1,9 +1,9 @@
|
||||
{% extends "authBase.html" %}
|
||||
|
||||
{% block title %}Login{% endblock %}
|
||||
{% block title %}Zaloguj się{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Log In</h2>
|
||||
<h2>Zaloguj się</h2>
|
||||
<form method="post"> {% csrf_token %}
|
||||
|
||||
{% for field in login_form %}
|
||||
@ -15,9 +15,12 @@
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endfor %}
|
||||
<input type="submit" value="Login">
|
||||
<input type="submit" value="Zaloguj się">
|
||||
<div class="linkDefault">
|
||||
<a href="{% url 'resetPassword' %}">Reset password</a>
|
||||
<a href="{% url 'resetPassword' %}">Zapomniałem hasła</a>
|
||||
</div>
|
||||
<div class="linkDefault">
|
||||
<a href="{% url 'welcome' %}">Wróć</a>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
@ -1,11 +1,11 @@
|
||||
{% extends "authBase.html" %}
|
||||
|
||||
{% block title %}Log Out{% endblock %}
|
||||
{% block title %}Wyloguj{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>You have been logged out successfully</p>
|
||||
<p>Zostałeś pomyślnie wylogowany</p>
|
||||
<div class="linkDefault">
|
||||
<a href="{% url 'welcome' %}">Continue</a>
|
||||
<a href="{% url 'welcome' %}">Kontynuj</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
@ -1,27 +1,27 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}My Tests{% endblock %}
|
||||
{% block title %}Moje testy{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Check your tests</h1>
|
||||
<h1>Twoje testy</h1>
|
||||
{% for test in tests %}
|
||||
<div class="mainTestContainer">
|
||||
<div class="mainTestName">
|
||||
{{test.name}}
|
||||
</div>
|
||||
<div class="mainTestMeta">
|
||||
<div class="left">Category: {{test.category}}</div>
|
||||
<div class="center">Passing score: {{test.passing_score}}</div>
|
||||
<div class="right">Questions: {{test.questions|length}}</div>
|
||||
<div class="left">Kategoria: {{test.category}}</div>
|
||||
<div class="center">Próg zaliczenia: {{test.passing_score}}</div>
|
||||
<div class="right">Ilość pytań: {{test.questions|length}}</div>
|
||||
</div>
|
||||
<div class="mainTestDesc">
|
||||
<!-- TODO 250 words limit-->
|
||||
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.
|
||||
</div>
|
||||
<div class="tripleButton">
|
||||
<button><a href="/tests/{{test.id}}/show">Start</a></button>
|
||||
<button><a href="/tests/{{test.id}}/edit">Edit</a></button>
|
||||
<button style="background:#FF0000;"><a href="/tests/{{test.id}}/edit">Delete</a></button>
|
||||
<button><a href="/tests/{{test.id}}/show">Rozwiąż</a></button>
|
||||
<button><a href="/tests/{{test.id}}/edit">Edytuj</a></button>
|
||||
<button style="background:#FF0000;"><a href="/tests/{{test.id}}/edit">Usuń</a></button>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
@ -1,9 +1,9 @@
|
||||
{% extends "authBase.html" %}
|
||||
|
||||
{% block title %}Create account{% endblock %}
|
||||
{% block title %}Stwórz konto{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Register</h2>
|
||||
<h2>Stwórz konto</h2>
|
||||
<form method="post"> {% csrf_token %}
|
||||
|
||||
{% for field in registration_form %}
|
||||
@ -15,7 +15,7 @@
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endfor %}
|
||||
<input type="submit" value="Crete account">
|
||||
<input type="submit" value="Zarejestruj się">
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
|
@ -1,9 +1,11 @@
|
||||
{% extends "authBase.html" %}
|
||||
|
||||
{% block title %}Log Out{% endblock %}
|
||||
{% block title %}Zarejestrowano{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<p>Account have been created successfully. Now you can log in</p>
|
||||
<a href="{% url 'login' %}">Log in now</a>
|
||||
<p>Konto zostało pomyśłnie utworzone. <br> Możesz się już zalogować.</p>
|
||||
<div class="linkDefault">
|
||||
<a href="{% url 'login' %}">Zaloguj się</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
@ -1,15 +1,15 @@
|
||||
{% extends "authBase.html" %}
|
||||
|
||||
{% block title %}Reset password{% endblock %}
|
||||
{% block title %}Reset hasła{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Reset password</h2>
|
||||
<h2>Reset hasła</h2>
|
||||
<form method="post">
|
||||
<input type="email" id="email" name="email" class="form-control" placeholder="Email" required><br><br>
|
||||
<input type="submit" value="Send email"><br><br>
|
||||
<input type="submit" value="Wyślij email"><br><br>
|
||||
</form>
|
||||
<div class="linkDefault">
|
||||
<a href="{% url 'login' %}">Go back</a>
|
||||
<a href="{% url 'login' %}">Wróć</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
@ -1,16 +1,16 @@
|
||||
{% extends "authBase.html" %}
|
||||
|
||||
{% block title %}Confirm reset password{% endblock %}
|
||||
{% block title %}Reset hasła{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Create new password</h2>
|
||||
<h2>Stwórz nowe hasło</h2>
|
||||
<form method="post">
|
||||
<input type="text" id="uid" name="uid" class="form-control" placeholder="UID" required><br><br>
|
||||
<input type="text" id="token" name="token" class="form-control" placeholder="TOken" required><br><br>
|
||||
<input type="text" id="code" name="code" class="form-control" placeholder="Code" required><br><br>
|
||||
<input type="password" id="newPassword" name="newPassword" class="form-control" placeholder="New password" required><br><br>
|
||||
<input type="password" id="repeatNewPassword" name="repeatNewPassword" class="form-control" placeholder="Repeat password" required><br><br>
|
||||
<input type="submit" value="Save new password"><br><br>
|
||||
<input type="text" id="token" name="token" class="form-control" placeholder="Token" required><br><br>
|
||||
<input type="text" id="code" name="code" class="form-control" placeholder="Kod" required><br><br>
|
||||
<input type="password" id="newPassword" name="newPassword" class="form-control" placeholder="Nowe hasło" required><br><br>
|
||||
<input type="password" id="repeatNewPassword" name="repeatNewPassword" class="form-control" placeholder="Powtórz hasło" required><br><br>
|
||||
<input type="submit" value="Zapisz nowe hasło"><br><br>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
|
@ -20,12 +20,12 @@
|
||||
Słabiutko, ale następnym razem będzie lepiej
|
||||
{% endif %}
|
||||
</h5>
|
||||
<h5 class="resultScore">Result: {{ status }}</h5>
|
||||
<h5 class="resultText">Score: {{ points }}</h5>
|
||||
<h5 class="resultText">Passing Score: {{ passing }}</h5>
|
||||
<h5 class="resultText">Max Score: {{ max }}</h5>
|
||||
<h5 class="resultText">Percentage: {{ percentage }}</h5>
|
||||
<button class="defaultButton"><a href="{% url 'home' %}">Home</a></button>
|
||||
<h5 class="resultScore">Rezultat: {{ status }}</h5>
|
||||
<h5 class="resultText">Twój wynik: {{ points }}</h5>
|
||||
<h5 class="resultText">Próg zaliczenia: {{ passing }}</h5>
|
||||
<h5 class="resultText">Maksymalny wynik: {{ max }}</h5>
|
||||
<h5 class="resultText">Wynik procentowy: {{ percentage }}</h5>
|
||||
<button class="defaultButton"><a href="{% url 'home' %}">Strona główna</a></button>
|
||||
{# <p class="resultText">Correct answers: 3</p>#}
|
||||
{# <p class="resultText">Incorrect answers: 2</p>#}
|
||||
{# <p class="resultText">Total questions: 5</p>#}
|
||||
|
@ -1,19 +1,18 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Home{% endblock %}
|
||||
{% block title %}Rozwiązane testy{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Your history</h1>
|
||||
<h1>Historia rozwiązanych testów</h1>
|
||||
{% for test in tests %}
|
||||
<div class="solvedTestContainer">
|
||||
<div class="mainTestName">
|
||||
{{test.name}}
|
||||
</div>
|
||||
<div class="solvedTestText">Your score: {{test.score}}</div>
|
||||
<div class="solvedTestText">Passing score: {{test.passing_score}}</div>
|
||||
<div class="solvedTestText">Max score: {{test.max}}</div>
|
||||
<div class="solvedTestText">Percentage: {{test.percentage}}</div>
|
||||
<!-- <button><a href="/tests/{{test.id}}/show">Try again</a></button>-->
|
||||
<div class="solvedTestText">Twój wynik: {{test.score}}</div>
|
||||
<div class="solvedTestText">Próg zaliczenia: {{test.passing_score}}</div>
|
||||
<div class="solvedTestText">Maksymalny wynik: {{test.max}}</div>
|
||||
<div class="solvedTestText">Wynik procentowy: {{test.percentage}}</div>
|
||||
</div>
|
||||
<br>
|
||||
{% endfor %}
|
||||
|
@ -4,8 +4,8 @@
|
||||
|
||||
{% block content %}
|
||||
<h2>Super Original and Innovative Test App</h2>
|
||||
<h3>Get started now</h3>
|
||||
<button onclick="location.href = 'users/login'">Already have an account</button>
|
||||
<button onclick="location.href = 'users/register'">Create new account</button>
|
||||
<h3>Zacznij już teraz!</h3>
|
||||
<button onclick="location.href = 'users/login'">Zaloguj się</button>
|
||||
<button onclick="location.href = 'users/register'">Swtórz nowe konto</button>
|
||||
{% endblock %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user