summaryrefslogtreecommitdiff
path: root/frontend/gamma/js/Clipperz/PM/UI/Web/Components/NewUserCreationComponent.js
Side-by-side diff
Diffstat (limited to 'frontend/gamma/js/Clipperz/PM/UI/Web/Components/NewUserCreationComponent.js') (more/less context) (ignore whitespace changes)
-rw-r--r--frontend/gamma/js/Clipperz/PM/UI/Web/Components/NewUserCreationComponent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/NewUserCreationComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/NewUserCreationComponent.js
index 06746d1..cd5faa6 100644
--- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/NewUserCreationComponent.js
+++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/NewUserCreationComponent.js
@@ -62,193 +62,193 @@ Clipperz.PM.UI.Web.Components.NewUserCreationComponent = function(args) {
//=============================================================================
Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.NewUserCreationComponent, Clipperz.PM.UI.Common.Components.TabPanelComponent, {
//-------------------------------------------------------------------------
'toString': function () {
return "Clipperz.PM.UI.Web.Components.NewUserCreationComponent component";
},
//=========================================================================
'disableAllPanels': function () {
this.tabPanelController().selectTab(null);
},
//-------------------------------------------------------------------------
'enableCredentialsPanel': function () {
this.tabPanelController().selectTab('CREDENTIALS');
},
'enableCheckCredentialsPanel': function () {
this.tabPanelController().selectTab('CHECK_CREDENTIALS');
},
'enableTermsOfServicePanel': function () {
this.tabPanelController().selectTab('TERMS_OF_SERVICE');
},
'enableCreateUserPanel': function () {
this.tabPanelController().selectTab('CREATE_USER');
},
// 'enableLoginPanel': function () {
// this.tabPanelController().selectTab('LOGIN');
// },
//=========================================================================
'shouldShowElementWhileRendering': function() {
return false;
},
//=========================================================================
'tabPanelController': function () {
if (this._tabPanelController == null) {
this._tabPanelController = new Clipperz.PM.UI.Common.Controllers.TabPanelController({
component:this,
configuration:this._tabPanelControllerConfiguration
});
MochiKit.Signal.connect(this._tabPanelController, 'tabSelected', this, 'handleTabSelected')
}
return this._tabPanelController;
},
//-------------------------------------------------------------------------
'renderSelf': function() {
this.append(this.element(), {tag:'div', cls:'NewUserCreation mainDialog', id:this.getId('panel'), children: [
{tag:'form', id:this.getId('form'), cls:'newUserCreationForm', children:[
{tag:'div', cls:'header', children:[
{tag:'div', cls:'title', children:[
{tag:'h3', id:this.getId('title'), html:"Create new user"}
]}
]},
{tag:'div', id:this.getId('body'), cls:'body', children:[
{tag:'div', cls:'tabContainer', children:[
{tag:'ul', cls:'tabs', children:[
{tag:'li', id:this.getId('credentialsTab'), children:[{tag:'span', html:"credentials"}]},
{tag:'li', id:this.getId('checkCredentialsTab'), children:[{tag:'span', html:"credentials check"}]},
{tag:'li', id:this.getId('termsOfServiceTab'), children:[{tag:'span', html:"terms of service"}]},
{tag:'li', id:this.getId('createUserTab'), children:[{tag:'span', html:"create user"}]} //,
// {tag:'li', id:this.getId('loginTab'), children:[{tag:'span', html:"login"}]},
]},
{tag:'ul', cls:'tabPanels', children:[
{tag:'li', id:this.getId('credentialsTabpanel'), cls:'tabPanel credentials', children:[
{tag:'div', cls:'wizardStepDescription', children:[{tag:'span', html:Clipperz.PM.Strings.getValue('Wizards.NewUserWizard.CREDENTIALS.description')}]},
{tag:'ul', cls:'credentials', children:[
{tag:'li', children:[{tag:'span', cls:'label', html:"username"}, {tag:'input', type:'text', id:this.getId('username')/*, value:'test'*/}]},
{tag:'li', children:[{tag:'span', cls:'label', html:"passphrase"}, {tag:'input', type:'password', id:this.getId('passphrase')/*, value:'test'*/}]}
]}
]},
{tag:'li', id:this.getId('checkCredentialsTabpanel'), cls:'tabPanel checkCredentials', children:[
{tag:'div', cls:'wizardStepDescription', children:[{tag:'span', html:Clipperz.PM.Strings.getValue('Wizards.NewUserWizard.CHECK_CREDENTIALS.description')}]},
{tag:'ul', cls:'credentials', children:[
{tag:'li', children:[{tag:'span', cls:'label', html:"re-passphrase"}, {tag:'input', type:'password', id:this.getId('re-passphrase')/*, value:'test'*/}]}
]}
]},
{tag:'li', id:this.getId('termsOfServiceTabpanel'), cls:'tabPanel termsOfService', children:[
{tag:'div', cls:'wizardStepDescription', children:[{tag:'span', html:Clipperz.PM.Strings.getValue('Wizards.NewUserWizard.TERMS_OF_SERVICE.description')}]},
{tag:'ul', cls:'termsOfService', children:[
{tag:'li', children:[{tag:'input', type:'checkbox', id:this.getId('awareOfUnrecoverablePassphrase')/*, checked:true*/}, {tag:'label', cls:'label', 'for':this.getId('awareOfUnrecoverablePassphrase'), html:"I understand that Clipperz will not be able to recover a lost passphrase."}]},
- {tag:'li', children:[{tag:'input', type:'checkbox', id:this.getId('readTermsOfService')/*, checked:true*/}, {tag:'label', cls:'label', 'for':this.getId('readTermsOfService'), htmlString:"I have read and agreed to the <a href='http://www.clipperz.com/terms_of_service' target='_blank'>Terms of Service</a>."}]}
+ {tag:'li', children:[{tag:'input', type:'checkbox', id:this.getId('readTermsOfService')/*, checked:true*/}, {tag:'label', cls:'label', 'for':this.getId('readTermsOfService'), htmlString:"I have read and agreed to the <a href='https://www.clipperz.com/terms_service' target='_blank'>Terms of Service</a>."}]}
]}
]},
{tag:'li', id:this.getId('createUserTabpanel'), cls:'tabPanel createUser', children:[
{tag:'div', cls:'wizardStepDescription', children:[{tag:'span', html:Clipperz.PM.Strings.getValue('Wizards.NewUserWizard.CREATE_USER.description')}]},
{tag:'ul', cls:'createUserStates', children:[
{tag:'li', cls:'creating', id:this.getId('creatingRegistering'), children:[{tag:'span', html:"registering user"}]},
{tag:'li', cls:'done', id:this.getId('creatingDone'), children:[{tag:'span', html:"done"}]},
{tag:'li', cls:'fail', id:this.getId('creatingFailed'), children:[{tag:'span', html:"fail"}]}
]}
]} //,
// {tag:'li', id:this.getId('loginTabpanel'), cls:'tabPanel login', children:[
// {tag:'div', cls:'wizardStepDescription', children:[{tag:'span', html:Clipperz.PM.Strings.getValue('Wizards.NewUserWizard.LOGIN.description')}]},
// ]}
]}
]}
]},
{tag:'div', id:this.getId('footer'), cls:'footer', children:[
{tag:'div', cls:'buttonArea', children:[
// {tag:'div', cls:'cancel', id:this.getId('cancelButton'), html:"cancel"},
// {tag:'div', cls:'save disabled', id:this.getId('saveButton'), html:"save"}
]}
]}
]},
{tag:'div', cls:'clear'}
]});
this.tabPanelController().setup();
// MochiKit.Signal.connect(this.getId('panel'), 'onkeydown', this, 'handleKeyEvent');
MochiKit.Signal.connect(MochiKit.DOM.currentDocument().body, 'onkeydown', this, 'handleKeyEvent');
MochiKit.Signal.connect(this.getId('awareOfUnrecoverablePassphrase'), 'onchange', this, 'handleTermsOfServiceCheckboxChange');
MochiKit.Signal.connect(this.getId('readTermsOfService'), 'onchange', this, 'handleTermsOfServiceCheckboxChange');
},
//-------------------------------------------------------------------------
/*
'resetContent': function () {
this.getElement('username').value = '';
this.getElement('passphrase').value = '';
},
*/
//-------------------------------------------------------------------------
'displayElement': function() {
return this.getElement('panel');
},
//-------------------------------------------------------------------------
'handleTabSelected': function (aSelectedTab) {
/*
switch (aSelectedTab) {
case 'DETAILS':
break;
case 'DIRECT_LOGINS':
MochiKit.Style.hideElement(this.getElement('backToDirectLoginList'));
break;
case 'SHARING':
break;
}
*/
},
//=========================================================================
'username': function () {
return this.getElement('username').value;
},
'usernameElement': function () {
return this.getElement('username');
},
'passphrase': function () {
return this.getElement('passphrase').value;
},
'rePassphrase': function () {
return this.getElement('re-passphrase').value;
},
'awareOfUnrecoverablePassphrase': function () {
return this.getElement('awareOfUnrecoverablePassphrase').value;
},
'readTermsOfService': function () {
return this.getElement('readTermsOfService').value;
},
//=========================================================================
/*
'incrementUpdateFaviconCounter': function () {
this._updateFaviconCounter ++;
},
'decrementUpdateFaviconCounter': function () {
this._updateFaviconCounter --;