This commit is contained in:
@@ -22,7 +22,9 @@ app.ravLicense = (function () {
|
|||||||
onRevoke,
|
onRevoke,
|
||||||
onPerpetualChanged,
|
onPerpetualChanged,
|
||||||
onLicenseExpiresSetOneMonth,
|
onLicenseExpiresSetOneMonth,
|
||||||
onLicenseExpiresSetOneYear;
|
onLicenseExpiresSetOneYear,
|
||||||
|
onMaintExpiresSetOneMonth,
|
||||||
|
onMaintExpiresSetOneYear;
|
||||||
//----------------- END MODULE SCOPE VARIABLES ---------------
|
//----------------- END MODULE SCOPE VARIABLES ---------------
|
||||||
|
|
||||||
//------------------- BEGIN UTILITY METHODS ------------------
|
//------------------- BEGIN UTILITY METHODS ------------------
|
||||||
@@ -131,7 +133,11 @@ app.ravLicense = (function () {
|
|||||||
$("#subusercountblock").toggleClass("d-none");
|
$("#subusercountblock").toggleClass("d-none");
|
||||||
$("#subcustcountblock").toggleClass("d-none");
|
$("#subcustcountblock").toggleClass("d-none");
|
||||||
|
|
||||||
$("#licenseExpires").prop("checked", !$("#perpetual").prop("checked"));
|
const isPerpetual = $("#perpetual").prop("checked");
|
||||||
|
$("#licenseExpires").prop("checked", !isPerpetual);
|
||||||
|
$("#title").text(
|
||||||
|
isPerpetual ? "Perpetual license" : "Subscription license"
|
||||||
|
);
|
||||||
|
|
||||||
return false; //prevent default
|
return false; //prevent default
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,7 +3,22 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<input id="siteId" name="siteId" type="hidden" value="" />
|
<input id="siteId" name="siteId" type="hidden" value="" />
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<h1 id="title">Subscription license</h1>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="form-check">
|
||||||
|
<label class="form-check-label" for="perpetual">
|
||||||
|
<input
|
||||||
|
class="form-check-input"
|
||||||
|
type="checkbox"
|
||||||
|
name="perpetual"
|
||||||
|
id="perpetual"
|
||||||
|
/>
|
||||||
|
Perpetual license
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="registeredTo">Registered to</label>
|
<label for="registeredTo">Registered to</label>
|
||||||
@@ -40,8 +55,14 @@
|
|||||||
name="maintenanceExpirationDate"
|
name="maintenanceExpirationDate"
|
||||||
value=""
|
value=""
|
||||||
/>
|
/>
|
||||||
<button id="btn-maint-expires-plus-one-month" class="btn btn-outline-primary">+1 Month</button>
|
<button
|
||||||
<button id="btn-maint-expires-plus-one-year" class="btn btn-outline-primary">+1 Year</button>
|
id="btn-maint-expires-plus-one-month"
|
||||||
|
class="btn btn-outline-primary"
|
||||||
|
>+1 Month</button>
|
||||||
|
<button
|
||||||
|
id="btn-maint-expires-plus-one-year"
|
||||||
|
class="btn btn-outline-primary"
|
||||||
|
>+1 Year</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -53,6 +74,7 @@
|
|||||||
type="checkbox"
|
type="checkbox"
|
||||||
name="licenseExpires"
|
name="licenseExpires"
|
||||||
id="licenseExpires"
|
id="licenseExpires"
|
||||||
|
checked
|
||||||
/>
|
/>
|
||||||
Temporary key / expires
|
Temporary key / expires
|
||||||
</label>
|
</label>
|
||||||
@@ -63,22 +85,14 @@
|
|||||||
name="licenseExpirationDate"
|
name="licenseExpirationDate"
|
||||||
value=""
|
value=""
|
||||||
/>
|
/>
|
||||||
<button id="btn-license-expires-plus-one-month" class="btn btn-outline-primary">+1 Month</button>
|
<button
|
||||||
<button id="btn-license-expires-plus-one-year" class="btn btn-outline-primary">+1 Year</button>
|
id="btn-license-expires-plus-one-month"
|
||||||
</div>
|
class="btn btn-outline-primary"
|
||||||
</div>
|
>+1 Month</button>
|
||||||
|
<button
|
||||||
<div class="col-sm-6">
|
id="btn-license-expires-plus-one-year"
|
||||||
<div class="form-check">
|
class="btn btn-outline-primary"
|
||||||
<label class="form-check-label" for="perpetual">
|
>+1 Year</button>
|
||||||
<input
|
|
||||||
class="form-check-input"
|
|
||||||
type="checkbox"
|
|
||||||
name="perpetual"
|
|
||||||
id="perpetual"
|
|
||||||
/>
|
|
||||||
Perpetual license
|
|
||||||
</label>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -95,7 +109,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="subusercountblock" class="col-sm-6">
|
<div id="subusercountblock" class="col-sm-6">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="subusercount">Internal users</label>
|
<label for="subusercount">Internal users</label>
|
||||||
<input
|
<input
|
||||||
@@ -139,8 +153,8 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{!-- <div class="app-frm-buttons">
|
{{! <div class="app-frm-buttons">
|
||||||
<button id="btn-revoke" class="btn btn-warning">Revoke</button>
|
<button id="btn-revoke" class="btn btn-warning">Revoke</button>
|
||||||
</div> --}}
|
</div> }}
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user