feriennet.homepage_widgets

Classes

RegistrationWidget

Module Contents

class feriennet.homepage_widgets.RegistrationWidget[source]
template = Multiline-String[source]
Show Value
"""
        <xsl:template match="registration">
            <div tal:condition="not:request.is_logged_in" class="register">
                <a href="./auth/register" class="button">
                    ${register_text}
                </a>
                <a href="./auth/login" class="button secondary">
                    ${login_text}
                </a>
            </div>
            <div tal:condition="request.is_logged_in" class="register">
                <a href="./userprofile" class="button secondary">
                    ${profile_text}
                </a>
            </div>
        </xsl:template>
    """
get_variables(layout: onegov.feriennet.layout.DefaultLayout) onegov.core.types.RenderData[source]