summaryrefslogtreecommitdiff
path: root/res/domain-fragment.d/default/js
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-05-05 20:50:02 +0300
committerLV-426 <lv-426@taproot.org.il>2015-05-12 14:59:05 +0300
commit140b6845eb7eed74b4d63cbda4ad2c2afdfd65d4 (patch)
tree4aa252567a61d920d35a41bf13d47b366aeda5c1 /res/domain-fragment.d/default/js
parentf14b4e5383692403d43af581780ebf52a96cf89e (diff)
relocating domain fragments (slated to move again soon)
Diffstat (limited to 'res/domain-fragment.d/default/js')
-rw-r--r--res/domain-fragment.d/default/js/domain_types.js58
1 files changed, 58 insertions, 0 deletions
diff --git a/res/domain-fragment.d/default/js/domain_types.js b/res/domain-fragment.d/default/js/domain_types.js
new file mode 100644
index 00000000..f4ca18f2
--- /dev/null
+++ b/res/domain-fragment.d/default/js/domain_types.js
@@ -0,0 +1,58 @@
+define({
+ type_attributes: [
+ ['collaborator', {
+ 'title': 'Collaborator',
+ 'attributes': ['affiliation',
+ 'description',
+ 'email',
+ 'image-url',
+ 'name',
+ 'url'
+ ],
+ }],
+ ['keyword', {
+ 'title': 'Keyword',
+ 'attributes': ['description', 'url', 'image-url'],
+ }],
+ ['project', {
+ 'title': 'Project',
+ 'attributes': ['description', 'url', 'rhizi-url', 'image-url'],
+ }],
+ ['idea', {
+ 'title': 'Idea',
+ 'attributes': ['description', 'url', 'image-url'],
+ }],
+ ['skill', {
+ 'title': 'Skill',
+ 'attributes': ['description', 'url', 'image-url'],
+ }],
+ ['resource', {
+ 'title': 'Resource',
+ 'attributes': ['description', 'url', 'image-url'],
+ }]
+ ],
+ attribute_titles: {
+ 'affiliation': 'Affiliation',
+ 'description': 'Description',
+ 'email': 'Email',
+ 'name': 'Name',
+ 'type': 'Type',
+ 'url': 'URL',
+ 'image-url': 'Image URL',
+ 'rhizi-url': 'Rhizi URL',
+ },
+ attribute_ui: {
+ 'affiliation': 'textarea',
+ 'description': 'textarea',
+ 'email': 'input',
+ 'name': 'input',
+ 'type': 'type',
+ 'image-url': 'image',
+ 'url': 'url',
+ 'rhizi-url': 'rhizi-url',
+ },
+ misc: {
+ // [!] direction of item info box only right now. should be per client.
+ 'direction': 'rtl'
+ }
+});