<section class="zone medium">
    <form class="box margin-top-large"
        data-analytics-event="submit"
        data-analytics-category="home"
        data-analytics-label="Update Team Membership Status"
        data-service="teams.updateMembershipStatus"
        data-scope="console"
        data-event="submit"
        data-param-team-id="{{router.params.teamId}}"
        data-param-invite-id="{{router.params.inviteId}}"
        data-param-user-id="{{router.params.userId}}"
        data-param-secret="{{router.params.secret}}"
        data-success="redirect,alert,trigger"
        data-success-param-redirect-url="/console?project={{router.params.project}}"
        data-success-param-alert-text="Joined Team Successfully"
        data-success-param-trigger-events="teams.updateMembershipStatus"
        data-failure="redirect,alert"
        data-success-param-redirect-url="/console"
        data-failure-param-alert-text="Failed to join team. Please try again later"
        data-failure-param-alert-classname="error">

        <div class="text-danger margin-bottom-large" data-ls-if="{{router.params.failure}} == 1">Failed to join team. Please try again later</div>
        
        <h2 class="margin-bottom-small">Invitation</h2>

        <p>You have been invited to join a team project on <?php echo APP_NAME; ?></p>
        
        <!-- <div class=""
             data-service="companies.getPreview"
             data-scope="api"
             data-name="api-company"
             data-param-id="{{router.params.company}}"
             data-event="load"
             data-success="trigger"
             data-success-triggers="api-company.load">

            <div data-ls-if="{{api-company.logo}} !== '' || {{api-company.logo}} !== undefined">
                <div data-ls-style="background: {{api-company.theme-color}}; color: {{api-company.theme-color-contrast}}; width: 100px; height: 100px; line-height: 100px; border-radius: 50%; margin: 0 auto; text-align: center">
                    <img data-ls-attrs="src={{env.API}}/v1/storage/files/{{api-company.logo}}/preview?project={{env.PROJECT}}&height=120" alt="Logo" style="opacity: 0; line-height: 80px; vertical-align: middle; max-width: 80px; max-height: 80px" />
                </div>
            </div>
        </div> -->

        <div class="agree margin-top margin-bottom">
            <div class="pull-start margin-end-small margin-bottom">
                <input type="checkbox" required />
            </div>

            By accepting the invitation, you agree to the <a href="/policy/terms" target="_blank">Terms and Conditions</a> and <a href="/policy/privacy" target="_blank">Privacy Policy</a>.
        </div>

        <div class="clear">
            <button class="pull-start margin-end">Accept</button>
            <a href="/" class="button reverse pull-start">Cancel</a>
        </div>
    </form>
</section>