summaryrefslogtreecommitdiff
path: root/frontend/beta/js/Clipperz/PM/Components
authorGiulio Cesare Solaroli <giulio.cesare@clipperz.com>2013-05-13 13:52:10 (UTC)
committer Giulio Cesare Solaroli <giulio.cesare@clipperz.com>2013-05-13 13:52:10 (UTC)
commitff35024f8506d7f6a2caddc3e20f062a638216c6 (patch) (unidiff)
tree5025a4d6aca2d826c7b7876e3e233b192e5edb01 /frontend/beta/js/Clipperz/PM/Components
parent77c90371a3055d0ad61d48f22207585948c591bf (diff)
downloadclipperz-ff35024f8506d7f6a2caddc3e20f062a638216c6.zip
clipperz-ff35024f8506d7f6a2caddc3e20f062a638216c6.tar.gz
clipperz-ff35024f8506d7f6a2caddc3e20f062a638216c6.tar.bz2
Upated links to web site;
added stub for Account Info data. Updated the links to the main website to match the new content/structure. The new Account Info is now completely static; will become dynamic as soon as the backend infrastructure will be in place.
Diffstat (limited to 'frontend/beta/js/Clipperz/PM/Components') (more/less context) (show whitespace changes)
-rw-r--r--frontend/beta/js/Clipperz/PM/Components/Compact/CompactHeader.js2
-rw-r--r--frontend/beta/js/Clipperz/PM/Components/Panels/MainPanel.js30
2 files changed, 31 insertions, 1 deletions
diff --git a/frontend/beta/js/Clipperz/PM/Components/Compact/CompactHeader.js b/frontend/beta/js/Clipperz/PM/Components/Compact/CompactHeader.js
index 14e42a5..9fda202 100644
--- a/frontend/beta/js/Clipperz/PM/Components/Compact/CompactHeader.js
+++ b/frontend/beta/js/Clipperz/PM/Components/Compact/CompactHeader.js
@@ -59,13 +59,13 @@ YAHOO.extendX(Clipperz.PM.Components.Compact.CompactHeader, Clipperz.PM.Componen
59 {tag:'div', id:'compactMiscLinks', children:[ 59 {tag:'div', id:'compactMiscLinks', children:[
60 {tag:'a', id:'donateHeaderIconLink', target:'_blank', href:Clipperz.PM.Strings['donateHeaderLinkUrl'], children:[ 60 {tag:'a', id:'donateHeaderIconLink', target:'_blank', href:Clipperz.PM.Strings['donateHeaderLinkUrl'], children:[
61 {tag:'img', id:'donateHeaderLinkIcon', src:'./images/smiles_small.gif'} 61 {tag:'img', id:'donateHeaderLinkIcon', src:'./images/smiles_small.gif'}
62 ]}, 62 ]},
63 {tag:'ul', children:[ 63 {tag:'ul', children:[
64 {tag:'li', children:[{tag:'a', id:'donateHeaderLink', html:'donate', target:'_blank'}]}, 64 {tag:'li', children:[{tag:'a', id:'donateHeaderLink', html:'donate', target:'_blank'}]},
65 {tag:'li', children:[{tag:'a', id:'creditsHeaderLink', html:'credits', target:'_blank'}]}, 65 // {tag:'li', children:[{tag:'a', id:'creditsHeaderLink', html:'credits', target:'_blank'}]},
66 {tag:'li', children:[{tag:'a', id:'feedbackHeaderLink', html:'feedback', target:'_blank'}]}, 66 {tag:'li', children:[{tag:'a', id:'feedbackHeaderLink', html:'feedback', target:'_blank'}]},
67 {tag:'li', children:[{tag:'a', id:'helpHeaderLink', html:'help', target:'_blank'}]}, 67 {tag:'li', children:[{tag:'a', id:'helpHeaderLink', html:'help', target:'_blank'}]},
68 {tag:'li', children:[{tag:'a', id:'forumHeaderLink', html:'forum', target:'_blank'}]} 68 {tag:'li', children:[{tag:'a', id:'forumHeaderLink', html:'forum', target:'_blank'}]}
69 ]} 69 ]}
70 ]} 70 ]}
71 ); 71 );
diff --git a/frontend/beta/js/Clipperz/PM/Components/Panels/MainPanel.js b/frontend/beta/js/Clipperz/PM/Components/Panels/MainPanel.js
index c19a8a3..bab5fba 100644
--- a/frontend/beta/js/Clipperz/PM/Components/Panels/MainPanel.js
+++ b/frontend/beta/js/Clipperz/PM/Components/Panels/MainPanel.js
@@ -80,12 +80,34 @@ YAHOO.extendX(Clipperz.PM.Components.Panels.MainPanel, Clipperz.PM.Components.Pa
80 {tag:'tbody', children:[ 80 {tag:'tbody', children:[
81 {tag:'tr', children:[ 81 {tag:'tr', children:[
82 {tag:'td', width:'15', children:[ 82 {tag:'td', width:'15', children:[
83 {tag:'div', cls:'mainPanelMinHeightDiv'} 83 {tag:'div', cls:'mainPanelMinHeightDiv'}
84 ]}, 84 ]},
85 {tag:'td', valign:'top', id:'directLoginsTD', width:'200', children:[ 85 {tag:'td', valign:'top', id:'directLoginsTD', width:'200', children:[
86 {tag:'div', id:'accountStatus', children:[
87 {tag:'div', cls:'header', children:[{tag:'h5', cls:'title', htmlString:"Account info"}]},
88 // {tag:'div', cls:'accountStatus', html:"early adopter"},
89 {tag:'div', cls:'accountLevel', children:[
90 {tag:'span', cls:'label', html:"status"},
91 {tag:'span', cls:'status', html:"early adopter"}
92 ]},
93 {tag:'div', cls:'accountLevel', children:[
94 {tag:'span', cls:'label', html:"level"},
95 // {tag:'span', cls:'level', html:"★☆☆☆"}
96 {tag:'span', cls:'level', html:"☆☆☆☆"}
97 ]},
98 {tag:'div', cls:'accountExpiration', children:[
99 {tag:'span', cls:'label', html:"expires"},
100 // {tag:'span', cls:'expriation', html:"on 26 April 2014"}
101 {tag:'span', cls:'expriation', html:"never"}
102 ]},
103 // {tag:'div', cls:'payButton', children:[
104 // {tag:'a', href:'#', cls:'info', html:"info"}
105 // ]}
106 {tag:'div', id:'payButton', cls:'payButton'}
107 ]},
86 {tag:'div', id:'directLoginsBlock', children:[ 108 {tag:'div', id:'directLoginsBlock', children:[
87 {tag:'div', cls:'directLoginsBlockHeaderBox', children:[{tag:'h3', id:'directLoginTitle', htmlString:Clipperz.PM.Strings['mainPanelDirectLoginBlockLabel']}]}, 109 {tag:'div', cls:'directLoginsBlockHeaderBox', children:[{tag:'h3', id:'directLoginTitle', htmlString:Clipperz.PM.Strings['mainPanelDirectLoginBlockLabel']}]},
88 {tag:'div', id:'directLoginsDescription', htmlString:Clipperz.PM.Strings['mainPanelDirectLoginBlockDescription']}, 110 {tag:'div', id:'directLoginsDescription', htmlString:Clipperz.PM.Strings['mainPanelDirectLoginBlockDescription']},
89 {tag:'ul', id:'directLogins'} 111 {tag:'ul', id:'directLogins'}
90 ]} 112 ]}
91 ]}, 113 ]},
@@ -133,21 +155,29 @@ YAHOO.extendX(Clipperz.PM.Components.Panels.MainPanel, Clipperz.PM.Components.Pa
133 ]}); 155 ]});
134 156
135 this.renderRecordListBlockHeader(); 157 this.renderRecordListBlockHeader();
136 // this.renderRecordListFilterHeader(); 158 // this.renderRecordListFilterHeader();
137 159
138 YAHOO.ext.Element.get('directLogins').setVisibilityMode(YAHOO.ext.Element.DISPLAY).hide(); 160 YAHOO.ext.Element.get('directLogins').setVisibilityMode(YAHOO.ext.Element.DISPLAY).hide();
161 //TODO
162 new YAHOO.ext.Button('payButton', {text:"Info", handler:this.payButtonHandler, scope:this});
139 163
140 this.recordDetailComponent(); 164 this.recordDetailComponent();
141 165
142 YAHOO.ext.Element.get('recordDetailMainBlock').setVisibilityMode(YAHOO.ext.Element.DISPLAY).show(); 166 YAHOO.ext.Element.get('recordDetailMainBlock').setVisibilityMode(YAHOO.ext.Element.DISPLAY).show();
143 YAHOO.ext.Element.get('recordCreationWizardMainBlock').setVisibilityMode(YAHOO.ext.Element.DISPLAY).hide(); 167 YAHOO.ext.Element.get('recordCreationWizardMainBlock').setVisibilityMode(YAHOO.ext.Element.DISPLAY).hide();
144 }, 168 },
145 169
146 //------------------------------------------------------------------------- 170 //-------------------------------------------------------------------------
147 171
172 'payButtonHandler': function(anEvent) {
173 window.open('https://www.clipperz.com/pricing/', '_blank');
174 },
175
176 //-------------------------------------------------------------------------
177
148 'addNewRecordButton': function() { 178 'addNewRecordButton': function() {
149 return this._addNewRecordButton; 179 return this._addNewRecordButton;
150 }, 180 },
151 181
152 'setAddNewRecordButton': function(aValue) { 182 'setAddNewRecordButton': function(aValue) {
153 this._addNewRecordButton = aValue; 183 this._addNewRecordButton = aValue;