Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • 520-akowner
  • 520-fix-event-wizard-datepicker
  • 520-fix-scheduling
  • 520-improve-scheduling
  • 520-improve-scheduling-2
  • 520-improve-submission
  • 520-improve-trackmanager
  • 520-improve-wall
  • 520-message-resolved
  • 520-status
  • 520-upgrades
  • add_express_interest_to_ak_overview
  • admin-production-color
  • bugfixes
  • csp
  • featire-ical-export
  • feature-ak-requirement-lists
  • feature-akslide-export-better-filename
  • feature-akslides
  • feature-better-admin
  • feature-better-cv-list
  • feature-colors
  • feature-constraint-checking
  • feature-constraint-checking-wip
  • feature-dashboard-history-button
  • feature-event-status
  • feature-event-wizard
  • feature-export-flag
  • feature-improve-admin
  • feature-improve-filters
  • feature-improved-user-creation-workflow
  • feature-interest-view
  • feature-mails
  • feature-modular-status
  • feature-plan-autoreload
  • feature-present-default
  • feature-register-link
  • feature-remaining-constraint-validation
  • feature-room-import
  • feature-scheduler-improve
  • feature-scheduling-2.0
  • feature-special-attention
  • feature-time-input
  • feature-tracker
  • feature-wiki-wishes
  • feature-wish-slots
  • feature-wizard-buttons
  • features-availabilities
  • fix-ak-times-above-folg
  • fix-api
  • fix-constraint-violation-string
  • fix-cv-checking
  • fix-default-slot-length
  • fix-default-slot-localization
  • fix-doc-minor
  • fix-duration-display
  • fix-event-tz-pytz-update
  • fix-history-interest
  • fix-interest-view
  • fix-js
  • fix-pipeline
  • fix-plan-timezone-now
  • fix-room-add
  • fix-scheduling-drag
  • fix-slot-defaultlength
  • fix-timezone
  • fix-translation-scheduling
  • fix-virtual-room-admin
  • fix-wizard-csp
  • font-locally
  • improve-admin
  • improve-online
  • improve-slides
  • improve-submission-coupling
  • interest_restriction
  • main
  • master
  • meta-debug-toolbar
  • meta-export
  • meta-makemessages
  • meta-performance
  • meta-tests
  • meta-tests-gitlab-test
  • meta-upgrades
  • mollux-master-patch-02906
  • port-availabilites-fullcalendar
  • qs
  • remove-tags
  • renovate/configure
  • renovate/django-4.x
  • renovate/django-5.x
  • renovate/django-bootstrap-datepicker-plus-5.x
  • renovate/django-bootstrap5-23.x
  • renovate/django-bootstrap5-24.x
  • renovate/django-compressor-4.x
  • renovate/django-debug-toolbar-4.x
  • renovate/django-registration-redux-2.x
  • renovate/django-simple-history-3.x
  • renovate/django-split-settings-1.x
  • renovate/django-timezone-field-5.x
100 results

Target

Select target project
  • konstantin/akplanning
  • matedealer/akplanning
  • kif/akplanning
  • mirco/akplanning
  • lordofthevoid/akplanning
  • voidptr/akplanning
  • xayomer/akplanning-fork
  • mollux/akplanning
  • neumantm/akplanning
  • mmarx/akplanning
  • nerf/akplanning
  • felix_bonn/akplanning
  • sebastian.uschmann/akplanning
13 results
Select Git revision
  • komasolver
  • main
  • renovate/django_csp-4.x
  • renovate/jsonschema-4.x
