1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

Display subscription information

This commit is contained in:
Harvey Kandola 2018-09-10 10:12:14 +01:00
parent 53e4861ded
commit 9ee9526a47
6 changed files with 708 additions and 684 deletions

View file

@ -12,13 +12,29 @@
<div class="view-customize">
<form class="mt-5 ">
<div class="form-group">
<label for="product-license-xml">Enterprise Edition license (optional)</label>
<label for="product-license-xml">Optional Enterprise Edition License Key</label>
{{textarea id="product-license-xml" value=license rows="18" class=(if LicenseError 'form-control is-invalid' 'form-control')}}
<small class="form-text text-muted ">XML format</small>
{{#if appMeta.valid}}
<p class="mt-2 color-green">Valid</p>
{{#if (eq appMeta.edition "Enterprise")}}
<p class="mt-2 color-green">Registered to {{appMeta.license.email}} @ {{appMeta.license.name}}</p>
<p class="mt-2 color-green">{{appMeta.license.package}} package up to {{appMeta.license.seats}} users</p>
{{#if appMeta.license.trial}}
<p class="mt-2 color-red">Trial expiry {{formatted-date appMeta.license.end}}</p>
{{else}}
<p class="mt-2 color-green">Subscribed to {{formatted-date appMeta.license.end}}</p>
{{/if}}
{{else}}
<small class="form-text text-muted">License key is XML format and activates Enterprise edition</small>
{{/if}}
{{else}}
<p class="mt-2 color-red">Invalid</p>
<p class="mt-2 color-red">License is not valid &mdash; check user count and expirty date</p>
<p class="mt-2 color-gray">Registered to {{appMeta.license.email}} @ {{appMeta.license.name}}</p>
<p class="mt-2 color-gray">{{appMeta.license.package}} package up to {{appMeta.license.seats}} users</p>
{{#if appMeta.license.trial}}
<p class="mt-2 color-gray">Trial expiry {{formatted-date appMeta.license.end}}</p>
{{else}}
<p class="mt-2 color-gray">Subscribed to {{formatted-date appMeta.license.end}}</p>
{{/if}}
{{/if}}
</div>
<div class="btn btn-success mt-3" {{action 'saveLicense'}}>Save</div>