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