-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d115de
commit c5c7a94
Showing
27 changed files
with
648 additions
and
390 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<div class="container" i18n:domain="privatim"> | ||
<div class="dropdown"> | ||
<a class="btn btn-secondary dropdown-toggle w-20" type="button" id="actionMenuDropdown" | ||
data-bs-toggle="dropdown" | ||
aria-haspopup="true" aria-expanded="false" i18n:translate=""> | ||
Actions | ||
</a> | ||
<div class="dropdown-menu dropdown-secondary" aria-labelledby="actionMenuDropdown"> | ||
<tal:b tal:condition="action_menu_entries" tal:repeat="action_menu_entry action_menu_entries" | ||
tal:replace="action_menu_entry"> | ||
<tal:b tal:condition="len(action_menu_entries) > 1"> | ||
<hr class="dropdown-divider"> | ||
</tal:b> | ||
<!--? <a class="dropdown-item" href="#" i18n:translate="">Action</a>--> | ||
</tal:b> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from typing import TYPE_CHECKING | ||
if TYPE_CHECKING: | ||
from pyramid.interfaces import IRequest | ||
from privatim.types import RenderData | ||
|
||
|
||
class ActionMenuEntry: | ||
def __init__(self, title: str, url: str): | ||
self.title = title | ||
self.url = url | ||
|
||
def __call__(self) -> str: | ||
return f'<a class="dropdown-item" href="{self.url}">{self.title}</a>' | ||
|
||
def __str__(self) -> str: | ||
return self.__call__() | ||
|
||
def __html__(self) -> str: | ||
return self.__call__() | ||
|
||
def __repr__(self) -> str: | ||
return f'<ActionMenuEntry: {self.title}>' | ||
|
||
|
||
def action_menu(context: object, request: 'IRequest') -> 'RenderData': | ||
action_menu_entries = getattr(request, 'action_menu_entries', []) | ||
return {'action_menu_entries': action_menu_entries} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: PACKAGE 1.0\n" | ||
"POT-Creation-Date: 2024-06-17 23:23+0200\n" | ||
"POT-Creation-Date: 2024-06-19 22:52+0200\n" | ||
"PO-Revision-Date: 2024-05-21 21:20+0200\n" | ||
"Last-Translator: cyrill <[email protected]>\n" | ||
"Language-Team: German <[email protected]>\n" | ||
|
@@ -41,6 +41,10 @@ msgstr "Kontakt" | |
msgid "Close" | ||
msgstr "Schliessen" | ||
|
||
#: src/privatim/layouts/action_menu.pt | ||
msgid "Actions" | ||
msgstr "Aktionen" | ||
|
||
#: src/privatim/layouts/macros.pt | ||
msgid "Message" | ||
msgstr "Nachricht" | ||
|
@@ -98,6 +102,10 @@ msgstr "Profilbild erfolgreich geändert" | |
msgid "Successfully deleted file \"${title}\"" | ||
msgstr "Datei \"${title}\" erfolgreich gelöscht" | ||
|
||
#: src/privatim/views/meetings.py | ||
msgid "Export meeting protocol" | ||
msgstr "Sitzungsprotokoll exportieren" | ||
|
||
#: src/privatim/views/meetings.py src/privatim/forms/agenda_item_form.py | ||
msgid "Edit Agenda Item" | ||
msgstr "Traktandum bearbeiten" | ||
|
@@ -226,10 +234,12 @@ msgid "Save" | |
msgstr "Speichern" | ||
|
||
#: src/privatim/views/templates/meeting.pt | ||
#: src/privatim/reporting/template/report.pt | ||
msgid "Date / Time:" | ||
msgstr "Datum / Zeit:" | ||
|
||
#: src/privatim/views/templates/meeting.pt | ||
#: src/privatim/reporting/template/report.pt | ||
msgid "Attendees:" | ||
msgstr "Teilnehmende:" | ||
|
||
|
@@ -239,6 +249,7 @@ msgid "Working Group:" | |
msgstr "Gremium:" | ||
|
||
#: src/privatim/views/templates/meeting.pt | ||
#: src/privatim/reporting/template/report.pt | ||
msgid "Agenda Items" | ||
msgstr "Traktanden" | ||
|
||
|
@@ -248,19 +259,20 @@ msgid "Add Agenda Item" | |
msgstr "Traktandum hinzufügen" | ||
|
||
#: src/privatim/views/templates/working_group.pt | ||
#: src/privatim/reporting/template/report.pt | ||
msgid "Working Group" | ||
msgstr "Gremium" | ||
|
||
#: src/privatim/views/templates/working_group.pt | ||
#: src/privatim/forms/meeting_form.py | ||
msgid "Add Meeting" | ||
msgstr "Sitzung hinzufügen" | ||
|
||
#: src/privatim/views/templates/working_group.pt | ||
#: src/privatim/forms/working_group_forms.py | ||
msgid "Leader" | ||
msgstr "Leiter" | ||
|
||
#: src/privatim/views/templates/working_group.pt | ||
#: src/privatim/forms/meeting_form.py | ||
msgid "Add Meeting" | ||
msgstr "Sitzung hinzufügen" | ||
|
||
#: src/privatim/views/templates/working_group.pt | ||
msgid "" | ||
"Here you can add meetings in the context of a working group. Click \"Add " | ||
|
@@ -578,5 +590,9 @@ msgstr "Weitere Dokumente hochladen" | |
msgid "Select..." | ||
msgstr "Auswählen" | ||
|
||
#: src/privatim/reporting/template/report.pt | ||
msgid "Protocol of meeting ${document.title}" | ||
msgstr "Protokoll der Sitzung ${document.title}" | ||
|
||
#~ msgid "Do you really wish to delete \"${item_title}\"?" | ||
#~ msgstr "Möchten Sie \"${item_title}\" wirklich löschen?" |
Binary file not shown.
Oops, something went wrong.