4 results
Show changes
Commits on Source (11)
Showing
with 591 additions and 312 deletions
from django import forms
from django.apps import apps
from django.contrib import admin
from django.contrib.admin import SimpleListFilter, RelatedFieldListFilter
from django.contrib import admin, messages
from django.contrib.admin import SimpleListFilter, RelatedFieldListFilter, action
from django.db.models import Count, F
from django.db.models.functions import Now
from django.shortcuts import render, redirect
from django.urls import reverse_lazy
from django.utils import timezone
......@@ -15,7 +16,7 @@ from simple_history.admin import SimpleHistoryAdmin
from AKModel.availability.forms import AvailabilitiesFormMixin
from AKModel.availability.models import Availability
from AKModel.models import Event, AKOwner, AKCategory, AKTrack, AKTag, AKRequirement, AK, AKSlot, Room, AKOrgaMessage, \
ConstraintViolation
ConstraintViolation, DefaultSlot
from AKModel.urls import get_admin_urls_event_wizard, get_admin_urls_event
......@@ -31,11 +32,12 @@ class EventRelatedFieldListFilter(RelatedFieldListFilter):
@admin.register(Event)
class EventAdmin(admin.ModelAdmin):
model = Event
list_display = ['name', 'status_url', 'place', 'start', 'end', 'active']
list_display = ['name', 'status_url', 'place', 'start', 'end', 'active', 'plan_hidden']
list_filter = ['active']
list_editable = ['active']
ordering = ['-start']
readonly_fields = ['status_url']
readonly_fields = ['status_url', 'plan_hidden', 'plan_published_at']
actions = ['publish', 'unpublish']
def add_view(self, request, form_url='', extra_context=None):
# Always use wizard to create new events (the built-in form wouldn't work anyways since the timezone cannot
......@@ -62,6 +64,16 @@ class EventAdmin(admin.ModelAdmin):
timezone.activate(obj.timezone)
return super().get_form(request, obj, change, **kwargs)
@action(description=_('Publish plan'))
def publish(self, request, queryset):
queryset.update(plan_published_at=Now(), plan_hidden=False)
self.message_user(request, _('Plan published'), messages.SUCCESS)
@action(description=_('Unpublish plan'))
def unpublish(self, request, queryset):
queryset.update(plan_published_at=None, plan_hidden=True)
self.message_user(request, _('Plan unpublished'), messages.SUCCESS)
@admin.register(AKOwner)
class AKOwnerAdmin(admin.ModelAdmin):
......@@ -317,3 +329,23 @@ class ConstraintViolationAdmin(admin.ModelAdmin):
list_filter = ['event']
readonly_fields = ['timestamp']
form = ConstraintViolationAdminForm
class DefaultSlotAdminForm(forms.ModelForm):
class Meta:
widgets = {
'primary_categories': forms.CheckboxSelectMultiple
}
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# Filter possible values for foreign keys & m2m when event is specified
if hasattr(self.instance, "event") and self.instance.event is not None:
self.fields["primary_categories"].queryset = AKCategory.objects.filter(event=self.instance.event)
@admin.register(DefaultSlot)
class DefaultSlotAdmin(admin.ModelAdmin):
list_display = ['start', 'end', 'event']
list_filter = ['event']
form = DefaultSlotAdminForm
......@@ -21,7 +21,7 @@ zero_time = datetime.time(0, 0)
# remove serialization as requirements are not covered
# add translation
# add meta class
# enable availabilites for AKs and AKCategories
# enable availabilities for AKs and AKCategories
# add verbose names and help texts to model attributes
class Availability(models.Model):
"""The Availability class models when people or rooms are available for.
......
......@@ -2,6 +2,7 @@
# Copyright 2017-2019, Tobias Kunze
# Original Copyrights licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0
# Changes are marked in the code
from django.utils import timezone
from rest_framework.fields import SerializerMethodField
from rest_framework.serializers import ModelSerializer
......@@ -10,10 +11,20 @@ from AKModel.availability.models import Availability
class AvailabilitySerializer(ModelSerializer):
allDay = SerializerMethodField()
start = SerializerMethodField()
end = SerializerMethodField()
def get_allDay(self, obj):
return obj.all_day
# Use already localized strings in serialized field
# (default would be UTC, but that would require heavy timezone calculation on client side)
def get_start(self, obj):
return timezone.localtime(obj.start, obj.event.timezone).strftime("%Y-%m-%dT%H:%M:%S")
def get_end(self, obj):
return timezone.localtime(obj.end, obj.event.timezone).strftime("%Y-%m-%dT%H:%M:%S")
class Meta:
model = Availability
fields = ('id', 'start', 'end', 'allDay')
from bootstrap_datepicker_plus import DateTimePickerInput
from django import forms
from django.forms.utils import ErrorList
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from AKModel.models import Event, AKCategory, AKRequirement
......@@ -29,6 +29,7 @@ class NewEventWizardSettingsForm(forms.ModelForm):
'start': DateTimePickerInput(options={"format": "YYYY-MM-DD HH:mm"}),
'end': DateTimePickerInput(options={"format": "YYYY-MM-DD HH:mm"}),
'reso_deadline': DateTimePickerInput(options={"format": "YYYY-MM-DD HH:mm"}),
'plan_hidden': forms.HiddenInput(),
}
......
......@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-08-17 22:41+0200\n"
"POT-Creation-Date: 2022-10-22 15:27+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -11,41 +11,57 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: .\AKModel\admin.py:56 .\AKModel\admin.py:58
#: .\AKModel\templates\admin\AKModel\event_wizard\activate.html:32
#: .\AKModel\templates\admin\AKModel\event_wizard\created_prepare_import.html:48
#: .\AKModel\templates\admin\AKModel\event_wizard\finish.html:21
#: .\AKModel\templates\admin\AKModel\requirements_overview.html:8
#: .\AKModel\templates\admin\AKModel\status.html:7
#: .\AKModel\templates\admin\ak_index.html:15
#: AKModel/admin.py:58 AKModel/admin.py:60
#: AKModel/templates/admin/AKModel/event_wizard/activate.html:32
#: AKModel/templates/admin/AKModel/event_wizard/created_prepare_import.html:48
#: AKModel/templates/admin/AKModel/event_wizard/finish.html:21
#: AKModel/templates/admin/AKModel/requirements_overview.html:8
#: AKModel/templates/admin/AKModel/status.html:7
#: AKModel/templates/admin/ak_index.html:15
msgid "Status"
msgstr "Status"
#: .\AKModel\admin.py:132
#: AKModel/admin.py:67
msgid "Publish plan"
msgstr "Plan veröffentlichen"
#: AKModel/admin.py:70
msgid "Plan published"
msgstr "Plan veröffentlicht"
#: AKModel/admin.py:72
msgid "Unpublish plan"
msgstr "Plan verbergen"
#: AKModel/admin.py:75
msgid "Plan unpublished"
msgstr "Plan verborgen"
#: AKModel/admin.py:144
msgid "Wish"
msgstr "AK-Wunsch"
#: .\AKModel\admin.py:138
#: AKModel/admin.py:150
msgid "Is wish"
msgstr "Ist ein Wunsch"
#: .\AKModel\admin.py:139
#: AKModel/admin.py:151
msgid "Is not a wish"
msgstr "Ist kein Wunsch"
#: .\AKModel\admin.py:185
#: AKModel/admin.py:197
msgid "Export to wiki syntax"
msgstr "In Wiki-Syntax exportieren"
#: .\AKModel\admin.py:279
#: AKModel/admin.py:291
msgid "AK Details"
msgstr "AK-Details"
#: .\AKModel\availability\forms.py:21 .\AKModel\availability\models.py:248
#: AKModel/availability/forms.py:21 AKModel/availability/models.py:248
msgid "Availability"
msgstr "Verfügbarkeit"
#: .\AKModel\availability\forms.py:23
#: AKModel/availability/forms.py:23
msgid ""
"Click and drag to mark the availability during the event, double-click to "
"delete."
......@@ -53,213 +69,221 @@ msgstr ""
"Klicken und ziehen um die Verfügbarkeiten während des Events zu markieren. "
"Doppelt klicken um Einträge zu löschen."
#: .\AKModel\availability\forms.py:87
#: AKModel/availability/forms.py:87
msgid "The submitted availability does not comply with the required format."
msgstr "Die eingetragenen Verfügbarkeit haben nicht das notwendige Format."
#: .\AKModel\availability\forms.py:100
#: AKModel/availability/forms.py:100
msgid "The submitted availability contains an invalid date."
msgstr "Die eingegebene Verfügbarkeit enthält ein ungültiges Datum."
#: .\AKModel\availability\forms.py:123 .\AKModel\availability\forms.py:133
#: AKModel/availability/forms.py:123 AKModel/availability/forms.py:133
msgid "Please fill in your availabilities!"
msgstr "Bitte Verfügbarkeiten eintragen!"
#: .\AKModel\availability\models.py:38 .\AKModel\models.py:53
#: .\AKModel\models.py:117 .\AKModel\models.py:172 .\AKModel\models.py:191
#: .\AKModel\models.py:223 .\AKModel\models.py:277 .\AKModel\models.py:343
#: .\AKModel\models.py:376 .\AKModel\models.py:447 .\AKModel\models.py:488
#: AKModel/availability/models.py:38 AKModel/models.py:55 AKModel/models.py:119
#: AKModel/models.py:174 AKModel/models.py:193 AKModel/models.py:225
#: AKModel/models.py:279 AKModel/models.py:345 AKModel/models.py:378
#: AKModel/models.py:449 AKModel/models.py:490 AKModel/models.py:655
msgid "Event"
msgstr "Event"
#: .\AKModel\availability\models.py:39 .\AKModel\models.py:118
#: .\AKModel\models.py:173 .\AKModel\models.py:192 .\AKModel\models.py:224
#: .\AKModel\models.py:278 .\AKModel\models.py:344 .\AKModel\models.py:377
#: .\AKModel\models.py:448 .\AKModel\models.py:489
#: AKModel/availability/models.py:39 AKModel/models.py:120
#: AKModel/models.py:175 AKModel/models.py:194 AKModel/models.py:226
#: AKModel/models.py:280 AKModel/models.py:346 AKModel/models.py:379
#: AKModel/models.py:450 AKModel/models.py:491 AKModel/models.py:656
msgid "Associated event"
msgstr "Zugehöriges Event"
#: .\AKModel\availability\models.py:47
#: AKModel/availability/models.py:47
msgid "Person"
msgstr "Person"
#: .\AKModel\availability\models.py:48
#: AKModel/availability/models.py:48
msgid "Person whose availability this is"
msgstr "Person deren Verfügbarkeit hier abgebildet wird"
#: .\AKModel\availability\models.py:56 .\AKModel\models.py:347
#: .\AKModel\models.py:366 .\AKModel\models.py:497
#: AKModel/availability/models.py:56 AKModel/models.py:349
#: AKModel/models.py:368 AKModel/models.py:499
msgid "Room"
msgstr "Raum"
#: .\AKModel\availability\models.py:57
#: AKModel/availability/models.py:57
msgid "Room whose availability this is"
msgstr "Raum dessen Verfügbarkeit hier abgebildet wird"
#: .\AKModel\availability\models.py:65 .\AKModel\models.py:283
#: .\AKModel\models.py:365 .\AKModel\models.py:442
#: AKModel/availability/models.py:65 AKModel/models.py:285
#: AKModel/models.py:367 AKModel/models.py:444
msgid "AK"
msgstr "AK"
#: .\AKModel\availability\models.py:66
#: AKModel/availability/models.py:66
msgid "AK whose availability this is"
msgstr "Verfügbarkeiten"
#: .\AKModel\availability\models.py:74 .\AKModel\models.py:176
#: .\AKModel\models.py:503
#: AKModel/availability/models.py:74 AKModel/models.py:178
#: AKModel/models.py:505
msgid "AK Category"
msgstr "AK-Kategorie"
#: .\AKModel\availability\models.py:75
#: AKModel/availability/models.py:75
msgid "AK Category whose availability this is"
msgstr "AK-Kategorie, deren Verfügbarkeit hier abgebildet wird"
#: .\AKModel\availability\models.py:249
#: AKModel/availability/models.py:249
msgid "Availabilities"
msgstr "Verfügbarkeiten"
#: .\AKModel\forms.py:38
#: AKModel/forms.py:39
msgid "Copy ak requirements and ak categories of existing event"
msgstr "AK-Anforderungen und AK-Kategorien eines existierenden Events kopieren"
#: .\AKModel\forms.py:39
#: AKModel/forms.py:40
msgid "You can choose what to copy in the next step"
msgstr ""
"Im nächsten Schritt kann ausgewählt werden, was genau kopiert werden soll"
#: .\AKModel\forms.py:47
#: AKModel/forms.py:48
msgid "Copy ak categories"
msgstr "AK-Kategorien kopieren"
#: .\AKModel\forms.py:54
#: AKModel/forms.py:55
msgid "Copy ak requirements"
msgstr "AK-Anforderungen kopieren"
#: .\AKModel\models.py:17 .\AKModel\models.py:164 .\AKModel\models.py:188
#: .\AKModel\models.py:207 .\AKModel\models.py:221 .\AKModel\models.py:239
#: .\AKModel\models.py:335
#: AKModel/models.py:17 AKModel/models.py:166 AKModel/models.py:190
#: AKModel/models.py:209 AKModel/models.py:223 AKModel/models.py:241
#: AKModel/models.py:337
msgid "Name"
msgstr "Name"
#: .\AKModel\models.py:18
#: AKModel/models.py:18
msgid "Name or iteration of the event"
msgstr "Name oder Iteration des Events"
#: .\AKModel\models.py:19
#: AKModel/models.py:19
msgid "Short Form"
msgstr "Kurzer Name"
#: .\AKModel\models.py:20
#: AKModel/models.py:20
msgid "Short name of letters/numbers/dots/dashes/underscores used in URLs."
msgstr ""
"Kurzname bestehend aus Buchstaben, Nummern, Punkten und Unterstrichen zur "
"Nutzung in URLs"
#: .\AKModel\models.py:22
#: AKModel/models.py:22
msgid "Place"
msgstr "Ort"
#: .\AKModel\models.py:23
#: AKModel/models.py:23
msgid "City etc. the event takes place in"
msgstr "Stadt o.ä. in der das Event stattfindet"
#: .\AKModel\models.py:25
#: AKModel/models.py:25
msgid "Time Zone"
msgstr "Zeitzone"
#: .\AKModel\models.py:25
#: AKModel/models.py:25
msgid "Time Zone where this event takes place in"
msgstr "Zeitzone in der das Event stattfindet"
#: .\AKModel\models.py:26 .\AKModel\views.py:220
#: AKModel/models.py:26 AKModel/views.py:220
msgid "Start"
msgstr "Start"
#: .\AKModel\models.py:26
#: AKModel/models.py:26
msgid "Time the event begins"
msgstr "Zeit zu der das Event beginnt"
#: .\AKModel\models.py:27
#: AKModel/models.py:27
msgid "End"
msgstr "Ende"
#: .\AKModel\models.py:27
#: AKModel/models.py:27
msgid "Time the event ends"
msgstr "Zeit zu der das Event endet"
#: .\AKModel\models.py:28
#: AKModel/models.py:28
msgid "Resolution Deadline"
msgstr "Resolutionsdeadline"
#: .\AKModel\models.py:29
#: AKModel/models.py:29
msgid "When should AKs with intention to submit a resolution be done?"
msgstr "Wann sollen AKs mit Resolutionsabsicht stattgefunden haben?"
#: .\AKModel\models.py:31
#: AKModel/models.py:31
msgid "Interest Window Start"
msgstr "Beginn Interessensbekundung"
#: .\AKModel\models.py:32
#: AKModel/models.py:32
msgid "Opening time for expression of interest."
msgstr "Öffnungszeitpunkt für die Angabe von Interesse an AKs."
#: .\AKModel\models.py:33
#: AKModel/models.py:33
msgid "Interest Window End"
msgstr "Ende Interessensbekundung"
#: .\AKModel\models.py:34
#: AKModel/models.py:34
msgid "Closing time for expression of interest."
msgstr "Öffnungszeitpunkt für die Angabe von Interesse an AKs."
#: .\AKModel\models.py:36
#: AKModel/models.py:36
msgid "Public event"
msgstr "Öffentliches Event"
#: .\AKModel\models.py:37
#: AKModel/models.py:37
msgid "Show this event on overview page."
msgstr "Zeige dieses Event auf der Übersichtseite an"
#: .\AKModel\models.py:39
#: AKModel/models.py:39
msgid "Active State"
msgstr "Aktiver Status"
#: .\AKModel\models.py:39
#: AKModel/models.py:39
msgid "Marks currently active events"
msgstr "Markiert aktuell aktive Events"
#: .\AKModel\models.py:40
#: AKModel/models.py:40
msgid "Plan Hidden"
msgstr "Plan verborgen"
#: .\AKModel\models.py:40
#: AKModel/models.py:40
msgid "Hides plan for non-staff users"
msgstr "Verbirgt den Plan für Nutzer*innen ohne erweiterte Rechte"
#: .\AKModel\models.py:43
#: AKModel/models.py:42
msgid "Plan published at"
msgstr "Plan veröffentlicht am/um"
#: AKModel/models.py:43
msgid "Timestamp at which the plan was published"
msgstr "Zeitpunkt, zu dem der Plan veröffentlicht wurde"
#: AKModel/models.py:45
msgid "Base URL"
msgstr "URL-Prefix"
#: .\AKModel\models.py:43
#: AKModel/models.py:45
msgid "Prefix for wiki link construction"
msgstr "Prefix für die automatische Generierung von Wiki-Links"
#: .\AKModel\models.py:44
#: AKModel/models.py:46
msgid "Wiki Export Template Name"
msgstr "Wiki-Export Templatename"
#: .\AKModel\models.py:45
#: AKModel/models.py:47
msgid "Default Slot Length"
msgstr "Standardslotlänge"
#: .\AKModel\models.py:46
#: AKModel/models.py:48
msgid "Default length in hours that is assumed for AKs in this event."
msgstr "Standardlänge von Slots (in Stunden) für dieses Event"
#: .\AKModel\models.py:48
#: AKModel/models.py:50
msgid "Contact email address"
msgstr "E-Mail Kontaktadresse"
#: .\AKModel\models.py:50
#: AKModel/models.py:52
msgid ""
"An email address that is displayed on every page and can be used for all "
"kinds of questions"
......@@ -267,75 +291,75 @@ msgstr ""
"Eine Mailadresse die auf jeder Seite angezeigt wird und für alle Arten von "
"Fragen genutzt werden kann"
#: .\AKModel\models.py:54
#: AKModel/models.py:56
msgid "Events"
msgstr "Events"
#: .\AKModel\models.py:112
#: AKModel/models.py:114
msgid "Nickname"
msgstr "Spitzname"
#: .\AKModel\models.py:112
#: AKModel/models.py:114
msgid "Name to identify an AK owner by"
msgstr "Name, durch den eine AK-Leitung identifiziert wird"
#: .\AKModel\models.py:113
#: AKModel/models.py:115
msgid "Slug"
msgstr "Slug"
#: .\AKModel\models.py:113
#: AKModel/models.py:115
msgid "Slug for URL generation"
msgstr "Slug für URL-Generierung"
#: .\AKModel\models.py:114
#: AKModel/models.py:116
msgid "Institution"
msgstr "Instutution"
#: .\AKModel\models.py:114
#: AKModel/models.py:116
msgid "Uni etc."
msgstr "Universität o.ä."
#: .\AKModel\models.py:115 .\AKModel\models.py:248
#: AKModel/models.py:117 AKModel/models.py:250
msgid "Web Link"
msgstr "Internet Link"
#: .\AKModel\models.py:115
#: AKModel/models.py:117
msgid "Link to Homepage"
msgstr "Link zu Homepage oder Webseite"
#: .\AKModel\models.py:121 .\AKModel\models.py:496
#: AKModel/models.py:123 AKModel/models.py:498
msgid "AK Owner"
msgstr "AK-Leitung"
#: .\AKModel\models.py:122
#: AKModel/models.py:124
msgid "AK Owners"
msgstr "AK-Leitungen"
#: .\AKModel\models.py:164
#: AKModel/models.py:166
msgid "Name of the AK Category"
msgstr "Name der AK-Kategorie"
#: .\AKModel\models.py:165 .\AKModel\models.py:189
#: AKModel/models.py:167 AKModel/models.py:191
msgid "Color"
msgstr "Farbe"
#: .\AKModel\models.py:165 .\AKModel\models.py:189
#: AKModel/models.py:167 AKModel/models.py:191
msgid "Color for displaying"
msgstr "Farbe für die Anzeige"
#: .\AKModel\models.py:166 .\AKModel\models.py:242
#: AKModel/models.py:168 AKModel/models.py:244
msgid "Description"
msgstr "Beschreibung"
#: .\AKModel\models.py:167
#: AKModel/models.py:169
msgid "Short description of this AK Category"
msgstr "Beschreibung der AK-Kategorie"
#: .\AKModel\models.py:168
#: AKModel/models.py:170
msgid "Present by default"
msgstr "Defaultmäßig präsentieren"
#: .\AKModel\models.py:170
#: AKModel/models.py:172
msgid ""
"Present AKs of this category by default if AK owner did not specify whether "
"this AK should be presented?"
......@@ -343,152 +367,152 @@ msgstr ""
"AKs dieser Kategorie standardmäßig vorstellen, wenn die Leitungen das für "
"ihren AK nicht explizit spezifiziert haben?"
#: .\AKModel\models.py:177
#: AKModel/models.py:179
msgid "AK Categories"
msgstr "AK-Kategorien"
#: .\AKModel\models.py:188
#: AKModel/models.py:190
msgid "Name of the AK Track"
msgstr "Name des AK-Tracks"
#: .\AKModel\models.py:195
#: AKModel/models.py:197
msgid "AK Track"
msgstr "AK-Track"
#: .\AKModel\models.py:196
#: AKModel/models.py:198
msgid "AK Tracks"
msgstr "AK-Tracks"
#: .\AKModel\models.py:207
#: AKModel/models.py:209
msgid "Name of the AK Tag"
msgstr "Name das AK-Tags"
#: .\AKModel\models.py:210
#: AKModel/models.py:212
msgid "AK Tag"
msgstr "AK-Tag"
#: .\AKModel\models.py:211
#: AKModel/models.py:213
msgid "AK Tags"
msgstr "AK-Tags"
#: .\AKModel\models.py:221
#: AKModel/models.py:223
msgid "Name of the Requirement"
msgstr "Name der Anforderung"
#: .\AKModel\models.py:227 .\AKModel\models.py:500
#: AKModel/models.py:229 AKModel/models.py:502
msgid "AK Requirement"
msgstr "AK-Anforderung"
#: .\AKModel\models.py:228
#: AKModel/models.py:230
msgid "AK Requirements"
msgstr "AK-Anforderungen"
#: .\AKModel\models.py:239
#: AKModel/models.py:241
msgid "Name of the AK"
msgstr "Name des AKs"
#: .\AKModel\models.py:240
#: AKModel/models.py:242
msgid "Short Name"
msgstr "Kurzer Name"
#: .\AKModel\models.py:241
#: AKModel/models.py:243
msgid "Name displayed in the schedule"
msgstr "Name zur Anzeige im AK-Plan"
#: .\AKModel\models.py:242
#: AKModel/models.py:244
msgid "Description of the AK"
msgstr "Beschreibung des AKs"
#: .\AKModel\models.py:244
#: AKModel/models.py:246
msgid "Owners"
msgstr "Leitungen"
#: .\AKModel\models.py:245
#: AKModel/models.py:247
msgid "Those organizing the AK"
msgstr "Menschen, die den AK organisieren und halten"
#: .\AKModel\models.py:248
#: AKModel/models.py:250
msgid "Link to wiki page"
msgstr "Link zur Wiki Seite"
#: .\AKModel\models.py:249
#: AKModel/models.py:251
msgid "Protocol Link"
msgstr "Protokolllink"
#: .\AKModel\models.py:249
#: AKModel/models.py:251
msgid "Link to protocol"
msgstr "Link zum Protokoll"
#: .\AKModel\models.py:251
#: AKModel/models.py:253
msgid "Category"
msgstr "Kategorie"
#: .\AKModel\models.py:252
#: AKModel/models.py:254
msgid "Category of the AK"
msgstr "Kategorie des AKs"
#: .\AKModel\models.py:253
#: AKModel/models.py:255
msgid "Tags"
msgstr "Tags"
#: .\AKModel\models.py:253
#: AKModel/models.py:255
msgid "Tags provided by owners"
msgstr "Tags, die durch die AK-Leitung vergeben wurden"
#: .\AKModel\models.py:254
#: AKModel/models.py:256
msgid "Track"
msgstr "Track"
#: .\AKModel\models.py:255
#: AKModel/models.py:257
msgid "Track the AK belongs to"
msgstr "Track zu dem der AK gehört"
#: .\AKModel\models.py:257
#: AKModel/models.py:259
msgid "Resolution Intention"
msgstr "Resolutionsabsicht"
#: .\AKModel\models.py:258
#: AKModel/models.py:260
msgid "Intends to submit a resolution"
msgstr "Beabsichtigt eine Resolution einzureichen"
#: .\AKModel\models.py:259
#: AKModel/models.py:261
msgid "Present this AK"
msgstr "AK präsentieren"
#: .\AKModel\models.py:260
#: AKModel/models.py:262
msgid "Present results of this AK"
msgstr "Die Ergebnisse dieses AKs vorstellen"
#: .\AKModel\models.py:262 .\AKModel\templates\admin\AKModel\status.html:97
#: AKModel/models.py:264 AKModel/templates/admin/AKModel/status.html:97
msgid "Requirements"
msgstr "Anforderungen"
#: .\AKModel\models.py:263
#: AKModel/models.py:265
msgid "AK's Requirements"
msgstr "Anforderungen des AKs"
#: .\AKModel\models.py:265
#: AKModel/models.py:267
msgid "Conflicting AKs"
msgstr "AK-Konflikte"
#: .\AKModel\models.py:266
#: AKModel/models.py:268
msgid "AKs that conflict and thus must not take place at the same time"
msgstr ""
"AKs, die Konflikte haben und deshalb nicht gleichzeitig stattfinden dürfen"
#: .\AKModel\models.py:267
#: AKModel/models.py:269
msgid "Prerequisite AKs"
msgstr "Vorausgesetzte AKs"
#: .\AKModel\models.py:268
#: AKModel/models.py:270
msgid "AKs that should precede this AK in the schedule"
msgstr "AKs die im AK-Plan vor diesem AK stattfinden müssen"
#: .\AKModel\models.py:270
#: AKModel/models.py:272
msgid "Organizational Notes"
msgstr "Notizen zur Organisation"
#: .\AKModel\models.py:271
#: AKModel/models.py:273
#, fuzzy
#| msgid ""
#| "Notes to organizers. These are public. For private notes, please send an "
......@@ -502,337 +526,363 @@ msgstr ""
"Anmerkungen bitte den Button für Direktnachrichten verwenden (nach dem "
"Anlegen/Bearbeiten)."
#: .\AKModel\models.py:273
#: AKModel/models.py:275
msgid "Interest"
msgstr "Interesse"
#: .\AKModel\models.py:273
#: AKModel/models.py:275
msgid "Expected number of people"
msgstr "Erwartete Personenzahl"
#: .\AKModel\models.py:274
#: AKModel/models.py:276
msgid "Interest Counter"
msgstr "Interessenszähler"
#: .\AKModel\models.py:275
#: AKModel/models.py:277
msgid "People who have indicated interest online"
msgstr "Anzahl Personen, die online Interesse bekundet haben"
#: .\AKModel\models.py:284 .\AKModel\models.py:491
#: .\AKModel\templates\admin\AKModel\status.html:49
#: .\AKModel\templates\admin\AKModel\status.html:56 .\AKModel\views.py:337
#: AKModel/models.py:286 AKModel/models.py:493
#: AKModel/templates/admin/AKModel/status.html:49
#: AKModel/templates/admin/AKModel/status.html:56 AKModel/views.py:337
msgid "AKs"
msgstr "AKs"
#: .\AKModel\models.py:335
#: AKModel/models.py:337
msgid "Name or number of the room"
msgstr "Name oder Nummer des Raums"
#: .\AKModel\models.py:336
#: AKModel/models.py:338
msgid "Location"
msgstr "Ort"
#: .\AKModel\models.py:337
#: AKModel/models.py:339
msgid "Name or number of the location"
msgstr "Name oder Nummer des Ortes"
#: .\AKModel\models.py:338
#: AKModel/models.py:340
msgid "Capacity"
msgstr "Kapazität"
#: .\AKModel\models.py:339
#: AKModel/models.py:341
msgid "Maximum number of people (-1 for unlimited)."
msgstr "Maximale Personenzahl (-1 wenn unbeschränkt)."
#: .\AKModel\models.py:340
#: AKModel/models.py:342
msgid "Properties"
msgstr "Eigenschaften"
#: .\AKModel\models.py:341
#: AKModel/models.py:343
msgid "AK requirements fulfilled by the room"
msgstr "AK-Anforderungen, die dieser Raum erfüllt"
#: .\AKModel\models.py:348 .\AKModel\templates\admin\AKModel\status.html:33
#: AKModel/models.py:350 AKModel/templates/admin/AKModel/status.html:33
msgid "Rooms"
msgstr "Räume"
#: .\AKModel\models.py:365
#: AKModel/models.py:367
msgid "AK being mapped"
msgstr "AK, der zugeordnet wird"
#: .\AKModel\models.py:367
#: AKModel/models.py:369
msgid "Room the AK will take place in"
msgstr "Raum in dem der AK stattfindet"
#: .\AKModel\models.py:368
#: AKModel/models.py:370 AKModel/models.py:652
msgid "Slot Begin"
msgstr "Beginn des Slots"
#: .\AKModel\models.py:368
#: AKModel/models.py:370 AKModel/models.py:652
msgid "Time and date the slot begins"
msgstr "Zeit und Datum zu der der AK beginnt"
#: .\AKModel\models.py:370
#: AKModel/models.py:372
msgid "Duration"
msgstr "Dauer"
#: .\AKModel\models.py:371
#: AKModel/models.py:373
msgid "Length in hours"
msgstr "Länge in Stunden"
#: .\AKModel\models.py:373
#: AKModel/models.py:375
msgid "Scheduling fixed"
msgstr "Planung fix"
#: .\AKModel\models.py:374
#: AKModel/models.py:376
msgid "Length and time of this AK should not be changed"
msgstr "Dauer und Zeit dieses AKs sollten nicht verändert werden"
#: .\AKModel\models.py:379
#: AKModel/models.py:381
msgid "Last update"
msgstr "Letzte Aktualisierung"
#: .\AKModel\models.py:382
#: AKModel/models.py:384
msgid "AK Slot"
msgstr "AK-Slot"
#: .\AKModel\models.py:383 .\AKModel\models.py:493
#: AKModel/models.py:385 AKModel/models.py:495
msgid "AK Slots"
msgstr "AK-Slot"
#: .\AKModel\models.py:405 .\AKModel\models.py:414
#: AKModel/models.py:407 AKModel/models.py:416
msgid "Not scheduled yet"
msgstr "Noch nicht geplant"
#: .\AKModel\models.py:443
#: AKModel/models.py:445
msgid "AK this message belongs to"
msgstr "AK zu dem die Nachricht gehört"
#: .\AKModel\models.py:444
#: AKModel/models.py:446
msgid "Message text"
msgstr "Nachrichtentext"
#: .\AKModel\models.py:445
#: AKModel/models.py:447
msgid "Message to the organizers. This is not publicly visible."
msgstr ""
"Nachricht an die Organisator*innen. Diese ist nicht öffentlich sichtbar."
#: .\AKModel\models.py:451
#: AKModel/models.py:453
msgid "AK Orga Message"
msgstr "AK-Organachricht"
#: .\AKModel\models.py:452
#: AKModel/models.py:454
msgid "AK Orga Messages"
msgstr "AK-Organachrichten"
#: .\AKModel\models.py:461
#: AKModel/models.py:463
msgid "Constraint Violation"
msgstr "Constraintverletzung"
#: .\AKModel\models.py:462 .\AKModel\templates\admin\AKModel\status.html:79
#: AKModel/models.py:464 AKModel/templates/admin/AKModel/status.html:79
msgid "Constraint Violations"
msgstr "Constraintverletzungen"
#: .\AKModel\models.py:466
#: AKModel/models.py:468
msgid "Owner has two parallel slots"
msgstr "Leitung hat zwei Slots parallel"
#: .\AKModel\models.py:467
#: AKModel/models.py:469
msgid "AK Slot was scheduled outside the AK's availabilities"
msgstr "AK Slot wurde außerhalb der Verfügbarkeit des AKs platziert"
#: .\AKModel\models.py:468
#: AKModel/models.py:470
msgid "Room has two AK slots scheduled at the same time"
msgstr "Raum hat zwei AK Slots gleichzeitig"
#: .\AKModel\models.py:469
#: AKModel/models.py:471
msgid "Room does not satisfy the requirement of the scheduled AK"
msgstr "Room erfüllt die Anforderungen des platzierten AKs nicht"
#: .\AKModel\models.py:470
#: AKModel/models.py:472
msgid "AK Slot is scheduled at the same time as an AK listed as a conflict"
msgstr ""
"AK Slot wurde wurde zur gleichen Zeit wie ein Konflikt des AKs platziert"
#: .\AKModel\models.py:471
#: AKModel/models.py:473
msgid "AK Slot is scheduled before an AK listed as a prerequisite"
msgstr "AK Slot wurde vor einem als Voraussetzung gelisteten AK platziert"
#: .\AKModel\models.py:473
#: AKModel/models.py:475
msgid ""
"AK Slot for AK with intention to submit a resolution is scheduled after "
"resolution deadline"
msgstr ""
"AK Slot eines AKs mit Resoabsicht wurde nach der Resodeadline platziert"
#: .\AKModel\models.py:474
#: AKModel/models.py:476
msgid "AK Slot in a category is outside that categories availabilities"
msgstr "AK Slot wurde außerhalb der Verfügbarkeiten seiner Kategorie"
#: .\AKModel\models.py:475
#: AKModel/models.py:477
msgid "Two AK Slots for the same AK scheduled at the same time"
msgstr "Zwei AK Slots eines AKs wurden zur selben Zeit platziert"
#: .\AKModel\models.py:476
#: AKModel/models.py:478
msgid "Room does not have enough space for interest in scheduled AK Slot"
msgstr "Room hat nicht genug Platz für das Interesse am geplanten AK-Slot"
#: .\AKModel\models.py:477
#: AKModel/models.py:479
msgid "AK Slot is scheduled outside the event's availabilities"
msgstr "AK Slot wurde außerhalb der Verfügbarkeit des Events platziert"
#: .\AKModel\models.py:480
#: AKModel/models.py:482
msgid "Warning"
msgstr "Warnung"
#: .\AKModel\models.py:481
#: AKModel/models.py:483
msgid "Violation"
msgstr "Verletzung"
#: .\AKModel\models.py:483
#: AKModel/models.py:485
msgid "Type"
msgstr "Art"
#: .\AKModel\models.py:484
#: AKModel/models.py:486
msgid "Type of violation, i.e. what kind of constraint was violated"
msgstr "Art der Verletzung, gibt an welche Art Constraint verletzt wurde"
#: .\AKModel\models.py:485
#: AKModel/models.py:487
msgid "Level"
msgstr "Level"
#: .\AKModel\models.py:486
#: AKModel/models.py:488
msgid "Severity level of the violation"
msgstr "Schweregrad der Verletzung"
#: .\AKModel\models.py:492
#: AKModel/models.py:494
msgid "AK(s) belonging to this constraint"
msgstr "AK(s), die zu diesem Constraint gehören"
#: .\AKModel\models.py:494
#: AKModel/models.py:496
msgid "AK Slot(s) belonging to this constraint"
msgstr "AK Slot(s), die zu diesem Constraint gehören"
#: .\AKModel\models.py:496
#: AKModel/models.py:498
msgid "AK Owner belonging to this constraint"
msgstr "AK Leitung(en), die zu diesem Constraint gehören"
#: .\AKModel\models.py:498
#: AKModel/models.py:500
msgid "Room belonging to this constraint"
msgstr "Raum, der zu diesem Constraint gehört"
#: .\AKModel\models.py:501
#: AKModel/models.py:503
msgid "AK Requirement belonging to this constraint"
msgstr "AK Anforderung, die zu diesem Constraint gehört"
#: .\AKModel\models.py:503
#: AKModel/models.py:505
msgid "AK Category belonging to this constraint"
msgstr "AK Kategorie, di zu diesem Constraint gehört"
#: .\AKModel\models.py:505
#: AKModel/models.py:507
msgid "Comment"
msgstr "Kommentar"
#: .\AKModel\models.py:505
#: AKModel/models.py:507
msgid "Comment or further details for this violation"
msgstr "Kommentar oder weitere Details zu dieser Vereletzung"
#: .\AKModel\models.py:508
#: AKModel/models.py:510
msgid "Timestamp"
msgstr "Timestamp"
#: .\AKModel\models.py:508
#: AKModel/models.py:510
msgid "Time of creation"
msgstr "Zeitpunkt der ERstellung"
#: .\AKModel\models.py:509
#: AKModel/models.py:511
msgid "Manually Resolved"
msgstr "Manuell behoben"
#: .\AKModel\models.py:510
#: AKModel/models.py:512
msgid "Mark this violation manually as resolved"
msgstr "Markiere diese Verletzung manuell als behoben"
#: .\AKModel\models.py:537
#: .\AKModel\templates\admin\AKModel\requirements_overview.html:27
#: AKModel/models.py:539
#: AKModel/templates/admin/AKModel/requirements_overview.html:27
msgid "Details"
msgstr "Details"
#: .\AKModel\site.py:10
#: AKModel/models.py:648
msgid "Default Slot"
msgstr "Standardslot"
#: AKModel/models.py:649
#, fuzzy
#| msgid "Default Slot Length"
msgid "Default Slots"
msgstr "Standardslots"
#: AKModel/models.py:653
msgid "Slot End"
msgstr "Ende des Slots"
#: AKModel/models.py:653
msgid "Time and date the slot ends"
msgstr "Zeit und Datum zu dem der Slot endet"
#: AKModel/models.py:658
msgid "Primary categories"
msgstr "Primäre Kategorien"
#: AKModel/models.py:659
msgid "Categories that should be assigned to this slot primarily"
msgstr "Kategorien, die diesem Slot primär zugewiesen werden sollen"
#: AKModel/site.py:10
msgid "Administration"
msgstr "Verwaltung"
#: .\AKModel\templates\AKModel\user.html:31
#: AKModel/templates/AKModel/user.html:31
msgid "Hello"
msgstr "Hallo"
#: .\AKModel\templates\AKModel\user.html:34
#: AKModel/templates/AKModel/user.html:34
msgid "Go to backend"
msgstr "Zum Backend"
#: .\AKModel\templates\AKModel\user.html:37
#: AKModel/templates/AKModel/user.html:37
msgid "Please wait for an administrator to confirm your account"
msgstr ""
"Bitte warte darauf, dass ein*e Administrator*in deinen Account bestätigt"
#: .\AKModel\templates\AKModel\user.html:40
#: AKModel/templates/AKModel/user.html:40
msgid "Logout"
msgstr "Ausloggen"
#: .\AKModel\templates\admin\AKModel\event_wizard\activate.html:9
#: .\AKModel\templates\admin\AKModel\event_wizard\created_prepare_import.html:9
#: .\AKModel\templates\admin\AKModel\event_wizard\finish.html:9
#: .\AKModel\templates\admin\AKModel\event_wizard\import.html:9
#: .\AKModel\templates\admin\AKModel\event_wizard\settings.html:9
#: .\AKModel\templates\admin\AKModel\event_wizard\start.html:8
#: .\AKModel\templates\admin\AKModel\event_wizard\wizard_steps.html:3
#: AKModel/templates/admin/AKModel/event_wizard/activate.html:9
#: AKModel/templates/admin/AKModel/event_wizard/created_prepare_import.html:9
#: AKModel/templates/admin/AKModel/event_wizard/finish.html:9
#: AKModel/templates/admin/AKModel/event_wizard/import.html:9
#: AKModel/templates/admin/AKModel/event_wizard/settings.html:9
#: AKModel/templates/admin/AKModel/event_wizard/start.html:8
#: AKModel/templates/admin/AKModel/event_wizard/wizard_steps.html:3
msgid "New event wizard"
msgstr "Assistent zum Anlegen eines neuen Events"
#: .\AKModel\templates\admin\AKModel\event_wizard\activate.html:18
#: AKModel/templates/admin/AKModel/event_wizard/activate.html:18
msgid "Successfully imported.<br><br>Do you want to activate your event now?"
msgstr "Erfolgreich importiert.<br><br>Soll das Event jetzt aktiviert werden?"
#: .\AKModel\templates\admin\AKModel\event_wizard\activate.html:27
#: .\AKModel\views.py:225
#: AKModel/templates/admin/AKModel/event_wizard/activate.html:27
#: AKModel/views.py:225
msgid "Finish"
msgstr "Abschluss"
#: .\AKModel\templates\admin\AKModel\event_wizard\created_prepare_import.html:16
#: AKModel/templates/admin/AKModel/event_wizard/created_prepare_import.html:16
msgid "New event:"
msgstr "Neues Event:"
#: .\AKModel\templates\admin\AKModel\event_wizard\created_prepare_import.html:30
#: AKModel/templates/admin/AKModel/event_wizard/created_prepare_import.html:30
msgid "Your event was created and can now be further configured."
msgstr "Das Event wurde angelegt und kann nun weiter konfiguriert werden."
#: .\AKModel\templates\admin\AKModel\event_wizard\created_prepare_import.html:39
#: AKModel/templates/admin/AKModel/event_wizard/created_prepare_import.html:39
msgid "Skip Import"
msgstr "Import überspringen"
#: .\AKModel\templates\admin\AKModel\event_wizard\created_prepare_import.html:43
#: .\AKModel\templates\admin\AKModel\event_wizard\import.html:20
#: .\AKModel\templates\admin\AKModel\event_wizard\settings.html:22
#: .\AKModel\templates\admin\AKModel\event_wizard\start.html:19
#: AKModel/templates/admin/AKModel/event_wizard/created_prepare_import.html:43
#: AKModel/templates/admin/AKModel/event_wizard/import.html:20
#: AKModel/templates/admin/AKModel/event_wizard/settings.html:22
#: AKModel/templates/admin/AKModel/event_wizard/start.html:19
msgid "Continue"
msgstr "Fortfahren"
#: .\AKModel\templates\admin\AKModel\event_wizard\finish.html:18
#: AKModel/templates/admin/AKModel/event_wizard/finish.html:18
msgid "Congratulations. Everything is set up!"
msgstr "Herzlichen Glückwunsch. Alles ist eingerichtet!"
#: .\AKModel\templates\admin\AKModel\event_wizard\import.html:24
#: .\AKModel\templates\admin\AKModel\event_wizard\settings.html:29
#: .\AKModel\templates\admin\AKModel\event_wizard\start.html:23
#: .\AKModel\templates\admin\AKModel\message_delete.html:21
#: AKModel/templates/admin/AKModel/event_wizard/import.html:24
#: AKModel/templates/admin/AKModel/event_wizard/settings.html:29
#: AKModel/templates/admin/AKModel/event_wizard/start.html:23
#: AKModel/templates/admin/AKModel/message_delete.html:21
msgid "Cancel"
msgstr "Abbrechen"
#: .\AKModel\templates\admin\AKModel\event_wizard\settings.html:26
#: AKModel/templates/admin/AKModel/event_wizard/settings.html:26
msgid "Back"
msgstr "Zurück"
#: .\AKModel\templates\admin\AKModel\event_wizard\start.html:13
#: AKModel/templates/admin/AKModel/event_wizard/start.html:13
msgid ""
"Add a new event. Please start by filling these basic properties. You can "
"specify more settings later."
......@@ -840,19 +890,19 @@ msgstr ""
"Neues Event anlegen. Bitte zunächst diese Grundeinstellungen ausfüllen, "
"weitere Einstellungen können später gesetzt werden."
#: .\AKModel\templates\admin\AKModel\event_wizard\wizard_steps.html:15
#: AKModel/templates/admin/AKModel/event_wizard/wizard_steps.html:15
msgid "Step"
msgstr "Schritt"
#: .\AKModel\templates\admin\AKModel\message_delete.html:7
#: AKModel/templates/admin/AKModel/message_delete.html:7
msgid "Delete Orga-Messages"
msgstr "Organachrichten löschen"
#: .\AKModel\templates\admin\AKModel\message_delete.html:10
#: AKModel/templates/admin/AKModel/message_delete.html:10
msgid "Delete AK Orga Messages"
msgstr "AK-Organachrichten löschen"
#: .\AKModel\templates\admin\AKModel\message_delete.html:11
#: AKModel/templates/admin/AKModel/message_delete.html:11
#, python-format
msgid ""
"Are you sure you want to delete all orga messages for %(event)s? This will "
......@@ -861,121 +911,121 @@ msgstr ""
"Sollen wirklich alle Organachrichten für %(event)s gelöscht werden? Dadurch "
"werden %(message_count)s Nachricht(en) dauerhaft gelöscht:"
#: .\AKModel\templates\admin\AKModel\message_delete.html:17
#: AKModel/templates/admin/AKModel/message_delete.html:17
msgid "Delete"
msgstr "Löschen"
#: .\AKModel\templates\admin\AKModel\requirements_overview.html:12
#: AKModel/templates/admin/AKModel/requirements_overview.html:12
msgid "Requirements Overview"
msgstr "Übersicht Anforderungen"
#: .\AKModel\templates\admin\AKModel\requirements_overview.html:31
#: AKModel/templates/admin/AKModel/requirements_overview.html:31
msgid "Edit"
msgstr "Bearbeiten"
#: .\AKModel\templates\admin\AKModel\requirements_overview.html:38
#: AKModel/templates/admin/AKModel/requirements_overview.html:38
msgid "No AKs with this requirement"
msgstr "Kein AK mit dieser Anforderung"
#: .\AKModel\templates\admin\AKModel\requirements_overview.html:45
#: .\AKModel\templates\admin\AKModel\status.html:113
#: AKModel/templates/admin/AKModel/requirements_overview.html:45
#: AKModel/templates/admin/AKModel/status.html:113
msgid "Add Requirement"
msgstr "Anforderung hinzufügen"
#: .\AKModel\templates\admin\AKModel\status.html:16
#: AKModel/templates/admin/AKModel/status.html:16
msgid "Categories"
msgstr "Kategorien"
#: .\AKModel\templates\admin\AKModel\status.html:18
#: AKModel/templates/admin/AKModel/status.html:18
msgid "No categories yet"
msgstr "Bisher keine Kategorien"
#: .\AKModel\templates\admin\AKModel\status.html:31
#: AKModel/templates/admin/AKModel/status.html:31
msgid "Add category"
msgstr "Kategorie hinzufügen"
#: .\AKModel\templates\admin\AKModel\status.html:35
#: AKModel/templates/admin/AKModel/status.html:35
msgid "No rooms yet"
msgstr "Bisher keine Räume"
#: .\AKModel\templates\admin\AKModel\status.html:47
#: AKModel/templates/admin/AKModel/status.html:47
msgid "Add Room"
msgstr "Raum hinzufügen"
#: .\AKModel\templates\admin\AKModel\status.html:51
#: AKModel/templates/admin/AKModel/status.html:51
msgid "No AKs yet"
msgstr "Bisher keine AKs"
#: .\AKModel\templates\admin\AKModel\status.html:59
#: AKModel/templates/admin/AKModel/status.html:59
msgid "Slots"
msgstr "Slots"
#: .\AKModel\templates\admin\AKModel\status.html:62
#: AKModel/templates/admin/AKModel/status.html:62
msgid "Unscheduled Slots"
msgstr "Ungeplante Slots"
#: .\AKModel\templates\admin\AKModel\status.html:76
#: .\AKModel\templates\admin\ak_index.html:16
#: AKModel/templates/admin/AKModel/status.html:76
#: AKModel/templates/admin/ak_index.html:16
msgid "Scheduling"
msgstr "Scheduling"
#: .\AKModel\templates\admin\AKModel\status.html:81
#: AKModel/templates/admin/AKModel/status.html:81
msgid "AKs requiring special attention"
msgstr ""
#: .\AKModel\templates\admin\AKModel\status.html:83
#: AKModel/templates/admin/AKModel/status.html:83
msgid "Enter Interest"
msgstr "Interesse erfassen"
#: .\AKModel\templates\admin\AKModel\status.html:86
#: AKModel/templates/admin/AKModel/status.html:86
msgid "Manage ak tracks"
msgstr "AK-Tracks verwalten"
#: .\AKModel\templates\admin\AKModel\status.html:88
#: AKModel/templates/admin/AKModel/status.html:88
msgid "Export AKs as CSV"
msgstr "AKs als CSV exportieren"
#: .\AKModel\templates\admin\AKModel\status.html:90
#: AKModel/templates/admin/AKModel/status.html:90
msgid "Export AKs for Wiki"
msgstr "AKs im Wiki-Format exportieren"
#: .\AKModel\templates\admin\AKModel\status.html:92
#: AKModel/templates/admin/AKModel/status.html:92
msgid "Export AK Slides"
msgstr "AK-Folien exportieren"
#: .\AKModel\templates\admin\AKModel\status.html:94
#: AKModel/templates/admin/AKModel/status.html:94
msgid "Export AK Slides (Presentation AKs only)"
msgstr "AK-Folien exportieren (Nur zu präsentierende AKs)"
#: .\AKModel\templates\admin\AKModel\status.html:99
#: AKModel/templates/admin/AKModel/status.html:99
msgid "No requirements yet"
msgstr "Bisher keine Anforderungen"
#: .\AKModel\templates\admin\AKModel\status.html:112
#: AKModel/templates/admin/AKModel/status.html:112
msgid "Show AKs for requirements"
msgstr "Zu Anforderungen gehörige AKs anzeigen"
#: .\AKModel\templates\admin\AKModel\status.html:116
#: AKModel/templates/admin/AKModel/status.html:116
msgid "Messages"
msgstr "Nachrichten"
#: .\AKModel\templates\admin\AKModel\status.html:118
#: AKModel/templates/admin/AKModel/status.html:118
msgid "Delete all messages"
msgstr "Alle Nachrichten löschen"
#: .\AKModel\templates\admin\ak_index.html:7
#: AKModel/templates/admin/ak_index.html:7
msgid "Active Events"
msgstr "Aktive Events"
#: .\AKModel\templates\admin\login.html:23
#: AKModel/templates/admin/login.html:8
msgid "Please correct the error below."
msgstr "Bitte den untenstehenden Fehler korrigieren."
#: .\AKModel\templates\admin\login.html:23
#: AKModel/templates/admin/login.html:8
msgid "Please correct the errors below."
msgstr "Bitte die unten stehenden Fehler korrigieren."
#: .\AKModel\templates\admin\login.html:39
#: AKModel/templates/admin/login.html:24
#, python-format
msgid ""
"You are authenticated as %(username)s, but are not authorized to access this "
......@@ -984,87 +1034,87 @@ msgstr ""
"Du bist als %(username)s eingeloggt, aber bist nicht authorisiert, auf diese "
"Seite zuzugreifen. Möchtest du dich mit einem anderem Account einloggen?"
#: .\AKModel\templates\admin\login.html:59
#: AKModel/templates/admin/login.html:44
msgid "Forgotten your password or username?"
msgstr "Passwort oder Username vergessen"
#: .\AKModel\templates\admin\login.html:63
#: AKModel/templates/admin/login.html:48
msgid "Log in"
msgstr "Login"
#: .\AKModel\templates\admin\login.html:66
#: AKModel/templates/admin/login.html:51
msgid "Register"
msgstr "Registrieren"
#: .\AKModel\views.py:143
#: AKModel/views.py:143
msgid "Event Status"
msgstr "Eventstatus"
#: .\AKModel\views.py:156
#: AKModel/views.py:156
msgid "Requirements for Event"
msgstr "Anforderungen für das Event"
#: .\AKModel\views.py:170
#: AKModel/views.py:170
msgid "AK CSV Export"
msgstr "AK-CSV-Export"
#: .\AKModel\views.py:184
#: AKModel/views.py:184
msgid "AK Wiki Export"
msgstr "AK-Wiki-Export"
#: .\AKModel\views.py:192 .\AKModel\views.py:323
#: AKModel/views.py:192 AKModel/views.py:323
msgid "Wishes"
msgstr "Wünsche"
#: .\AKModel\views.py:211
#: AKModel/views.py:211
msgid "AK Orga Messages successfully deleted"
msgstr "AK-Organachrichten erfolgreich gelöscht"
#: .\AKModel\views.py:221
#: AKModel/views.py:221
msgid "Settings"
msgstr "Einstellungen"
#: .\AKModel\views.py:222
#: AKModel/views.py:222
msgid "Event created, Prepare Import"
msgstr "Event angelegt, Import vorbereiten"
#: .\AKModel\views.py:223
#: AKModel/views.py:223
msgid "Import categories & requirements"
msgstr "Kategorien & Anforderungen kopieren"
#: .\AKModel\views.py:224
#: AKModel/views.py:224
#, fuzzy
#| msgid "Active State"
msgid "Activate?"
msgstr "Aktivieren?"
#: .\AKModel\views.py:283
#: AKModel/views.py:283
#, python-format
msgid "Copied '%(obj)s'"
msgstr "'%(obj)s' kopiert"
#: .\AKModel\views.py:286
#: AKModel/views.py:286
#, python-format
msgid "Could not copy '%(obj)s' (%(error)s)"
msgstr "'%(obj)s' konnte nicht kopiert werden (%(error)s)"
#: .\AKModel\views.py:318
#: AKModel/views.py:318
msgid "Symbols"
msgstr "Symbole"
#: .\AKModel\views.py:319
#: AKModel/views.py:319
msgid "Who?"
msgstr "Wer?"
#: .\AKModel\views.py:320
#: AKModel/views.py:320
msgid "Duration(s)"
msgstr "Dauer(n)"
#: .\AKModel\views.py:321
#: AKModel/views.py:321
msgid "Reso intention?"
msgstr "Resolutionsabsicht?"
#: .\AKModel\views.py:322
#: AKModel/views.py:322
msgid "Category (for Wishes)"
msgstr "Kategorie (für Wünsche)"
......
"""
Ensure PO files are generated using forward slashes in the location comments on all operating systems
"""
import os
from django.core.management.commands.makemessages import Command as MakeMessagesCommand
class Command(MakeMessagesCommand):
def find_files(self, root):
all_files = super().find_files(root)
if os.sep != "\\":
return all_files
for file_entry in all_files:
if file_entry.dirpath == ".":
file_entry.dirpath = ""
elif file_entry.dirpath.startswith(".\\"):
file_entry.dirpath = file_entry.dirpath[2:].replace("\\", "/")
return all_files
def build_potfiles(self):
pot_files = super().build_potfiles()
if os.sep != "\\":
return pot_files
for filename in pot_files:
lines = open(filename, "r", encoding="utf-8").readlines()
fixed_lines = []
for line in lines:
if line.startswith("#: "):
line = line.replace("\\", "/")
fixed_lines.append(line)
with open(filename, "w", encoding="utf-8") as f:
f.writelines(fixed_lines)
return pot_files
# Generated by Django 3.2.16 on 2022-10-12 22:51
from django.db import migrations, models
import timezone_field.fields
class Migration(migrations.Migration):
dependencies = [
('AKModel', '0051_ak_notes_help_text'),
]
operations = [
migrations.AlterModelOptions(
name='historicalak',
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical AK', 'verbose_name_plural': 'historical AKs'},
),
migrations.AlterField(
model_name='event',
name='timezone',
field=timezone_field.fields.TimeZoneField(choices=[('Pacific/Apia', 'GMT-11:00 Pacific/Apia'), ('Pacific/Fakaofo', 'GMT-11:00 Pacific/Fakaofo'), ('Pacific/Midway', 'GMT-11:00 Pacific/Midway'), ('Pacific/Niue', 'GMT-11:00 Pacific/Niue'), ('Pacific/Pago_Pago', 'GMT-11:00 Pacific/Pago Pago'), ('America/Adak', 'GMT-10:00 America/Adak'), ('Pacific/Honolulu', 'GMT-10:00 Pacific/Honolulu'), ('Pacific/Rarotonga', 'GMT-10:00 Pacific/Rarotonga'), ('Pacific/Tahiti', 'GMT-10:00 Pacific/Tahiti'), ('US/Hawaii', 'GMT-10:00 US/Hawaii'), ('Pacific/Marquesas', 'GMT-09:00 Pacific/Marquesas'), ('America/Anchorage', 'GMT-09:00 America/Anchorage'), ('America/Juneau', 'GMT-09:00 America/Juneau'), ('America/Nome', 'GMT-09:00 America/Nome'), ('America/Sitka', 'GMT-09:00 America/Sitka'), ('America/Yakutat', 'GMT-09:00 America/Yakutat'), ('Pacific/Gambier', 'GMT-09:00 Pacific/Gambier'), ('US/Alaska', 'GMT-09:00 US/Alaska'), ('America/Dawson', 'GMT-08:00 America/Dawson'), ('America/Fort_Nelson', 'GMT-08:00 America/Fort Nelson'), ('America/Los_Angeles', 'GMT-08:00 America/Los Angeles'), ('America/Metlakatla', 'GMT-08:00 America/Metlakatla'), ('America/Tijuana', 'GMT-08:00 America/Tijuana'), ('America/Vancouver', 'GMT-08:00 America/Vancouver'), ('America/Whitehorse', 'GMT-08:00 America/Whitehorse'), ('Canada/Pacific', 'GMT-08:00 Canada/Pacific'), ('Pacific/Pitcairn', 'GMT-08:00 Pacific/Pitcairn'), ('US/Pacific', 'GMT-08:00 US/Pacific'), ('America/Bahia_Banderas', 'GMT-07:00 America/Bahia Banderas'), ('America/Boise', 'GMT-07:00 America/Boise'), ('America/Chihuahua', 'GMT-07:00 America/Chihuahua'), ('America/Creston', 'GMT-07:00 America/Creston'), ('America/Dawson_Creek', 'GMT-07:00 America/Dawson Creek'), ('America/Denver', 'GMT-07:00 America/Denver'), ('America/Edmonton', 'GMT-07:00 America/Edmonton'), ('America/Hermosillo', 'GMT-07:00 America/Hermosillo'), ('America/Inuvik', 'GMT-07:00 America/Inuvik'), ('America/Mazatlan', 'GMT-07:00 America/Mazatlan'), ('America/North_Dakota/Beulah', 'GMT-07:00 America/North Dakota/Beulah'), ('America/North_Dakota/New_Salem', 'GMT-07:00 America/North Dakota/New Salem'), ('America/Ojinaga', 'GMT-07:00 America/Ojinaga'), ('America/Phoenix', 'GMT-07:00 America/Phoenix'), ('America/Yellowknife', 'GMT-07:00 America/Yellowknife'), ('Canada/Mountain', 'GMT-07:00 Canada/Mountain'), ('US/Arizona', 'GMT-07:00 US/Arizona'), ('US/Mountain', 'GMT-07:00 US/Mountain'), ('America/Belize', 'GMT-06:00 America/Belize'), ('America/Cambridge_Bay', 'GMT-06:00 America/Cambridge Bay'), ('America/Cancun', 'GMT-06:00 America/Cancun'), ('America/Chicago', 'GMT-06:00 America/Chicago'), ('America/Costa_Rica', 'GMT-06:00 America/Costa Rica'), ('America/El_Salvador', 'GMT-06:00 America/El Salvador'), ('America/Guatemala', 'GMT-06:00 America/Guatemala'), ('America/Iqaluit', 'GMT-06:00 America/Iqaluit'), ('America/Kentucky/Monticello', 'GMT-06:00 America/Kentucky/Monticello'), ('America/Managua', 'GMT-06:00 America/Managua'), ('America/Matamoros', 'GMT-06:00 America/Matamoros'), ('America/Menominee', 'GMT-06:00 America/Menominee'), ('America/Merida', 'GMT-06:00 America/Merida'), ('America/Mexico_City', 'GMT-06:00 America/Mexico City'), ('America/Monterrey', 'GMT-06:00 America/Monterrey'), ('America/North_Dakota/Center', 'GMT-06:00 America/North Dakota/Center'), ('America/Pangnirtung', 'GMT-06:00 America/Pangnirtung'), ('America/Rainy_River', 'GMT-06:00 America/Rainy River'), ('America/Rankin_Inlet', 'GMT-06:00 America/Rankin Inlet'), ('America/Regina', 'GMT-06:00 America/Regina'), ('America/Resolute', 'GMT-06:00 America/Resolute'), ('America/Swift_Current', 'GMT-06:00 America/Swift Current'), ('America/Tegucigalpa', 'GMT-06:00 America/Tegucigalpa'), ('America/Winnipeg', 'GMT-06:00 America/Winnipeg'), ('Canada/Central', 'GMT-06:00 Canada/Central'), ('Pacific/Galapagos', 'GMT-06:00 Pacific/Galapagos'), ('US/Central', 'GMT-06:00 US/Central'), ('America/Atikokan', 'GMT-05:00 America/Atikokan'), ('America/Bogota', 'GMT-05:00 America/Bogota'), ('America/Cayman', 'GMT-05:00 America/Cayman'), ('America/Detroit', 'GMT-05:00 America/Detroit'), ('America/Eirunepe', 'GMT-05:00 America/Eirunepe'), ('America/Grand_Turk', 'GMT-05:00 America/Grand Turk'), ('America/Guayaquil', 'GMT-05:00 America/Guayaquil'), ('America/Havana', 'GMT-05:00 America/Havana'), ('America/Indiana/Indianapolis', 'GMT-05:00 America/Indiana/Indianapolis'), ('America/Indiana/Knox', 'GMT-05:00 America/Indiana/Knox'), ('America/Indiana/Marengo', 'GMT-05:00 America/Indiana/Marengo'), ('America/Indiana/Petersburg', 'GMT-05:00 America/Indiana/Petersburg'), ('America/Indiana/Tell_City', 'GMT-05:00 America/Indiana/Tell City'), ('America/Indiana/Vevay', 'GMT-05:00 America/Indiana/Vevay'), ('America/Indiana/Vincennes', 'GMT-05:00 America/Indiana/Vincennes'), ('America/Indiana/Winamac', 'GMT-05:00 America/Indiana/Winamac'), ('America/Jamaica', 'GMT-05:00 America/Jamaica'), ('America/Kentucky/Louisville', 'GMT-05:00 America/Kentucky/Louisville'), ('America/Lima', 'GMT-05:00 America/Lima'), ('America/Nassau', 'GMT-05:00 America/Nassau'), ('America/New_York', 'GMT-05:00 America/New York'), ('America/Nipigon', 'GMT-05:00 America/Nipigon'), ('America/Panama', 'GMT-05:00 America/Panama'), ('America/Port-au-Prince', 'GMT-05:00 America/Port-au-Prince'), ('America/Rio_Branco', 'GMT-05:00 America/Rio Branco'), ('America/Thunder_Bay', 'GMT-05:00 America/Thunder Bay'), ('America/Toronto', 'GMT-05:00 America/Toronto'), ('Canada/Eastern', 'GMT-05:00 Canada/Eastern'), ('Pacific/Easter', 'GMT-05:00 Pacific/Easter'), ('US/Eastern', 'GMT-05:00 US/Eastern'), ('America/Anguilla', 'GMT-04:00 America/Anguilla'), ('America/Antigua', 'GMT-04:00 America/Antigua'), ('America/Aruba', 'GMT-04:00 America/Aruba'), ('America/Barbados', 'GMT-04:00 America/Barbados'), ('America/Blanc-Sablon', 'GMT-04:00 America/Blanc-Sablon'), ('America/Caracas', 'GMT-04:00 America/Caracas'), ('America/Curacao', 'GMT-04:00 America/Curacao'), ('America/Dominica', 'GMT-04:00 America/Dominica'), ('America/Glace_Bay', 'GMT-04:00 America/Glace Bay'), ('America/Goose_Bay', 'GMT-04:00 America/Goose Bay'), ('America/Grenada', 'GMT-04:00 America/Grenada'), ('America/Guadeloupe', 'GMT-04:00 America/Guadeloupe'), ('America/Guyana', 'GMT-04:00 America/Guyana'), ('America/Halifax', 'GMT-04:00 America/Halifax'), ('America/Kralendijk', 'GMT-04:00 America/Kralendijk'), ('America/La_Paz', 'GMT-04:00 America/La Paz'), ('America/Lower_Princes', 'GMT-04:00 America/Lower Princes'), ('America/Manaus', 'GMT-04:00 America/Manaus'), ('America/Marigot', 'GMT-04:00 America/Marigot'), ('America/Martinique', 'GMT-04:00 America/Martinique'), ('America/Moncton', 'GMT-04:00 America/Moncton'), ('America/Montserrat', 'GMT-04:00 America/Montserrat'), ('America/Port_of_Spain', 'GMT-04:00 America/Port of Spain'), ('America/Porto_Velho', 'GMT-04:00 America/Porto Velho'), ('America/Puerto_Rico', 'GMT-04:00 America/Puerto Rico'), ('America/Santarem', 'GMT-04:00 America/Santarem'), ('America/Santo_Domingo', 'GMT-04:00 America/Santo Domingo'), ('America/St_Barthelemy', 'GMT-04:00 America/St Barthelemy'), ('America/St_Kitts', 'GMT-04:00 America/St Kitts'), ('America/St_Lucia', 'GMT-04:00 America/St Lucia'), ('America/St_Thomas', 'GMT-04:00 America/St Thomas'), ('America/St_Vincent', 'GMT-04:00 America/St Vincent'), ('America/Thule', 'GMT-04:00 America/Thule'), ('America/Tortola', 'GMT-04:00 America/Tortola'), ('Atlantic/Bermuda', 'GMT-04:00 Atlantic/Bermuda'), ('Canada/Atlantic', 'GMT-04:00 Canada/Atlantic'), ('America/St_Johns', 'GMT-03:00 America/St Johns'), ('Canada/Newfoundland', 'GMT-03:00 Canada/Newfoundland'), ('America/Argentina/Buenos_Aires', 'GMT-03:00 America/Argentina/Buenos Aires'), ('America/Argentina/Catamarca', 'GMT-03:00 America/Argentina/Catamarca'), ('America/Argentina/Cordoba', 'GMT-03:00 America/Argentina/Cordoba'), ('America/Argentina/Jujuy', 'GMT-03:00 America/Argentina/Jujuy'), ('America/Argentina/La_Rioja', 'GMT-03:00 America/Argentina/La Rioja'), ('America/Argentina/Mendoza', 'GMT-03:00 America/Argentina/Mendoza'), ('America/Argentina/Rio_Gallegos', 'GMT-03:00 America/Argentina/Rio Gallegos'), ('America/Argentina/Salta', 'GMT-03:00 America/Argentina/Salta'), ('America/Argentina/San_Juan', 'GMT-03:00 America/Argentina/San Juan'), ('America/Argentina/San_Luis', 'GMT-03:00 America/Argentina/San Luis'), ('America/Argentina/Tucuman', 'GMT-03:00 America/Argentina/Tucuman'), ('America/Argentina/Ushuaia', 'GMT-03:00 America/Argentina/Ushuaia'), ('America/Asuncion', 'GMT-03:00 America/Asuncion'), ('America/Belem', 'GMT-03:00 America/Belem'), ('America/Boa_Vista', 'GMT-03:00 America/Boa Vista'), ('America/Campo_Grande', 'GMT-03:00 America/Campo Grande'), ('America/Cayenne', 'GMT-03:00 America/Cayenne'), ('America/Cuiaba', 'GMT-03:00 America/Cuiaba'), ('America/Miquelon', 'GMT-03:00 America/Miquelon'), ('America/Montevideo', 'GMT-03:00 America/Montevideo'), ('America/Nuuk', 'GMT-03:00 America/Nuuk'), ('America/Paramaribo', 'GMT-03:00 America/Paramaribo'), ('America/Punta_Arenas', 'GMT-03:00 America/Punta Arenas'), ('America/Santiago', 'GMT-03:00 America/Santiago'), ('Antarctica/Palmer', 'GMT-03:00 Antarctica/Palmer'), ('Antarctica/Rothera', 'GMT-03:00 Antarctica/Rothera'), ('Atlantic/Stanley', 'GMT-03:00 Atlantic/Stanley'), ('America/Araguaina', 'GMT-02:00 America/Araguaina'), ('America/Bahia', 'GMT-02:00 America/Bahia'), ('America/Fortaleza', 'GMT-02:00 America/Fortaleza'), ('America/Maceio', 'GMT-02:00 America/Maceio'), ('America/Recife', 'GMT-02:00 America/Recife'), ('America/Sao_Paulo', 'GMT-02:00 America/Sao Paulo'), ('Atlantic/South_Georgia', 'GMT-02:00 Atlantic/South Georgia'), ('America/Noronha', 'GMT-01:00 America/Noronha'), ('America/Scoresbysund', 'GMT-01:00 America/Scoresbysund'), ('Atlantic/Azores', 'GMT-01:00 Atlantic/Azores'), ('Atlantic/Cape_Verde', 'GMT-01:00 Atlantic/Cape Verde'), ('Africa/Abidjan', 'GMT+00:00 Africa/Abidjan'), ('Africa/Accra', 'GMT+00:00 Africa/Accra'), ('Africa/Bamako', 'GMT+00:00 Africa/Bamako'), ('Africa/Banjul', 'GMT+00:00 Africa/Banjul'), ('Africa/Bissau', 'GMT+00:00 Africa/Bissau'), ('Africa/Casablanca', 'GMT+00:00 Africa/Casablanca'), ('Africa/Conakry', 'GMT+00:00 Africa/Conakry'), ('Africa/Dakar', 'GMT+00:00 Africa/Dakar'), ('Africa/El_Aaiun', 'GMT+00:00 Africa/El Aaiun'), ('Africa/Freetown', 'GMT+00:00 Africa/Freetown'), ('Africa/Lome', 'GMT+00:00 Africa/Lome'), ('Africa/Monrovia', 'GMT+00:00 Africa/Monrovia'), ('Africa/Nouakchott', 'GMT+00:00 Africa/Nouakchott'), ('Africa/Ouagadougou', 'GMT+00:00 Africa/Ouagadougou'), ('Africa/Sao_Tome', 'GMT+00:00 Africa/Sao Tome'), ('America/Danmarkshavn', 'GMT+00:00 America/Danmarkshavn'), ('Antarctica/Troll', 'GMT+00:00 Antarctica/Troll'), ('Atlantic/Canary', 'GMT+00:00 Atlantic/Canary'), ('Atlantic/Faroe', 'GMT+00:00 Atlantic/Faroe'), ('Atlantic/Madeira', 'GMT+00:00 Atlantic/Madeira'), ('Atlantic/Reykjavik', 'GMT+00:00 Atlantic/Reykjavik'), ('Atlantic/St_Helena', 'GMT+00:00 Atlantic/St Helena'), ('Europe/Dublin', 'GMT+00:00 Europe/Dublin'), ('Europe/Guernsey', 'GMT+00:00 Europe/Guernsey'), ('Europe/Isle_of_Man', 'GMT+00:00 Europe/Isle of Man'), ('Europe/Jersey', 'GMT+00:00 Europe/Jersey'), ('Europe/Lisbon', 'GMT+00:00 Europe/Lisbon'), ('Europe/London', 'GMT+00:00 Europe/London'), ('GMT', 'GMT+00:00 GMT'), ('UTC', 'GMT+00:00 UTC'), ('Africa/Algiers', 'GMT+01:00 Africa/Algiers'), ('Africa/Bangui', 'GMT+01:00 Africa/Bangui'), ('Africa/Brazzaville', 'GMT+01:00 Africa/Brazzaville'), ('Africa/Ceuta', 'GMT+01:00 Africa/Ceuta'), ('Africa/Douala', 'GMT+01:00 Africa/Douala'), ('Africa/Kinshasa', 'GMT+01:00 Africa/Kinshasa'), ('Africa/Lagos', 'GMT+01:00 Africa/Lagos'), ('Africa/Libreville', 'GMT+01:00 Africa/Libreville'), ('Africa/Luanda', 'GMT+01:00 Africa/Luanda'), ('Africa/Malabo', 'GMT+01:00 Africa/Malabo'), ('Africa/Ndjamena', 'GMT+01:00 Africa/Ndjamena'), ('Africa/Niamey', 'GMT+01:00 Africa/Niamey'), ('Africa/Porto-Novo', 'GMT+01:00 Africa/Porto-Novo'), ('Africa/Tunis', 'GMT+01:00 Africa/Tunis'), ('Arctic/Longyearbyen', 'GMT+01:00 Arctic/Longyearbyen'), ('Europe/Amsterdam', 'GMT+01:00 Europe/Amsterdam'), ('Europe/Andorra', 'GMT+01:00 Europe/Andorra'), ('Europe/Belgrade', 'GMT+01:00 Europe/Belgrade'), ('Europe/Berlin', 'GMT+01:00 Europe/Berlin'), ('Europe/Bratislava', 'GMT+01:00 Europe/Bratislava'), ('Europe/Brussels', 'GMT+01:00 Europe/Brussels'), ('Europe/Budapest', 'GMT+01:00 Europe/Budapest'), ('Europe/Busingen', 'GMT+01:00 Europe/Busingen'), ('Europe/Copenhagen', 'GMT+01:00 Europe/Copenhagen'), ('Europe/Gibraltar', 'GMT+01:00 Europe/Gibraltar'), ('Europe/Ljubljana', 'GMT+01:00 Europe/Ljubljana'), ('Europe/Luxembourg', 'GMT+01:00 Europe/Luxembourg'), ('Europe/Madrid', 'GMT+01:00 Europe/Madrid'), ('Europe/Malta', 'GMT+01:00 Europe/Malta'), ('Europe/Monaco', 'GMT+01:00 Europe/Monaco'), ('Europe/Oslo', 'GMT+01:00 Europe/Oslo'), ('Europe/Paris', 'GMT+01:00 Europe/Paris'), ('Europe/Podgorica', 'GMT+01:00 Europe/Podgorica'), ('Europe/Prague', 'GMT+01:00 Europe/Prague'), ('Europe/Rome', 'GMT+01:00 Europe/Rome'), ('Europe/San_Marino', 'GMT+01:00 Europe/San Marino'), ('Europe/Sarajevo', 'GMT+01:00 Europe/Sarajevo'), ('Europe/Skopje', 'GMT+01:00 Europe/Skopje'), ('Europe/Stockholm', 'GMT+01:00 Europe/Stockholm'), ('Europe/Tirane', 'GMT+01:00 Europe/Tirane'), ('Europe/Vaduz', 'GMT+01:00 Europe/Vaduz'), ('Europe/Vatican', 'GMT+01:00 Europe/Vatican'), ('Europe/Vienna', 'GMT+01:00 Europe/Vienna'), ('Europe/Warsaw', 'GMT+01:00 Europe/Warsaw'), ('Europe/Zagreb', 'GMT+01:00 Europe/Zagreb'), ('Europe/Zurich', 'GMT+01:00 Europe/Zurich'), ('Africa/Blantyre', 'GMT+02:00 Africa/Blantyre'), ('Africa/Bujumbura', 'GMT+02:00 Africa/Bujumbura'), ('Africa/Cairo', 'GMT+02:00 Africa/Cairo'), ('Africa/Gaborone', 'GMT+02:00 Africa/Gaborone'), ('Africa/Harare', 'GMT+02:00 Africa/Harare'), ('Africa/Johannesburg', 'GMT+02:00 Africa/Johannesburg'), ('Africa/Juba', 'GMT+02:00 Africa/Juba'), ('Africa/Khartoum', 'GMT+02:00 Africa/Khartoum'), ('Africa/Kigali', 'GMT+02:00 Africa/Kigali'), ('Africa/Lubumbashi', 'GMT+02:00 Africa/Lubumbashi'), ('Africa/Lusaka', 'GMT+02:00 Africa/Lusaka'), ('Africa/Maputo', 'GMT+02:00 Africa/Maputo'), ('Africa/Maseru', 'GMT+02:00 Africa/Maseru'), ('Africa/Mbabane', 'GMT+02:00 Africa/Mbabane'), ('Africa/Tripoli', 'GMT+02:00 Africa/Tripoli'), ('Africa/Windhoek', 'GMT+02:00 Africa/Windhoek'), ('Asia/Amman', 'GMT+02:00 Asia/Amman'), ('Asia/Beirut', 'GMT+02:00 Asia/Beirut'), ('Asia/Damascus', 'GMT+02:00 Asia/Damascus'), ('Asia/Famagusta', 'GMT+02:00 Asia/Famagusta'), ('Asia/Gaza', 'GMT+02:00 Asia/Gaza'), ('Asia/Hebron', 'GMT+02:00 Asia/Hebron'), ('Asia/Jerusalem', 'GMT+02:00 Asia/Jerusalem'), ('Asia/Nicosia', 'GMT+02:00 Asia/Nicosia'), ('Europe/Athens', 'GMT+02:00 Europe/Athens'), ('Europe/Bucharest', 'GMT+02:00 Europe/Bucharest'), ('Europe/Chisinau', 'GMT+02:00 Europe/Chisinau'), ('Europe/Helsinki', 'GMT+02:00 Europe/Helsinki'), ('Europe/Istanbul', 'GMT+02:00 Europe/Istanbul'), ('Europe/Kaliningrad', 'GMT+02:00 Europe/Kaliningrad'), ('Europe/Kyiv', 'GMT+02:00 Europe/Kyiv'), ('Europe/Mariehamn', 'GMT+02:00 Europe/Mariehamn'), ('Europe/Minsk', 'GMT+02:00 Europe/Minsk'), ('Europe/Riga', 'GMT+02:00 Europe/Riga'), ('Europe/Simferopol', 'GMT+02:00 Europe/Simferopol'), ('Europe/Sofia', 'GMT+02:00 Europe/Sofia'), ('Europe/Tallinn', 'GMT+02:00 Europe/Tallinn'), ('Europe/Vilnius', 'GMT+02:00 Europe/Vilnius'), ('Africa/Addis_Ababa', 'GMT+03:00 Africa/Addis Ababa'), ('Africa/Asmara', 'GMT+03:00 Africa/Asmara'), ('Africa/Dar_es_Salaam', 'GMT+03:00 Africa/Dar es Salaam'), ('Africa/Djibouti', 'GMT+03:00 Africa/Djibouti'), ('Africa/Kampala', 'GMT+03:00 Africa/Kampala'), ('Africa/Mogadishu', 'GMT+03:00 Africa/Mogadishu'), ('Africa/Nairobi', 'GMT+03:00 Africa/Nairobi'), ('Antarctica/Syowa', 'GMT+03:00 Antarctica/Syowa'), ('Asia/Aden', 'GMT+03:00 Asia/Aden'), ('Asia/Baghdad', 'GMT+03:00 Asia/Baghdad'), ('Asia/Bahrain', 'GMT+03:00 Asia/Bahrain'), ('Asia/Kuwait', 'GMT+03:00 Asia/Kuwait'), ('Asia/Qatar', 'GMT+03:00 Asia/Qatar'), ('Asia/Riyadh', 'GMT+03:00 Asia/Riyadh'), ('Europe/Astrakhan', 'GMT+03:00 Europe/Astrakhan'), ('Europe/Kirov', 'GMT+03:00 Europe/Kirov'), ('Europe/Moscow', 'GMT+03:00 Europe/Moscow'), ('Europe/Saratov', 'GMT+03:00 Europe/Saratov'), ('Europe/Ulyanovsk', 'GMT+03:00 Europe/Ulyanovsk'), ('Europe/Volgograd', 'GMT+03:00 Europe/Volgograd'), ('Indian/Antananarivo', 'GMT+03:00 Indian/Antananarivo'), ('Indian/Comoro', 'GMT+03:00 Indian/Comoro'), ('Indian/Mayotte', 'GMT+03:00 Indian/Mayotte'), ('Asia/Tehran', 'GMT+03:00 Asia/Tehran'), ('Asia/Aqtau', 'GMT+04:00 Asia/Aqtau'), ('Asia/Atyrau', 'GMT+04:00 Asia/Atyrau'), ('Asia/Baku', 'GMT+04:00 Asia/Baku'), ('Asia/Dubai', 'GMT+04:00 Asia/Dubai'), ('Asia/Muscat', 'GMT+04:00 Asia/Muscat'), ('Asia/Oral', 'GMT+04:00 Asia/Oral'), ('Asia/Tbilisi', 'GMT+04:00 Asia/Tbilisi'), ('Asia/Yerevan', 'GMT+04:00 Asia/Yerevan'), ('Europe/Samara', 'GMT+04:00 Europe/Samara'), ('Indian/Mahe', 'GMT+04:00 Indian/Mahe'), ('Indian/Mauritius', 'GMT+04:00 Indian/Mauritius'), ('Indian/Reunion', 'GMT+04:00 Indian/Reunion'), ('Asia/Kabul', 'GMT+04:00 Asia/Kabul'), ('Asia/Aqtobe', 'GMT+05:00 Asia/Aqtobe'), ('Asia/Ashgabat', 'GMT+05:00 Asia/Ashgabat'), ('Asia/Bishkek', 'GMT+05:00 Asia/Bishkek'), ('Asia/Dushanbe', 'GMT+05:00 Asia/Dushanbe'), ('Asia/Karachi', 'GMT+05:00 Asia/Karachi'), ('Asia/Qostanay', 'GMT+05:00 Asia/Qostanay'), ('Asia/Qyzylorda', 'GMT+05:00 Asia/Qyzylorda'), ('Asia/Samarkand', 'GMT+05:00 Asia/Samarkand'), ('Asia/Tashkent', 'GMT+05:00 Asia/Tashkent'), ('Asia/Yekaterinburg', 'GMT+05:00 Asia/Yekaterinburg'), ('Indian/Kerguelen', 'GMT+05:00 Indian/Kerguelen'), ('Indian/Maldives', 'GMT+05:00 Indian/Maldives'), ('Asia/Kolkata', 'GMT+05:00 Asia/Kolkata'), ('Asia/Kathmandu', 'GMT+05:00 Asia/Kathmandu'), ('Antarctica/Mawson', 'GMT+06:00 Antarctica/Mawson'), ('Antarctica/Vostok', 'GMT+06:00 Antarctica/Vostok'), ('Asia/Almaty', 'GMT+06:00 Asia/Almaty'), ('Asia/Barnaul', 'GMT+06:00 Asia/Barnaul'), ('Asia/Colombo', 'GMT+06:00 Asia/Colombo'), ('Asia/Dhaka', 'GMT+06:00 Asia/Dhaka'), ('Asia/Novosibirsk', 'GMT+06:00 Asia/Novosibirsk'), ('Asia/Omsk', 'GMT+06:00 Asia/Omsk'), ('Asia/Thimphu', 'GMT+06:00 Asia/Thimphu'), ('Asia/Urumqi', 'GMT+06:00 Asia/Urumqi'), ('Indian/Chagos', 'GMT+06:00 Indian/Chagos'), ('Asia/Yangon', 'GMT+06:00 Asia/Yangon'), ('Indian/Cocos', 'GMT+06:00 Indian/Cocos'), ('Antarctica/Davis', 'GMT+07:00 Antarctica/Davis'), ('Asia/Bangkok', 'GMT+07:00 Asia/Bangkok'), ('Asia/Ho_Chi_Minh', 'GMT+07:00 Asia/Ho Chi Minh'), ('Asia/Hovd', 'GMT+07:00 Asia/Hovd'), ('Asia/Jakarta', 'GMT+07:00 Asia/Jakarta'), ('Asia/Krasnoyarsk', 'GMT+07:00 Asia/Krasnoyarsk'), ('Asia/Novokuznetsk', 'GMT+07:00 Asia/Novokuznetsk'), ('Asia/Phnom_Penh', 'GMT+07:00 Asia/Phnom Penh'), ('Asia/Pontianak', 'GMT+07:00 Asia/Pontianak'), ('Asia/Tomsk', 'GMT+07:00 Asia/Tomsk'), ('Asia/Vientiane', 'GMT+07:00 Asia/Vientiane'), ('Indian/Christmas', 'GMT+07:00 Indian/Christmas'), ('Antarctica/Casey', 'GMT+08:00 Antarctica/Casey'), ('Asia/Brunei', 'GMT+08:00 Asia/Brunei'), ('Asia/Dili', 'GMT+08:00 Asia/Dili'), ('Asia/Hong_Kong', 'GMT+08:00 Asia/Hong Kong'), ('Asia/Irkutsk', 'GMT+08:00 Asia/Irkutsk'), ('Asia/Kuala_Lumpur', 'GMT+08:00 Asia/Kuala Lumpur'), ('Asia/Kuching', 'GMT+08:00 Asia/Kuching'), ('Asia/Macau', 'GMT+08:00 Asia/Macau'), ('Asia/Makassar', 'GMT+08:00 Asia/Makassar'), ('Asia/Manila', 'GMT+08:00 Asia/Manila'), ('Asia/Shanghai', 'GMT+08:00 Asia/Shanghai'), ('Asia/Singapore', 'GMT+08:00 Asia/Singapore'), ('Asia/Taipei', 'GMT+08:00 Asia/Taipei'), ('Asia/Ulaanbaatar', 'GMT+08:00 Asia/Ulaanbaatar'), ('Australia/Perth', 'GMT+08:00 Australia/Perth'), ('Australia/Eucla', 'GMT+08:00 Australia/Eucla'), ('Asia/Chita', 'GMT+09:00 Asia/Chita'), ('Asia/Choibalsan', 'GMT+09:00 Asia/Choibalsan'), ('Asia/Jayapura', 'GMT+09:00 Asia/Jayapura'), ('Asia/Khandyga', 'GMT+09:00 Asia/Khandyga'), ('Asia/Pyongyang', 'GMT+09:00 Asia/Pyongyang'), ('Asia/Seoul', 'GMT+09:00 Asia/Seoul'), ('Asia/Tokyo', 'GMT+09:00 Asia/Tokyo'), ('Asia/Yakutsk', 'GMT+09:00 Asia/Yakutsk'), ('Pacific/Palau', 'GMT+09:00 Pacific/Palau'), ('Australia/Darwin', 'GMT+09:00 Australia/Darwin'), ('Antarctica/DumontDUrville', 'GMT+10:00 Antarctica/DumontDUrville'), ('Asia/Sakhalin', 'GMT+10:00 Asia/Sakhalin'), ('Asia/Vladivostok', 'GMT+10:00 Asia/Vladivostok'), ('Australia/Brisbane', 'GMT+10:00 Australia/Brisbane'), ('Australia/Lindeman', 'GMT+10:00 Australia/Lindeman'), ('Pacific/Bougainville', 'GMT+10:00 Pacific/Bougainville'), ('Pacific/Chuuk', 'GMT+10:00 Pacific/Chuuk'), ('Pacific/Guam', 'GMT+10:00 Pacific/Guam'), ('Pacific/Port_Moresby', 'GMT+10:00 Pacific/Port Moresby'), ('Pacific/Saipan', 'GMT+10:00 Pacific/Saipan'), ('Australia/Adelaide', 'GMT+10:00 Australia/Adelaide'), ('Australia/Broken_Hill', 'GMT+10:00 Australia/Broken Hill'), ('Antarctica/Macquarie', 'GMT+11:00 Antarctica/Macquarie'), ('Asia/Magadan', 'GMT+11:00 Asia/Magadan'), ('Asia/Srednekolymsk', 'GMT+11:00 Asia/Srednekolymsk'), ('Asia/Ust-Nera', 'GMT+11:00 Asia/Ust-Nera'), ('Australia/Hobart', 'GMT+11:00 Australia/Hobart'), ('Australia/Lord_Howe', 'GMT+11:00 Australia/Lord Howe'), ('Australia/Melbourne', 'GMT+11:00 Australia/Melbourne'), ('Australia/Sydney', 'GMT+11:00 Australia/Sydney'), ('Pacific/Efate', 'GMT+11:00 Pacific/Efate'), ('Pacific/Guadalcanal', 'GMT+11:00 Pacific/Guadalcanal'), ('Pacific/Kosrae', 'GMT+11:00 Pacific/Kosrae'), ('Pacific/Noumea', 'GMT+11:00 Pacific/Noumea'), ('Pacific/Pohnpei', 'GMT+11:00 Pacific/Pohnpei'), ('Pacific/Norfolk', 'GMT+11:00 Pacific/Norfolk'), ('Asia/Anadyr', 'GMT+12:00 Asia/Anadyr'), ('Asia/Kamchatka', 'GMT+12:00 Asia/Kamchatka'), ('Pacific/Funafuti', 'GMT+12:00 Pacific/Funafuti'), ('Pacific/Kwajalein', 'GMT+12:00 Pacific/Kwajalein'), ('Pacific/Majuro', 'GMT+12:00 Pacific/Majuro'), ('Pacific/Nauru', 'GMT+12:00 Pacific/Nauru'), ('Pacific/Tarawa', 'GMT+12:00 Pacific/Tarawa'), ('Pacific/Wake', 'GMT+12:00 Pacific/Wake'), ('Pacific/Wallis', 'GMT+12:00 Pacific/Wallis'), ('Antarctica/McMurdo', 'GMT+13:00 Antarctica/McMurdo'), ('Pacific/Auckland', 'GMT+13:00 Pacific/Auckland'), ('Pacific/Fiji', 'GMT+13:00 Pacific/Fiji'), ('Pacific/Kanton', 'GMT+13:00 Pacific/Kanton'), ('Pacific/Chatham', 'GMT+13:00 Pacific/Chatham'), ('Pacific/Kiritimati', 'GMT+14:00 Pacific/Kiritimati'), ('Pacific/Tongatapu', 'GMT+14:00 Pacific/Tongatapu')], default='Europe/Berlin', help_text='Time Zone where this event takes place in', verbose_name='Time Zone'),
),
migrations.AlterField(
model_name='historicalak',
name='history_date',
field=models.DateTimeField(db_index=True),
),
]
# Generated by Django 3.2.16 on 2022-10-15 10:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('AKModel', '0052_history_upgrade'),
]
operations = [
migrations.AddField(
model_name='event',
name='plan_published_at',
field=models.DateTimeField(blank=True, help_text='Timestamp at which the plan was published', null=True, verbose_name='Plan published at'),
),
]
# Generated by Django 3.2.16 on 2022-10-22 12:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('AKModel', '0053_plan_published_at'),
]
operations = [
migrations.CreateModel(
name='DefaultSlot',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('start', models.DateTimeField(help_text='Time and date the slot begins', verbose_name='Slot Begin')),
('end', models.DateTimeField(help_text='Time and date the slot ends', verbose_name='Slot End')),
('event', models.ForeignKey(help_text='Associated event', on_delete=django.db.models.deletion.CASCADE, to='AKModel.event', verbose_name='Event')),
('primary_categories', models.ManyToManyField(blank=True, help_text='Categories that should be assigned to this slot primarily', to='AKModel.AKCategory', verbose_name='Primary categories')),
],
options={
'verbose_name': 'Default Slot',
'verbose_name_plural': 'Default Slots',
'ordering': ['-start'],
},
),
]
......@@ -39,6 +39,8 @@ class Event(models.Model):
active = models.BooleanField(verbose_name=_('Active State'), help_text=_('Marks currently active events'))
plan_hidden = models.BooleanField(verbose_name=_('Plan Hidden'), help_text=_('Hides plan for non-staff users'),
default=True)
plan_published_at = models.DateTimeField(verbose_name=_('Plan published at'), blank=True, null=True,
help_text=_('Timestamp at which the plan was published'))
base_url = models.URLField(verbose_name=_("Base URL"), help_text=_("Prefix for wiki link construction"), blank=True)
wiki_export_template_name = models.CharField(verbose_name=_("Wiki Export Template Name"), blank=True, max_length=50)
......@@ -639,3 +641,30 @@ class ConstraintViolation(models.Model):
if getattr(self, field) != getattr(other, field):
return False
return True
class DefaultSlot(models.Model):
class Meta:
verbose_name = _('Default Slot')
verbose_name_plural = _('Default Slots')
ordering = ['-start']
start = models.DateTimeField(verbose_name=_('Slot Begin'), help_text=_('Time and date the slot begins'))
end = models.DateTimeField(verbose_name=_('Slot End'), help_text=_('Time and date the slot ends'))
event = models.ForeignKey(to=Event, on_delete=models.CASCADE, verbose_name=_('Event'),
help_text=_('Associated event'))
primary_categories = models.ManyToManyField(to=AKCategory, verbose_name=_('Primary categories'), blank=True,
help_text=_('Categories that should be assigned to this slot primarily'))
@property
def start_simplified(self):
return self.start.astimezone(self.event.timezone).strftime('%a %H:%M')
@property
def end_simplified(self):
return self.end.astimezone(self.event.timezone).strftime('%a %H:%M')
def __str__(self):
return f"{self.event}: {self.start_simplified} - {self.end_simplified}"
{% load static %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}
<link href='{% static 'common/vendor/fullcalendar/main.css' %}' rel='stylesheet'/>
<script src='{% static 'common/vendor/fullcalendar/main.js' %}'></script>
<script src="{% static "common/vendor/moment/moment-with-locales.js" %}"></script>
<script src="{% static "common/js/availabilities.js" %}"></script>
{% with 'common/vendor/fullcalendar/locales/'|add:LANGUAGE_CODE|add:'.js' as locale_file %}
{% if LANGUAGE_CODE != "en" %}
{# Locale 'en' is included in main.js and does not exist separately #}
<script src="{% static locale_file %}"></script>
{% endif %}
{% endwith %}
......@@ -2,15 +2,23 @@
{% load i18n admin_urls %}
{% load static %}
{% load bootstrap4 %}
{% load tz %}
{% block extrahead %}
{{ block.super }}
{% bootstrap_javascript jquery='slim' %}
<link href='{% static 'AKSubmission/vendor/fullcalendar3/fullcalendar.min.css' %}' rel='stylesheet'/>
<link href='{% static 'AKSubmission/css/availabilities.css' %}' rel='stylesheet'/>
{% include "AKModel/load_fullcalendar_availabilities.html" %}
<script src="{% static "AKSubmission/vendor/moment/moment-with-locales.js" %}"></script>
<script src="{% static "AKSubmission/vendor/moment-timezone/moment-timezone-with-data-10-year-range.js" %}"></script>
<script src='{% static 'AKSubmission/vendor/fullcalendar3/fullcalendar.min.js' %}'></script>
<script src="{% static "common/js/availabilities.js" %}"></script>
<script>
{% get_current_language as LANGUAGE_CODE %}
document.addEventListener('DOMContentLoaded', function () {
createAvailabilityEditors(
'{{ original.event.timezone }}',
'{{ LANGUAGE_CODE }}',
'{{ original.event.start | timezone:original.event.timezone | date:"Y-m-d H:i:s" }}',
'{{ original.event.end | timezone:original.event.timezone | date:"Y-m-d H:i:s" }}'
);
});
</script>
{% endblock %}
{% extends "admin/base_site.html" %}
{% extends "admin/login.html" %}
{% load i18n static %}
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/login.css" %}">
{{ form.media }}
{% endblock %}
{% block bodyclass %}{{ block.super }} login{% endblock %}
{% block usertools %}{% endblock %}
{% block nav-global %}{% endblock %}
{% block nav-sidebar %}{% endblock %}
{% block content_title %}{% endblock %}
{% block breadcrumbs %}{% endblock %}
{% block content %}
{% if form.errors and not form.non_field_errors %}
......
......@@ -19,7 +19,7 @@ api_router.register('akslot', views.AKSlotViewSet, basename='AKSlot')
extra_paths = []
if apps.is_installed("AKScheduling"):
from AKScheduling.api import ResourcesViewSet, RoomAvailabilitiesView, EventsView, EventsViewSet, \
ConstraintViolationsViewSet
ConstraintViolationsViewSet, DefaultSlotsView
api_router.register('scheduling-resources', ResourcesViewSet, basename='scheduling-resources')
api_router.register('scheduling-event', EventsViewSet, basename='scheduling-event')
......@@ -28,7 +28,9 @@ if apps.is_installed("AKScheduling"):
extra_paths.append(path('api/scheduling-events/', EventsView.as_view(), name='scheduling-events'))
extra_paths.append(path('api/scheduling-room-availabilities/', RoomAvailabilitiesView.as_view(),
name='scheduling-room-availabilities'))
name='scheduling-room-availabilities')),
extra_paths.append(path('api/scheduling-default-slots/', DefaultSlotsView.as_view(),
name='scheduling-default-slots'))
if apps.is_installed("AKSubmission"):
from AKSubmission.api import increment_interest_counter
......
......@@ -11,6 +11,11 @@ register = template.Library()
@register.filter
def highlight_change_colors(akslot):
# Do not highlight in preview mode or when changes occurred before the plan was published
if akslot.event.plan_hidden or (akslot.event.plan_published_at is not None
and akslot.event.plan_published_at > akslot.updated):
return akslot.ak.category.color
seconds_since_update = akslot.seconds_since_last_update
# Last change long ago? Use default color
......
......@@ -99,6 +99,8 @@ TEMPLATES = [
WSGI_APPLICATION = 'AKPlanning.wsgi.application'
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
# Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
......
......@@ -7,7 +7,7 @@ from django.views.generic import ListView
from rest_framework import viewsets, mixins, serializers, permissions
from AKModel.availability.models import Availability
from AKModel.models import Room, AKSlot, ConstraintViolation
from AKModel.models import Room, AKSlot, ConstraintViolation, DefaultSlot
from AKModel.views import EventSlugMixin
......@@ -80,6 +80,30 @@ class RoomAvailabilitiesView(LoginRequiredMixin, EventSlugMixin, ListView):
)
class DefaultSlotsView(LoginRequiredMixin, EventSlugMixin, ListView):
model = DefaultSlot
context_object_name = "default_slots"
def get_queryset(self):
return super().get_queryset().filter(event=self.event)
def render_to_response(self, context, **response_kwargs):
all_room_ids = [r.pk for r in self.event.room_set.all()]
return JsonResponse(
[{
"title": "",
"resourceIds": all_room_ids,
"start": timezone.localtime(a.start, self.event.timezone).strftime("%Y-%m-%d %H:%M:%S"),
"end": timezone.localtime(a.end, self.event.timezone).strftime("%Y-%m-%d %H:%M:%S"),
"display": 'background',
"groupId": 'defaultSlot',
"backgroundColor": '#69b6d4'
} for a in context["default_slots"]],
safe=False,
**response_kwargs
)
class EventSerializer(serializers.ModelSerializer):
class Meta:
model = AKSlot
......
......@@ -147,7 +147,8 @@
resources: '{% url "model:scheduling-resources-list" event_slug=event.slug %}',
eventSources: [
'{% url "model:scheduling-events" event_slug=event.slug %}',
'{% url "model:scheduling-room-availabilities" event_slug=event.slug %}'
'{% url "model:scheduling-room-availabilities" event_slug=event.slug %}',
'{% url "model:scheduling-default-slots" event_slug=event.slug %}'
],
schedulerLicenseKey: 'GPL-My-Project-Is-Open-Source',
dayMinWidth: 100,
......