Loading src/coliverter/certifications/FachschaftCertification.py 0 → 100644 +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) Loading
src/coliverter/certifications/FachschaftCertification.py 0 → 100644 +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)