mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-27 02:43:01 +00:00
27 lines
590 B
HTML
27 lines
590 B
HTML
|
{% extends "base.html" %}
|
||
|
{% load render_table from django_tables2 %}
|
||
|
{% load i18n crispy_forms_tags%}
|
||
|
{% block content %}
|
||
|
|
||
|
<a class="btn btn-primary" href="{% url 'activity:activity_create' %}">{% trans 'New activity' %}</a>
|
||
|
|
||
|
<div class="row">
|
||
|
<div id="replaceable-content" class="col-6">
|
||
|
{% render_table table %}
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
{% endblock %}
|
||
|
|
||
|
{% block extrajavascript %}
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
$(document).ready(function($) {
|
||
|
$(".table-row").click(function() {
|
||
|
window.document.location = $(this).data("href");
|
||
|
});
|
||
|
});
|
||
|
|
||
|
</script>
|
||
|
{% endblock %}
|