This commit is contained in:
@@ -73,6 +73,7 @@
|
||||
<script src="js/app.ops.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.ravLicense.js?rfv=6.9"></script>
|
||||
|
||||
<!-- handlebars templates -->
|
||||
<script src="js/templates/templates.js?rfv=6.9"></script>
|
||||
|
||||
@@ -188,7 +188,7 @@ app.purchaseEdit = (function() {
|
||||
$container = $("#app-shell-main-content");
|
||||
}
|
||||
|
||||
$container.html(Handlebars.templates["app.purchaseEdit"]({}));
|
||||
$container.html(Handlebars.templates["app.ravLicense"]({}));
|
||||
var title = "Purchase";
|
||||
|
||||
if (!stateMap.context.params.site_id) {
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
/*global $, app */
|
||||
|
||||
app.ravlicense = (function () {
|
||||
app.ravLicense = (function () {
|
||||
'use strict';
|
||||
//---------------- BEGIN MODULE SCOPE VARIABLES --------------
|
||||
var
|
||||
@@ -23,7 +23,35 @@ app.ravlicense = (function () {
|
||||
|
||||
//------------------- BEGIN 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 -------------------
|
||||
onGenerate = function (event) {
|
||||
@@ -96,7 +124,7 @@ app.ravlicense = (function () {
|
||||
if (typeof $container === 'undefined') {
|
||||
$container = $('#app-shell-main-content');
|
||||
}
|
||||
$container.html(Handlebars.templates['app.license']({}));
|
||||
$container.html(Handlebars.templates['app.ravLicense']({}));
|
||||
|
||||
|
||||
//case 3233 customer list
|
||||
|
||||
@@ -240,6 +240,7 @@ app.shell = (function () {
|
||||
page('/ops', ops);
|
||||
page('/trials', trials);
|
||||
page('/trialEdit/:id', trialEdit);
|
||||
page('/ravLicense/:id/:site_id', ravLicense);
|
||||
page('*', notFound);
|
||||
page({
|
||||
hashbang: true
|
||||
@@ -569,6 +570,22 @@ app.shell = (function () {
|
||||
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) {
|
||||
app.fourohfour.configModule({
|
||||
|
||||
Reference in New Issue
Block a user