blob: cbf31bb83e209e3d5384a195c34836653da2c31a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
{% set defaultLicenseKeyFields %}
<div piwik-field uicontrol="text" name="license_key"
class="valign licenseKeyText"
full-width="true"
ng-model="licenseController.licenseKey"
ng-change="licenseController.updatedLicenseKey()"
placeholder="{% if isValidConsumer %}{{ 'Marketplace_LicenseKeyIsValidShort'|translate }}{% else %}{{ 'Marketplace_LicenseKey'|translate|e('html_attr') }}{% endif %}">
</div>
<div piwik-save-button
class="valign"
onconfirm="licenseController.updateLicense()"
disabled="!licenseController.enableUpdate"
value="{% if hasLicenseKey %}{{ 'CoreUpdater_UpdateTitle'|translate|e('html_attr') }}{% else %}{{ 'Marketplace_ActivateLicenseKey'|translate|e('html_attr') }}{% endif %}"
id="submit_license_key"></div>
{% endset %}
<div class="marketplace-max-width" ng-controller="PiwikMarketplaceLicenseController as licenseController">
<div class="marketplace-paid-intro">
{% if isValidConsumer %}
{% if isSuperUser %}
{{ 'Marketplace_PaidPluginsWithLicenseKeyIntro'|translate('')|raw }}
<br/>
<div class="licenseToolbar valign-wrapper">
{{ defaultLicenseKeyFields|raw }}
<div piwik-save-button
class="valign"
id="remove_license_key"
onconfirm="licenseController.removeLicense()"
value="{{ 'Marketplace_RemoveLicenseKey'|translate|e('html_attr') }}"
></div>
<a href="{{ linkTo({'action': 'subscriptionOverview'}) }}" class="btn valign">
{{ 'Marketplace_ViewSubscriptions'|translate }}
</a>
{% if isAutoUpdatePossible and isPluginsAdminEnabled and paidPluginsToInstallAtOnce|length %}
<a href="javascript:;" class="btn installAllPaidPlugins valign">
{{ 'Marketplace_InstallPurchasedPlugins'|translate }}
</a>
{% include '@Marketplace/paid-plugins-install-list.twig' %}
{% endif %}
</div>
<div piwik-activity-indicator loading="licenseController.isUpdating"></div>
{% endif %}
{% else %}
{% if isSuperUser %}
{{ 'Marketplace_PaidPluginsNoLicenseKeyIntro'|translate("<a target='_blank' rel='noreferrer noopener' href='https://matomo.org/recommends/premium-plugins/'>", "</a>")|raw }}
<br/>
<div class="licenseToolbar valign-wrapper">
{{ defaultLicenseKeyFields|raw }}
</div>
<div piwik-activity-indicator loading="licenseController.isUpdating"></div>
{% else %}
{{ 'Marketplace_PaidPluginsNoLicenseKeyIntroNoSuperUserAccess'|translate("<a target='_blank' rel='noreferrer noopener' href='https://matomo.org/recommends/premium-plugins/'>", "</a>")|raw }}
{% endif %}
{% endif %}
</div>
</div>
<div class="ui-confirm" id="confirmRemoveLicense">
<h2>{{ 'Marketplace_ConfirmRemoveLicense'|translate }}</h2>
<input role="yes" type="button" value="{{ 'General_Yes'|translate }}"/>
<input role="no" type="button" value="{{ 'General_No'|translate }}"/>
</div>
|