2021-08-10 08:45:23 +02:00
|
|
|
<div class="admin-wizard-controls">
|
|
|
|
<h3>{{i18n "admin.wizard.pro.title"}}</h3>
|
|
|
|
|
|
|
|
<div class="buttons">
|
|
|
|
{{#if model.authentication.active}}
|
|
|
|
{{conditional-loading-spinner size="small" condition=unauthorizing}}
|
2021-09-07 14:53:45 +02:00
|
|
|
<a {{action "unauthorize"}} title={{i18n "admin.wizard.pro.unauthorize"}} role="button">
|
2021-08-10 08:45:23 +02:00
|
|
|
{{i18n "admin.wizard.pro.unauthorize"}}
|
|
|
|
</a>
|
2021-08-10 09:32:21 +02:00
|
|
|
<label title={{i18n "admin.wizard.pro.authorized"}}>
|
|
|
|
{{i18n "admin.wizard.pro.authorized"}}
|
|
|
|
</label>
|
2021-08-10 08:45:23 +02:00
|
|
|
{{else}}
|
|
|
|
{{d-button
|
|
|
|
icon="id-card"
|
|
|
|
label="admin.wizard.pro.authorize"
|
2021-08-10 09:32:21 +02:00
|
|
|
title="admin.wizard.pro.authorize"
|
2021-08-10 08:45:23 +02:00
|
|
|
action=(route-action "authorize")}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{wizard-message
|
|
|
|
key=messageKey
|
|
|
|
url=messageUrl
|
|
|
|
type=messageType
|
|
|
|
opts=messageOpts
|
|
|
|
component="pro"}}
|
|
|
|
|
|
|
|
<div class="admin-wizard-container">
|
|
|
|
{{#if showSubscription}}
|
|
|
|
{{wizard-pro-subscription subscription=model.subscription}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|