...
 
Commits (4)
......@@ -82,7 +82,8 @@ TEMPLATES = [
'OPTIONS': {
'builtins': [
'grouprise.core.templatetags.defaultfilters',
'grouprise.core.templatetags.defaulttags'
'grouprise.core.templatetags.defaulttags',
'rules.templatetags.rules',
],
'context_processors': [
# django core
......
{% load events %}
<div class="box box-striped">
<div class="box-inner">
<header class="box-header">
......@@ -9,6 +7,7 @@
</h2>
</header>
<div class="box-content" {% if component_id %}data-component="calendar" id="{{ component_id }}"{% endif %}>
{% load events %}
{% calendar associations size='preview' %}
{% if upcoming %}
......
......@@ -17,8 +17,7 @@
{% endblock %}
{% block heading_title %}
<h1 class="content-classification">Kalenderexport</h1>
{% include "core/_decoration.html" with icon="sg-calendar" %}
{% include 'core/_heading.html' with title='Kalenderexport' icon='sg-calendar' %}
{% endblock %}
{% block content %}
......
{% extends 'stadt/stadt.html' %}
{% load events groups rules %}
{% block title %}Veranstaltungen - {{ block.super }}{% endblock %}
{% block menu %}{% with menu='event' %}{{ block.super }}{% endwith %}{% endblock %}
{% block heading_title %}
{% include 'core/_heading.html' with title='Veranstaltungen' icon='sg-pen' %}
......@@ -11,17 +9,19 @@
{% block heading_toolbar %}
{% has_perm 'content.create' user as can_create %}
{% if can_create %}
{% url 'create-event' as url %}
{% include 'core/_toolbutton.html' with label='<i class="sg sg-add"></i> Veranstaltung' url=url %}
{% url 'create-event' as create_url %}
{% include 'core/_toolbutton.html' with label='<i class="sg sg-add"></i> Veranstaltung' url=create_url %}
{% endif %}
{% endblock %}
{% block sidebar %}
{% load groups %}
{% sidebar_groups user %}
{% endblock %}
{% block content %}
<div class="calendar-wrapper" id="calendar-page" data-component="calendar" data-component-basepath="{% url 'events' %}">
{% load events %}
{% calendar view.get_content size="large" %}
<div class="content-list">
......