From 59cdd2b7ebceae94fbecdb1eeb46a969666dc88f Mon Sep 17 00:00:00 2001
From: Roberto Sánchez <roberto.sanchez@curisit.net>
Date: Fri, 10 Jan 2014 12:25:27 +0000
Subject: [PATCH] #394 feature - Added all catalog resources with refereced fields

---
 securis/src/main/resources/static/js/catalogs.json |   58 +++++++++++++++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 51 insertions(+), 7 deletions(-)

diff --git a/securis/src/main/resources/static/js/catalogs.json b/securis/src/main/resources/static/js/catalogs.json
index f123dac..a7facac 100644
--- a/securis/src/main/resources/static/js/catalogs.json
+++ b/securis/src/main/resources/static/js/catalogs.json
@@ -28,6 +28,7 @@
 	} ]
 }, {
 	"name" : "License types",
+	"list_fields" : [ "code", "name", "application_name", "creationTimestamp" ],
 	"resource" : "licensetype",
 	"fields" : [ {
 		"name" : "id",
@@ -54,23 +55,66 @@
 		"maxlength" : 500,
 		"multiline" : 2
 	}, {
-		"name" : "application",
+		"name" : "application_id",
 		"display" : "Application",
-		"type" : "select",
-		"readOnly" : true
+		"resource" : "application",
+		"type" : "select"
 	}, {
 		"name" : "creationTimestamp",
 		"display" : "Creation date",
 		"type" : "date",
 		"readOnly" : true
+	}, {
+		"name" : "application_name",
+		"display" : "Application",
+		"listingOnly" : true
+	} ]
+}, {
+	"name" : "Organizations",
+	"list_fields" : [ "code", "name", "application_name", "creationTimestamp" ],
+	"resource" : "organization",
+	"fields" : [ {
+		"name" : "id",
+		"display" : "ID",
+		"type" : "number",
+		"pk" : true,
+		"readOnly" : true
+	}, {
+		"name" : "code",
+		"display" : "Code",
+		"type" : "string",
+		"maxlength" : 10,
+		"mandatory" : true
+	}, {
+		"name" : "name",
+		"display" : "Name",
+		"type" : "string",
+		"maxlength" : 45,
+		"mandatory" : true
+	}, {
+		"name" : "description",
+		"display" : "Description",
+		"type" : "string",
+		"maxlength" : 500,
+		"multiline" : 2
+	}, {
+		"name" : "application_id",
+		"display" : "Application",
+		"resource" : "application",
+		"type" : "select"
+	}, {
+		"name" : "creationTimestamp",
+		"display" : "Creation date",
+		"type" : "date",
+		"readOnly" : true
+	}, {
+		"name" : "application_name",
+		"display" : "Application",
+		"listingOnly" : true
 	} ]
 }, {
 	"name" : "Users",
 	"resource" : "user",
-	"fields" : []
-}, {
-	"name" : "Organizations",
-	"resource" : "organization",
 	"fields" : []
 }, {
 	"name" : "System params",

--
Gitblit v1.3.2