InQuire/templates/courses.html
2019-01-13 14:08:32 +01:00

67 lines
2.6 KiB
HTML

{% extends "index.html" %}
{% block title %}Lista kursów{% endblock %}
{% block content %}
<div class="container header__container">
<div class="row">
<div class="col s12">
<div class="card color--primary white-text">
<span class="card-title">Lista kursów</span>
</div>
</div>
</div>
</div>
<div class="container body__container">
<div class="row">
<div class="col s12">
<div class="card color--primary white-text">
<div class="card-content">
<span class="card-title card-title__body"></span>
<ul id="questions-list">
<li class="row">
<span class="col s7" style="display:flex; align-items:left; text-align: left">
Algorytmy Kombinatoryczne w Bioinformatyce
</span>
<a id="1" name="Algorytmy Kombinatoryczne w Bioinformatyce" class="col s5 btn--answer waves-effect waves-light btn-large red">OTWÓRZ</a>
</li>
<li class="row">
<span class="col s7" style="display:flex; align-items:center; text-align: left">
Optymalizacja kombinatoryczna
</span>
<a id="2" name="Optymalizacja kombinatoryczna" class="col s3 btn--answer waves-effect waves-light btn-large red">OTWÓRZ</a>
</li>
<li class="row" style="margin-bottom: 0">
<span class="col s7" style="display:flex; align-items:center; text-align: left">
Podstawy JavaScriptu dla programistów C#
</span>
<a id="3" name="Podstawy JavaScriptu dla programistów C#" class="col s3 btn--answer waves-effect waves-light btn-large red">OTWÓRZ</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block script %}
<script>
/////////// DO OGARNIĘCIA /////////////
$('.btn--answer').on('click', () => {
var link = '/lectures/' + event.target.id;
window.location.href = link;
/*
$.ajax({
url: link,
type: 'POST',
succes: function(response) {
location.reload();
}
});
alertify.notify('Pomyślnie oceniono pytanie', 'success', 3);
location.reload();
*/
});
</script>
{% endblock %}