2020-03-01 16:16:38 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load render_table from django_tables2 %}
|
|
|
|
{% load i18n crispy_forms_tags%}
|
|
|
|
{% block content %}
|
2020-03-28 15:52:58 +00:00
|
|
|
<h2>{% trans "Upcoming activities" %}</h2>
|
|
|
|
{% if upcoming.data %}
|
|
|
|
{% render_table upcoming %}
|
|
|
|
{% else %}
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
{% trans "There is no planned activity." %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-03-01 16:16:38 +00:00
|
|
|
|
2020-03-27 00:31:54 +00:00
|
|
|
<a class="btn btn-primary" href="{% url 'activity:activity_create' %}">{% trans 'New activity' %}</a>
|
2020-03-28 15:52:58 +00:00
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
<h2>{% trans "All activities" %}</h2>
|
|
|
|
|
|
|
|
{% render_table table %}
|
2020-03-01 16:16:38 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block extrajavascript %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
$(document).ready(function($) {
|
|
|
|
$(".table-row").click(function() {
|
|
|
|
window.document.location = $(this).data("href");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|