From 5e47ba88d13b764251622c814fbe418aca1f5711 Mon Sep 17 00:00:00 2001 From: Clinton Alexander Date: Mon, 11 Jul 2016 11:50:31 +0100 Subject: [PATCH] Removed more fields. Selects reintroduced. --- src/main/webdemo/js/app.js | 12 +- src/main/webdemo/js/controllers/CreateDeal.js | 1 - src/main/webdemo/view/create-deal.html | 233 ++++++------------ 3 files changed, 88 insertions(+), 158 deletions(-) diff --git a/src/main/webdemo/js/app.js b/src/main/webdemo/js/app.js index e716480816..44577bac12 100644 --- a/src/main/webdemo/js/app.js +++ b/src/main/webdemo/js/app.js @@ -18,7 +18,7 @@ let fixedLegModel = { quantity: 2500000000, token: "EUR" }, - paymentFrequency: "SemiAnnual", + paymentFrequency: "Annual", effectiveDate: new Date(2016, 3, 11), effectiveDateAdjustment: null, terminationDate: new Date(2026, 3, 11), @@ -27,10 +27,10 @@ let fixedLegModel = { dayCountBasis: "30/360", //dayCountBasisDay: "D30", //dayCountBasisYear: "Y360", - rollConvention: "ModifiedFollowing", + rollConvention: "Following", dayInMonth: 10, paymentRule: "InArrears", - paymentDelay: 0, + paymentDelay: "0", paymentCalendar: "London", interestPeriodAdjustment: "Adjusted" }; @@ -49,12 +49,12 @@ let floatingLegModel = { dayCountBasis: "30/360", //dayCountBasisDay: "D30", //dayCountBasisYear: "Y360", - rollConvention: "ModifiedFollowing", - fixingRollConvention: "ModifiedFollowing", + rollConvention: "Following", + fixingRollConvention: "Following", dayInMonth: 10, resetDayInMonth: 10, paymentRule: "InArrears", - paymentDelay: 0, + paymentDelay: "0", paymentCalendar: [ "London" ], interestPeriodAdjustment: "Adjusted", fixingPeriodOffset: 2, diff --git a/src/main/webdemo/js/controllers/CreateDeal.js b/src/main/webdemo/js/controllers/CreateDeal.js index 77527423ab..dc92b44bfd 100644 --- a/src/main/webdemo/js/controllers/CreateDeal.js +++ b/src/main/webdemo/js/controllers/CreateDeal.js @@ -9,7 +9,6 @@ define([ ], (angular, maskedInput, semantic, nodeApi, Deal) => { angular.module('irsViewer').controller('CreateDealController', function CreateDealController($http, $scope, $location, nodeService) { semantic.init(); - $scope.isLoading = nodeService.isLoading; $scope.deal = nodeService.newDeal(); $scope.createDeal = () => { diff --git a/src/main/webdemo/view/create-deal.html b/src/main/webdemo/view/create-deal.html index 064eb04b61..57a05ee312 100644 --- a/src/main/webdemo/view/create-deal.html +++ b/src/main/webdemo/view/create-deal.html @@ -29,19 +29,15 @@
- +
- +
@@ -49,39 +45,31 @@
- +
- +
@@ -89,16 +77,12 @@
- +
@@ -110,14 +94,10 @@
- +
@@ -143,15 +123,11 @@
- +
@@ -163,53 +139,41 @@
- +
- +
- +
@@ -221,33 +185,19 @@
- +
-
- +
@@ -361,14 +311,6 @@
-
- - -
-
- - -

InterestRate

@@ -391,17 +333,6 @@
-