Skip to content

Commit

Permalink
include functionality for archived pois
Browse files Browse the repository at this point in the history
  • Loading branch information
membralala committed Jan 5, 2022
1 parent 9a3f48f commit 8ca2fca
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 25 deletions.
20 changes: 13 additions & 7 deletions integreat_cms/cms/templates/pois/poi_list_archived_row.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,19 @@
<i data-feather="refresh-ccw"></i>
</button>
{% if perms.cms.delete_poi %}
<button title="{% trans 'Delete location' %}" class="confirmation-button btn-icon"
data-confirmation-title="{{ delete_dialog_title }}"
data-confirmation-text="{{ delete_dialog_text }}"
data-confirmation-subject="{{ poi_translation.title }}"
data-action="{% url 'delete_poi' poi_id=poi.id region_slug=region.slug language_slug=language.slug %}">
<i data-feather="trash-2"></i>
</button>
{% if poi.events.exists %}
<button title="{% trans 'You cannot delete a location which is used by an event.' %}&#013;{% trans 'This also involves archived events.' %}" class="btn-icon" disabled>
<i data-feather="trash-2"></i>
</button>
{% else %}
<button title="{% trans 'Delete location' %}" class="confirmation-button btn-icon"
data-confirmation-title="{{ delete_dialog_title }}"
data-confirmation-text="{{ delete_dialog_text }}"
data-confirmation-subject="{{ poi_translation.title }}"
data-action="{% url 'delete_poi' poi_id=poi.id region_slug=region.slug language_slug=language.slug %}">
<i data-feather="trash-2"></i>
</button>
{% endif %}
{% endif %}
</td>
</tr>
39 changes: 21 additions & 18 deletions integreat_cms/locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-01-04 17:41+0000\n"
"POT-Creation-Date: 2022-01-05 10:17+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Integreat <info@integreat-app.de>\n"
"Language-Team: Integreat <info@integreat-app.de>\n"
Expand Down Expand Up @@ -4806,27 +4806,27 @@ msgstr "Ort archivieren"
msgid "Archive this location"
msgstr "Diesen Ort archivieren"

#: cms/templates/pois/poi_form.html:217 cms/templates/pois/poi_form.html:219
#: cms/templates/pois/poi_list_archived_row.html:62
#: cms/templates/pois/poi_form.html:217 cms/templates/pois/poi_form.html:235
#: cms/templates/pois/poi_list_archived_row.html:67
#: cms/templates/pois/poi_list_row.html:105
msgid "Delete location"
msgstr "Ort löschen"

#: cms/templates/pois/poi_form.html:224
msgid "Delete this location"
msgstr "Diesen Ort löschen"

#: cms/templates/pois/poi_form.html:229
#: cms/templates/pois/poi_form.html:221
msgid "You cannot delete a location which is referenced by an event."
msgstr ""
"Der Ort kann nicht gelöscht werden, da er von einem Event verwendet wird."

#: cms/templates/pois/poi_form.html:230
#: cms/templates/pois/poi_form.html:222
msgid "To delete this location, you have to delete this event first:"
msgid_plural "To delete this location, you have to delete these events first:"
msgstr[0] "Löschen Sie zuerst diese Veranstaltung, um den Ort zu löschen:"
msgstr[1] "Löschen Sie zuerst diese Veranstaltungen, um den Ort zu löschen:"

#: cms/templates/pois/poi_form.html:240
msgid "Delete this location"
msgstr "Diesen Ort löschen"

#: cms/templates/pois/poi_list.html:12
#: cms/templates/pois/poi_list_archived.html:9
msgid "Archived locations"
Expand All @@ -4849,6 +4849,18 @@ msgstr "Noch keine Orte vorhanden."
msgid "No locations archived yet."
msgstr "Noch keine Orte archiviert."

#: cms/templates/pois/poi_list_archived_row.html:63
#: cms/templates/pois/poi_list_row.html:101
msgid "You cannot delete a location which is used by an event."
msgstr ""
"Der Ort kann nicht gelöscht werden, da er von einer Veranstaltung verwendet "
"wird."

#: cms/templates/pois/poi_list_archived_row.html:63
#: cms/templates/pois/poi_list_row.html:101
msgid "This also involves archived events."
msgstr "Dies betrifft auch archivierte Veranstaltungen."

#: cms/templates/pois/poi_list_row.html:84
msgid "Open location in web app"
msgstr "Ort in der Web-App öffnen"
Expand All @@ -4860,15 +4872,6 @@ msgstr ""
"Dieser Ort kann nicht in der Web-App geöffnet werden, weil er nicht "
"veröffentlicht ist."

#: cms/templates/pois/poi_list_row.html:101
msgid "You cannot delete a location which is used by an event."
msgstr ""
"Der Ort kann nicht gelöscht werden, da er von einer Veranstaltung verwendet wird."

#: cms/templates/pois/poi_list_row.html:101
msgid "This also involves archived events."
msgstr "Dies betrifft auch archivierte Veranstaltungen."

#: cms/templates/push_notifications/push_notification_form.html:18
#, python-format
msgid "Edit push notification \"%(push_notification_title)s\""
Expand Down

0 comments on commit 8ca2fca

Please sign in to comment.