fsi.layouts.subscription ======================== .. py:module:: fsi.layouts.subscription Classes ------- .. autoapisummary:: fsi.layouts.subscription.SubscriptionCollectionLayout fsi.layouts.subscription.SubscriptionLayout Module Contents --------------- .. py:class:: SubscriptionCollectionLayout(model: Any, request: onegov.org.request.OrgRequest, edit_mode: bool = False) Bases: :py:obj:`onegov.fsi.layout.DefaultLayout` The default layout meant for the public facing parts of the site. .. py:attribute:: model :type: onegov.fsi.collections.subscription.SubscriptionsCollection .. py:property:: for_himself :type: bool .. py:method:: link(subscription: onegov.fsi.models.CourseSubscription) -> str .. py:method:: confirmation_link(subscription: onegov.fsi.models.CourseSubscription) -> str .. py:property:: title :type: str .. py:property:: editbar_links :type: list[onegov.core.elements.Link | onegov.core.elements.LinkGroup] A of :class:`onegov.org.elements.LinkGroup` classes. Each of them will be shown in the top editbar, with the group title being the dropdown title. .. py:property:: course_event :type: onegov.fsi.models.CourseEvent | None .. py:property:: preview_info_mail_url :type: str .. py:property:: show_send_info_mail_button :type: bool .. py:property:: breadcrumbs :type: list[onegov.core.elements.Link] Returns the breadcrumbs for the current page. .. py:method:: intercooler_btn_for_item(subscription: onegov.fsi.models.CourseSubscription) -> onegov.core.elements.Link .. py:class:: SubscriptionLayout(model: Any, request: onegov.org.request.OrgRequest, edit_mode: bool = False) Bases: :py:obj:`onegov.fsi.layout.DefaultLayout` Only used for editing since it does not contain fields .. py:attribute:: model :type: onegov.fsi.models.CourseSubscription .. py:property:: collection :type: onegov.fsi.collections.subscription.SubscriptionsCollection .. py:property:: editbar_links :type: list[onegov.core.elements.Link | onegov.core.elements.LinkGroup] A of :class:`onegov.org.elements.LinkGroup` classes. Each of them will be shown in the top editbar, with the group title being the dropdown title. .. py:property:: breadcrumbs :type: list[onegov.core.elements.Link] Returns the breadcrumbs for the current page.