Константин Лебединский 1 week ago
parent
commit
e6b85f3944
  1. 7
      flask_app/app/templates/tests/list.html

7
flask_app/app/templates/tests/list.html

@ -25,7 +25,7 @@
</a>
</div>
<div class="list-row__side">
<button type="button" class="btn btn-ghost btn-start-pass" data-test-id="{{ t.id }}">Пройти</button>
<button type="button" class="btn btn-ghost btn-start-pass" data-test-id="{{ t.id }}">Продолжить</button>
</div>
</li>
{% endfor %}
@ -49,7 +49,7 @@
</a>
</div>
<div class="list-row__side">
<button type="button" class="btn btn-ghost btn-start-pass" data-test-id="{{ t.id }}">Пройти</button>
<button type="button" class="btn btn-ghost btn-start-pass" data-test-id="{{ t.id }}">Продолжить</button>
</div>
</li>
{% endfor %}
@ -199,8 +199,7 @@
const testId = btn.dataset.testId;
if (!testId) return;
btn.disabled = true;
const oldText = btn.textContent;
btn.textContent = '…';
btn.textContent = 'Продолжить…';
try {
const r = await fetch(`/api/tests/${testId}/attempts/start`, {
method: 'POST',

Loading…
Cancel
Save