summaryrefslogtreecommitdiff
path: root/src/local/domain
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-10 17:55:03 +0200
committerAlon Levy <alon@pobox.com>2015-04-10 18:14:47 +0200
commit5ecd636b8104cbc7c20c68afedaaba68d0298d68 (patch)
tree8e98744002e139f9cfc6a7255033f5a54c2f2a09 /src/local/domain
parentc50c2a32f4f81f47f37397b6091d978587bd1bf7 (diff)
client: domain type_attributes are now a list for ordering
First type is default, and order is for shift-up/down selection, filter menu and type drop down in properties menu (so, basically everywhere).
Diffstat (limited to 'src/local/domain')
-rw-r--r--src/local/domain/cri.rhizi.net/domain_types.js24
-rw-r--r--src/local/domain/default.rhizi.net/domain_types.js28
-rw-r--r--src/local/domain/leap.rhizi.net/domain_types.js32
3 files changed, 42 insertions, 42 deletions
diff --git a/src/local/domain/cri.rhizi.net/domain_types.js b/src/local/domain/cri.rhizi.net/domain_types.js
index c8610aa9..7f3ff6f8 100644
--- a/src/local/domain/cri.rhizi.net/domain_types.js
+++ b/src/local/domain/cri.rhizi.net/domain_types.js
@@ -1,6 +1,6 @@
define({
- type_attributes: {
- 'internship': {
+ type_attributes: [
+ ['internship', {
'title': 'Internship',
'attributes':
['status', 'startdate', 'enddate', 'description', 'url',
@@ -12,24 +12,24 @@ define({
'city',
'country',
],
- },
- 'skill': {
+ }],
+ ['skill', {
'title': 'Skill',
'attributes': ['description', 'url'],
- },
- 'interest': {
+ }],
+ ['interest', {
'title': 'Interesst',
'attributes': ['description', 'url'],
- },
- 'person': {
+ }],
+ ['person', {
'title': 'Person',
'attributes': ['description', 'url'],
- },
- 'club': {
+ }],
+ ['club', {
'title': 'Club',
'attributes': ['description', 'url'],
- }
- },
+ }]
+ ],
attribute_titles: {
'name': 'Name',
'type': 'Type',
diff --git a/src/local/domain/default.rhizi.net/domain_types.js b/src/local/domain/default.rhizi.net/domain_types.js
index 4daa17cc..46279f7e 100644
--- a/src/local/domain/default.rhizi.net/domain_types.js
+++ b/src/local/domain/default.rhizi.net/domain_types.js
@@ -1,10 +1,10 @@
define({
- type_attributes: {
- 'keyword': {
+ type_attributes: [
+ ['keyword', {
'title': 'Keyword',
'attributes': ['description', 'url'],
- },
- 'person': {
+ }],
+ ['person', {
'title': 'Person',
'attributes': ['affiliation',
'street-address',
@@ -14,24 +14,24 @@ define({
'name',
'url'
],
- },
- 'project': {
+ }],
+ ['project', {
'title': 'Project',
'attributes': ['description', 'url'],
- },
- 'project_component': {
+ }],
+ ['project_component', {
'title': 'Project Component',
'attributes': ['description', 'url'],
- },
- 'objective': {
+ }],
+ ['objective', {
'title': 'Objective',
'attributes': ['description', 'url'],
- },
- 'resource': {
+ }],
+ ['resource', {
'title': 'Objective',
'attributes': ['description', 'url'],
- }
- },
+ }]
+ ],
attribute_titles: {
'affiliation': 'Affiliation',
'description': 'Description',
diff --git a/src/local/domain/leap.rhizi.net/domain_types.js b/src/local/domain/leap.rhizi.net/domain_types.js
index af56acbc..7025c245 100644
--- a/src/local/domain/leap.rhizi.net/domain_types.js
+++ b/src/local/domain/leap.rhizi.net/domain_types.js
@@ -1,10 +1,6 @@
define({
- type_attributes: {
- 'keyword': {
- 'title': 'Keyword',
- 'attributes': ['description', 'url'],
- },
- 'collaborator': {
+ type_attributes: [
+ ['collaborator', {
'title': 'Collaborator',
'attributes': ['affiliation',
'description',
@@ -13,24 +9,28 @@ define({
'name',
'url'
],
- },
- 'project': {
+ }],
+ ['keyword', {
+ 'title': 'Keyword',
+ 'attributes': ['description', 'url'],
+ }],
+ ['project', {
'title': 'Project',
'attributes': ['description', 'url', 'rhizi-url'],
- },
- 'idea': {
+ }],
+ ['idea', {
'title': 'Idea',
'attributes': ['description', 'url'],
- },
- 'need': {
+ }],
+ ['need', {
'title': 'Need',
'attributes': ['description', 'url'],
- },
- 'resource': {
+ }],
+ ['resource', {
'title': 'Resource',
'attributes': ['description', 'url'],
- }
- },
+ }]
+ ],
attribute_titles: {
'affiliation': 'Affiliation',
'description': 'Description',