Skip to content
Snippets Groups Projects
Commit 6c71c571 authored by HeJ's avatar HeJ
Browse files

Merge branch '624-sos-events-misc' into 'develop'

Misc schedule/event/sos admin improvements

See merge request hub/hub!1104
parents eca6e9c6 9fbe407c
No related branches found
No related tags found
No related merge requests found
...@@ -257,6 +257,7 @@ class EventSerializer(HubModelSerializer): ...@@ -257,6 +257,7 @@ class EventSerializer(HubModelSerializer):
'track', 'track',
'assembly', 'assembly',
'room', 'room',
'location',
'language', 'language',
'description', 'description',
'is_public', 'is_public',
......
...@@ -1396,10 +1396,6 @@ msgstr "" ...@@ -1396,10 +1396,6 @@ msgstr ""
msgid "ScheduleSource__last_import" msgid "ScheduleSource__last_import"
msgstr "" msgstr ""
# use translation from core
msgid "ScheduleSource__import_frequency"
msgstr ""
msgid "ScheduleSource__has_running_import" msgid "ScheduleSource__has_running_import"
msgstr "laufender Import" msgstr "laufender Import"
...@@ -1477,7 +1473,7 @@ msgid "Event__location" ...@@ -1477,7 +1473,7 @@ msgid "Event__location"
msgstr "" msgstr ""
msgid "Event__room__none" msgid "Event__room__none"
msgstr "Freitext, siehe \"Ort\"" msgstr "siehe Feld \"Ort\""
msgid "Event__room__choose" msgid "Event__room__choose"
msgstr "Raum wählen" msgstr "Raum wählen"
......
...@@ -1401,10 +1401,6 @@ msgstr "" ...@@ -1401,10 +1401,6 @@ msgstr ""
msgid "ScheduleSource__last_import" msgid "ScheduleSource__last_import"
msgstr "" msgstr ""
# use translation from core
msgid "ScheduleSource__import_frequency"
msgstr ""
msgid "ScheduleSource__has_running_import" msgid "ScheduleSource__has_running_import"
msgstr "import running" msgstr "import running"
...@@ -1482,7 +1478,7 @@ msgid "Event__location" ...@@ -1482,7 +1478,7 @@ msgid "Event__location"
msgstr "" msgstr ""
msgid "Event__room__none" msgid "Event__room__none"
msgstr "The selected room is not available (in the given time-frame)." msgstr "see field \"Location\""
msgid "Event__room__choose" msgid "Event__room__choose"
msgstr "choose room" msgstr "choose room"
......
...@@ -27,22 +27,11 @@ ...@@ -27,22 +27,11 @@
<div class="card-body"> <div class="card-body">
<p> <p>
<span class="text-muted small">{% trans "ScheduleSource__import_url" %} (<span title="{% trans "ScheduleSource__import_type" %}">{{ source.import_type }}</span>):</span> <span class="text-muted small">{% trans "ScheduleSource__import_url" %} (<span title="{% trans "ScheduleSource__import_type" %}">{{ source.import_type }}</span>):</span>
<br>
{{ source.import_url_masked }} {{ source.import_url_masked }}
</p> </p>
<p> <p>
<span class="text-muted small">{% trans "ScheduleSource__last_import" %}:</span> <span class="text-muted small">{% trans "ScheduleSource__last_import" %}:</span>
<br> {{ latest.summary|linebreaksbr|default:"" }}
{{ source.last_import|naturaltime|default:"-/-" }}
</p>
<p>
<span class="text-muted small">{% trans "ScheduleSource__import_frequency" %}:</span>
<br>
{% if source.frequency %}
{{ source.frequency|naturaltimespan }}
{% else %}
-/-
{% endif %}
</p> </p>
{% if source.has_running_import %} {% if source.has_running_import %}
<p class="text-primary"> <p class="text-primary">
......
...@@ -651,12 +651,13 @@ class EventAdmin(admin.ModelAdmin): ...@@ -651,12 +651,13 @@ class EventAdmin(admin.ModelAdmin):
'is_public', 'is_public',
'kind', 'kind',
'room', 'room',
'location',
'schedule_start', 'schedule_start',
'schedule_duration', 'schedule_duration',
'get_is_imported', 'get_is_imported',
] ]
list_display_links = ['name'] list_display_links = ['name']
list_filter = ['conference', 'track', 'is_public', 'kind', 'room', IsImportedListFilter] list_filter = ['conference', 'track', 'is_public', 'kind', 'room', 'location', IsImportedListFilter]
save_as = True save_as = True
search_fields = ['name', 'abstract', 'description_de', 'description_en'] search_fields = ['name', 'abstract', 'description_de', 'description_en']
inlines = [ inlines = [
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
{% elif result.type == 'ConferenceTrack' %} {% elif result.type == 'ConferenceTrack' %}
{{ result.type }}: {{ result.item }} {{ result.type }}: {{ result.item }}
{% elif result.type == 'StaticPage' %} {% elif result.type == 'StaticPage' %}
{{ tagMacros.tag(result.type, {{ tagMacros.tag('Page',
style='clear', style='clear',
icon='book') }} icon='book') }}
<a class="hub-text-list-item-title" <a class="hub-text-list-item-title"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment