gitarre
authorMichael Wagner <michael@wagnertech.de>
Wed, 31 Jul 2024 21:16:10 +0000 (23:16 +0200)
committerMichael Wagner <michael@wagnertech.de>
Wed, 31 Jul 2024 21:16:10 +0000 (23:16 +0200)
latex/ausweis.lco [new file with mode: 0644]
latex/ausweis.tex [new file with mode: 0644]
python/eh_util/ausweis/.dummy [new file with mode: 0644]
python/eh_util/eh_util/settings.py
python/eh_util/eh_util/urls.py

diff --git a/latex/ausweis.lco b/latex/ausweis.lco
new file mode 100644 (file)
index 0000000..4dd4abf
--- /dev/null
@@ -0,0 +1,47 @@
+\ProvidesFile{testlco.lco}[2022/01/08 letter class option]
+\RequirePackage{ngerman}                % Deutsche Sprache
+\RequirePackage{fix-cm}
+\RequirePackage[T1]{fontenc}            % Ligaturschriften
+\RequirePackage[utf8]{inputenc}      % Eingabezeichensatz
+\RequirePackage{graphicx}               % Grafikpaket
+\RequirePackage{hyperref}
+\usepackage{wallpaper} % Hintergrundbilder
+\hypersetup{pdfpagemode=None}
+\KOMAoptions{
+        paper=a4,
+        pagenumber=botcenter,
+%        fromalign=right,
+%        fromrule=afteraddress,
+%        fromphone,
+%       fromfax,
+%        fromlogo,fromurl,fromemail,
+%        backaddress,
+        foldmarks,
+%        headsepline,footsepline,
+        enlargefirstpage,
+        parskip=half
+}
+%\setkomavar{fromname}{Dr.\ Joachim Schlosser}
+%\setkomavar{fromaddress}{Matthias-Erzberger-Str.~9b\\86199~Augsburg}
+%\setkomavar{fromphone}{+49\,(0)\,555\,12345}
+%\setkomavar{fromfax}{+49\,(0)\,555\,12345}
+%\setkomavar{fromemail}{joachim@example.org}
+\setkomavar*{emailseparator}{mailto}
+\setkomavar{emailseparator}{:}
+%\setkomavar{fromurl}{\url{//www.schlosser.info}}
+\setkomavar*{urlseparator}{}
+\setkomavar{urlseparator}{}
+\setkomavar{frombank}{Eine Bank\\IBAN~123\,45\,678}
+\setkomavar{place}{München}
+\setkomavar{signature}{Donald Duck}
+\setkomavar{fromlogo}{\parbox[b]{8cm}{\usekomafont{fromaddress}%
+        {\mbox{\LARGE \bfseries Dr.\ rer.\ nat.\ Joachim~Schlosser}}
+        \smallskip}
+}
+\setkomafont{backaddress}{\sffamily}
+\setkomafont{fromaddress}{\sffamily}
+\addtokomafont{fromname}{\scriptsize}
+\addtokomafont{fromaddress}{\scriptsize}
+\pagestyle{headings}
+\CenterWallPaper{1}{MitgliederausweisSVBaLVorlage_leer_v2.pdf}
+
diff --git a/latex/ausweis.tex b/latex/ausweis.tex
new file mode 100644 (file)
index 0000000..12232ee
--- /dev/null
@@ -0,0 +1,17 @@
+\documentclass{scrlttr2}
+\LoadLetterOption{ausweis}
+\setkomavar{date}{\vspace*{-6\baselineskip}\today}
+\begin{document}
+\begin{letter}{
+       %\today \par \vspace*{2\baselineskip}
+       Herr\\Michael Wagner\\Turfstr. 18a\\81929 München
+}
+\opening{\par \vspace*{3\baselineskip}Sehr geehrter Herr Wagner,}
+Hier steht der Text
+
+in mehreren Absätzen SDFG SDF SDFG SDFGHSDFGH SDFGH SDFGH SDF SDFG SDF SDSGH SDFG HGFTHs dfgsdf sdfg sdfg sdf sdfg dfsg sdfg s.
+
+Und ein dritter.
+\closing{Mit freundlichen Grüßen}
+\end{letter}
+\end{document}
diff --git a/python/eh_util/ausweis/.dummy b/python/eh_util/ausweis/.dummy
new file mode 100644 (file)
index 0000000..e69de29
index 24602be..ed6eccc 100644 (file)
@@ -31,7 +31,7 @@ ALLOWED_HOSTS = []
 # Application definition
 
 INSTALLED_APPS = [
-       'eh_abgleich',
+       'ausweis.apps.AusweisConfig',
     'django.contrib.admin',
     'django.contrib.auth',
     'django.contrib.contenttypes',
index 3d7abc2..6ddd3d8 100644 (file)
@@ -19,4 +19,5 @@ from django.urls import include, path
 urlpatterns = [
     path('admin/', admin.site.urls),
     path('eh-abgleich/', include('eh_abgleich.urls')),
+    path('<slug:verein>/ausweis/', include('ausweis.urls')),
 ]