This commit is contained in:
@@ -73,6 +73,7 @@
|
|||||||
<script src="js/app.ops.js?rfv=6.9"></script>
|
<script src="js/app.ops.js?rfv=6.9"></script>
|
||||||
<script src="js/app.trials.js?rfv=6.9"></script>
|
<script src="js/app.trials.js?rfv=6.9"></script>
|
||||||
<script src="js/app.trialEdit.js?rfv=6.9"></script>
|
<script src="js/app.trialEdit.js?rfv=6.9"></script>
|
||||||
|
<script src="js/app.ravLicense.js?rfv=6.9"></script>
|
||||||
|
|
||||||
<!-- handlebars templates -->
|
<!-- handlebars templates -->
|
||||||
<script src="js/templates/templates.js?rfv=6.9"></script>
|
<script src="js/templates/templates.js?rfv=6.9"></script>
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ app.purchaseEdit = (function() {
|
|||||||
$container = $("#app-shell-main-content");
|
$container = $("#app-shell-main-content");
|
||||||
}
|
}
|
||||||
|
|
||||||
$container.html(Handlebars.templates["app.purchaseEdit"]({}));
|
$container.html(Handlebars.templates["app.ravLicense"]({}));
|
||||||
var title = "Purchase";
|
var title = "Purchase";
|
||||||
|
|
||||||
if (!stateMap.context.params.site_id) {
|
if (!stateMap.context.params.site_id) {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
/*global $, app */
|
/*global $, app */
|
||||||
|
|
||||||
app.ravlicense = (function () {
|
app.ravLicense = (function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
//---------------- BEGIN MODULE SCOPE VARIABLES --------------
|
//---------------- BEGIN MODULE SCOPE VARIABLES --------------
|
||||||
var
|
var
|
||||||
@@ -23,7 +23,35 @@ app.ravlicense = (function () {
|
|||||||
|
|
||||||
//------------------- BEGIN UTILITY METHODS ------------------
|
//------------------- BEGIN UTILITY METHODS ------------------
|
||||||
//-------------------- END UTILITY METHODS -------------------
|
//-------------------- END UTILITY METHODS -------------------
|
||||||
|
/*
|
||||||
|
public class dtoRavLicense
|
||||||
|
{
|
||||||
|
[Required]
|
||||||
|
public string RegisteredTo { get; set; }
|
||||||
|
[Required]
|
||||||
|
public Guid DbId { get; set; }
|
||||||
|
[Required]
|
||||||
|
public long LicenseExpiration { get; set; }
|
||||||
|
[Required]
|
||||||
|
public long MaintenanceExpiration { get; set; }
|
||||||
|
[Required]
|
||||||
|
public List<dtoLicenseFeature> Features { get; set; }
|
||||||
|
[Required]
|
||||||
|
public long SiteId { get; set; }
|
||||||
|
}
|
||||||
|
public class dtoLicenseFeature
|
||||||
|
{
|
||||||
|
dtoLicenseFeature()
|
||||||
|
{
|
||||||
|
Count = 0;
|
||||||
|
}
|
||||||
|
//name of feature / product
|
||||||
|
public string Feature { get; set; }
|
||||||
|
//Optional count for items that require it
|
||||||
|
public long Count { get; set; }
|
||||||
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
//------------------- BEGIN EVENT HANDLERS -------------------
|
//------------------- BEGIN EVENT HANDLERS -------------------
|
||||||
onGenerate = function (event) {
|
onGenerate = function (event) {
|
||||||
@@ -96,7 +124,7 @@ app.ravlicense = (function () {
|
|||||||
if (typeof $container === 'undefined') {
|
if (typeof $container === 'undefined') {
|
||||||
$container = $('#app-shell-main-content');
|
$container = $('#app-shell-main-content');
|
||||||
}
|
}
|
||||||
$container.html(Handlebars.templates['app.license']({}));
|
$container.html(Handlebars.templates['app.ravLicense']({}));
|
||||||
|
|
||||||
|
|
||||||
//case 3233 customer list
|
//case 3233 customer list
|
||||||
|
|||||||
@@ -240,6 +240,7 @@ app.shell = (function () {
|
|||||||
page('/ops', ops);
|
page('/ops', ops);
|
||||||
page('/trials', trials);
|
page('/trials', trials);
|
||||||
page('/trialEdit/:id', trialEdit);
|
page('/trialEdit/:id', trialEdit);
|
||||||
|
page('/ravLicense/:id/:site_id', ravLicense);
|
||||||
page('*', notFound);
|
page('*', notFound);
|
||||||
page({
|
page({
|
||||||
hashbang: true
|
hashbang: true
|
||||||
@@ -569,6 +570,22 @@ app.shell = (function () {
|
|||||||
app.trialEdit.initModule();
|
app.trialEdit.initModule();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var trialEdit = function (ctx) {
|
||||||
|
app.nav.setSelectedMenuItem('trials');
|
||||||
|
app.trialEdit.configModule({
|
||||||
|
context: ctx
|
||||||
|
});
|
||||||
|
app.trialEdit.initModule();
|
||||||
|
}
|
||||||
|
|
||||||
|
var ravLicense = function (ctx) {
|
||||||
|
app.nav.setSelectedMenuItem('customers');
|
||||||
|
app.ravLicense.configModule({
|
||||||
|
context: ctx
|
||||||
|
});
|
||||||
|
app.ravLicense.initModule();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
var notFound = function (ctx) {
|
var notFound = function (ctx) {
|
||||||
app.fourohfour.configModule({
|
app.fourohfour.configModule({
|
||||||
|
|||||||
Reference in New Issue
Block a user