test: fixed course creation test

This commit is contained in:
Jannat Patel
2023-05-10 19:35:45 +05:30
parent 752fe5b4ba
commit 0e444ab7d3
20 changed files with 372 additions and 675 deletions

View File

@@ -35,7 +35,7 @@
<div class="mt-5">
<ul class="list-unstyled">
{% for quiz in quiz_list %}
<li>
<li class="mt-2">
<a class="clickable" href="/quizzes/{{ quiz.name }}">
{{ quiz.title }}
</a>
@@ -58,22 +58,3 @@
</div>
</div>
{% endmacro %}
{% block script %}
<script>
frappe.ready(() => {
$(".copy-quiz-id").click((e) => {
e.preventDefault();
frappe.utils.copy_to_clipboard($(e.currentTarget).data("name"));
});
$(".quiz-row").click((e) => {
if (!$(e.target).hasClass("copy-quiz-id")) {
window.location.href = `/quizzes/${$(e.currentTarget).data('name')}`;
}
});
});
</script>
{% endblock %}