1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-20 17:41:55 +02:00

start activity view and urls

This commit is contained in:
Pierre-antoine Comby
2020-03-01 17:16:38 +01:00
parent f1cedc902e
commit d5f718fbba
5 changed files with 77 additions and 2 deletions

View File

@ -0,0 +1,26 @@
{% 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 %}