2018-05-30 06:29:21 -04:00
|
|
|
extends ../../layout
|
|
|
|
|
2021-04-15 10:23:12 -04:00
|
|
|
block append meta
|
|
|
|
meta(name="ol-hasIndividualRecurlySubscription" data-type="boolean" content=hasIndividualRecurlySubscription)
|
|
|
|
meta(name="ol-inviteToken" content=inviteToken)
|
2023-11-06 09:27:04 -05:00
|
|
|
meta(name="ol-groupSSOActive" data-type="boolean" content=groupSSOActive)
|
|
|
|
meta(name="ol-subscriptionId" data-type="string" content=subscriptionId)
|
2018-05-30 06:29:21 -04:00
|
|
|
|
|
|
|
block content
|
2021-07-27 09:23:05 -04:00
|
|
|
main.content.content-alt.team-invite#main-content
|
2018-05-30 06:29:21 -04:00
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.col-md-8.col-md-offset-2
|
2021-03-24 06:09:43 -04:00
|
|
|
if (expired)
|
2018-05-30 06:29:21 -04:00
|
|
|
.alert.alert-warning #{translate("email_link_expired")}
|
|
|
|
|
2018-06-06 10:24:24 -04:00
|
|
|
.row.row-spaced
|
2018-06-11 09:20:46 -04:00
|
|
|
.col-md-8.col-md-offset-2.text-center(ng-cloak)
|
2018-05-30 06:29:21 -04:00
|
|
|
.card(ng-controller="TeamInviteController")
|
|
|
|
.page-header
|
2021-03-04 09:22:34 -05:00
|
|
|
h1.text-centered(ng-non-bindable) #{translate("invited_to_group", {inviterName: inviterName, appName: appName})}
|
2018-05-30 06:29:21 -04:00
|
|
|
|
2023-08-01 03:51:44 -04:00
|
|
|
div(ng-show="view =='restrictedByManagedGroup'")
|
2023-08-25 04:54:42 -04:00
|
|
|
.alert.alert-info
|
|
|
|
strong #{translate("you_cant_join_this_group_subscription")}
|
|
|
|
p !{translate("your_account_is_managed_by_admin_cant_join_additional_group", {admin: currentManagedUserAdminEmail}, [{name: 'a', attrs: {href: '/learn/how-to/Understanding_Managed_Overleaf_Accounts'}}])}
|
2023-08-01 03:51:44 -04:00
|
|
|
|
2019-02-25 05:24:33 -05:00
|
|
|
div(ng-show="view =='hasIndividualRecurlySubscription'")
|
2018-05-30 08:06:27 -04:00
|
|
|
p #{translate("cancel_personal_subscription_first")}
|
2019-02-25 05:24:33 -05:00
|
|
|
.alert.alert-danger(ng-show="cancel_error" ng-cloak) #{translate("something_went_wrong_canceling_your_subscription")}
|
2018-06-11 09:20:46 -04:00
|
|
|
p
|
2023-01-18 09:38:03 -05:00
|
|
|
a.btn.btn.btn-secondary(ng-click="keepPersonalSubscription()", ng-disabled="inflight") #{translate("not_now")}
|
2018-06-11 09:20:46 -04:00
|
|
|
|
|
|
|
|
a.btn.btn.btn-primary(ng-click="cancelPersonalSubscription()", ng-disabled="inflight") #{translate("cancel_your_subscription")}
|
2018-05-30 06:29:21 -04:00
|
|
|
|
2018-06-11 09:20:46 -04:00
|
|
|
div(ng-show="view =='teamInvite'")
|
2018-06-06 11:33:01 -04:00
|
|
|
p #{translate("join_team_explanation", {appName: appName})}
|
2023-07-14 05:11:57 -04:00
|
|
|
if (!expired)
|
|
|
|
p
|
|
|
|
a.btn.btn-secondary(href="/project") #{translate("not_now")}
|
|
|
|
|
|
|
|
|
a.btn.btn.btn-primary(ng-click="joinTeam()", ng-disabled="inflight") #{translate("accept_invitation")}
|
2018-05-31 06:54:50 -04:00
|
|
|
|
2018-06-11 09:20:46 -04:00
|
|
|
div(ng-show="view =='inviteAccepted'")
|
2023-11-09 13:02:05 -05:00
|
|
|
- var doneLink = groupSSOActive ? `/subscription/${subscriptionId}/sso_enrollment` : '/project'
|
2021-03-04 09:22:34 -05:00
|
|
|
p(ng-non-bindable) #{translate("joined_team", {inviterName: inviterName})}
|
2018-06-11 09:20:46 -04:00
|
|
|
p
|
2023-11-06 09:27:04 -05:00
|
|
|
a.btn.btn.btn-primary(href=doneLink) #{translate("done")}
|