extends ../../layout

block content
	main.content.content-alt.team-invite#main-content
		.container
			.row
				.col-md-8.col-md-offset-2.text-center
					.card
						.page-header
							h1.text-centered #{translate("invited_to_group", {inviterName: inviterName, appName: appName})}

						if (accountExists)
							div
								p #{translate("invited_to_group_login_benefits", {appName: appName})}
								p #{translate("invited_to_group_login", {emailAddress: emailAddress})}
								p
									a.btn.btn.btn-primary(href=`/login?redir=/subscription/invites/${inviteToken}`) #{translate("login_to_accept_invitation")}
						else
							div
								p #{translate("invited_to_group_register_benefits", {appName: appName})}
								p #{translate("invited_to_group_register", {inviterName: inviterName})}
								p
									a.btn.btn.btn-primary(href=`/register?redir=/subscription/invites/${inviteToken}`) #{translate("register_to_accept_invitation")}

