Verified Commit 37272d79 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add FachschaftCertification class

parent 1eb20dbd
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
from dataclasses import dataclass
from typing import ClassVar

from pdf_generator.commitment_certification.Certification import Certification
from pdf_generator.jinja.templates import fill_template
from babel.core import Locale

from coliverter.resources.templates.get_template import get_template


@dataclass(frozen=True)
class FachschaftCertification(Certification):
    required_office_kind_name: ClassVar[str] = "Fachschaft"

    def html(self, locale: Locale) -> str:
        return fill_template(get_template("commitment_certification/fachschaft", locale), locale, certification=self)