Skip to content
Snippets Groups Projects
Commit 17d87128 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Let scheduler make use of the full window/screen

parent 8e674cbe
No related branches found
No related tags found
1 merge request!137Improve scheduling
Pipeline #117659 passed
{% extends "admin/base_site.html" %}
{% load tags_AKModel %}
{% load tags_AKPlan %}
{% load i18n %}
{% load l10n %}
{% load tz %}
{% load static %}
{% load tags_AKPlan %}
{% block title %}{% trans "Scheduling for" %} {{event}}{% endblock %}
{% load bootstrap4 %}
{% load fontawesome_5 %}
{% get_current_language as LANGUAGE_CODE %}
{% localize on %}
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}{% trans "Scheduling for" %} {{event}}{% endblock %}</title>
{# Load Bootstrap CSS and JavaScript as well as font awesome #}
{% bootstrap_css %}
{% bootstrap_javascript jquery=True %}
{% fontawesome_5_static %}
{% block extrahead %}
{{ block.super }}
{% include "AKModel/load_fullcalendar.html" %}
<style>
......@@ -26,6 +38,25 @@
.fc-v-event {
border-width: 4px;
}
html, body {
height: 100%;
margin: 0;
}
.box {
display: flex;
flex-flow: column;
height: 100%;
}
.box .row.header, .box .row.footer {
flex: 0 1 auto;
}
.box .row.content {
flex: 1 1 auto;
}
</style>
<script>
......@@ -81,6 +112,7 @@
right: 'resourceTimelineDayVert,resourceTimelineDayHoriz,resourceTimelineEventVert,resourceTimelineEventHoriz'
},
//aspectRatio: 2,
height: '100%',
themeSystem: 'bootstrap',
// Adapt to user selected locale
locale: '{{ LANGUAGE_CODE }}',
......@@ -181,11 +213,17 @@
});
});
</script>
{% endblock extrahead %}
{% block content %}
<div class="row" style="margin-bottom: 50px;">
</head>
<body>
<div class="box p-3">
<div class="row header pb-2">
<div class="col-sm-10">
<h2 class="d-inline">{% trans "Scheduling for" %} {{event}}</h2> <h5 class="d-inline ml-2"><a href="{% url 'admin:event_status' event.slug %}">{% trans "Event Status" %} {% fa5_icon "level-up-alt" "fas" %}</a></h5>
</div>
<div class="col-sm-2"></div>
</div>
<div class="row content">
<div class="col-md-10 col-lg-10">
<div id="planCalendar"></div>
</div>
......@@ -203,8 +241,11 @@
{% endfor %}
{% endfor %}
</div>
</div>
<div class="row footer">
<!-- Currently not used -->
</div>
</div>
<a href="{% url 'admin:event_status' event.slug %}">{% trans "Event Status" %}</a>
{% endblock %}
</body>
</html>
{% endlocalize %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment