Added: 
incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/menu.js
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/menu.js?rev=1449945&view=auto
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/menu.js 
(added)
+++ incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/menu.js 
Mon Feb 25 22:34:00 2013
@@ -0,0 +1,39 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+var App = require('app');
+
+App.MainAdminSecurityAddMenuView = Em.View.extend({
+
+  templateName: require('templates/main/admin/security/add/menu'),
+
+  isStep1Disabled: function () {
+    return 
this.get('controller.isStepDisabled').findProperty('step',1).get('value');
+  }.property('[email protected]').cacheable(),
+
+  isStep2Disabled: function () {
+    return 
this.get('controller.isStepDisabled').findProperty('step',2).get('value');
+  }.property('[email protected]').cacheable(),
+
+  isStep3Disabled: function () {
+    return 
this.get('controller.isStepDisabled').findProperty('step',3).get('value');
+  }.property('[email protected]').cacheable()
+
+});
+
+

Added: 
incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/step1.js
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/step1.js?rev=1449945&view=auto
==============================================================================
--- 
incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/step1.js 
(added)
+++ 
incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/step1.js 
Mon Feb 25 22:34:00 2013
@@ -0,0 +1,28 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+var App = require('app');
+
+App.MainAdminSecurityAddStep1View = Em.View.extend({
+
+  templateName: require('templates/main/admin/security/add/step1')
+
+});
+
+
+

Added: 
incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/step2.js
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/step2.js?rev=1449945&view=auto
==============================================================================
--- 
incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/step2.js 
(added)
+++ 
incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/step2.js 
Mon Feb 25 22:34:00 2013
@@ -0,0 +1,25 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+var App = require('app');
+
+App.MainAdminSecurityAddStep2View = Em.View.extend({
+
+  templateName: require('templates/main/admin/security/add/step2')
+
+});

Added: 
incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/step3.js
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/step3.js?rev=1449945&view=auto
==============================================================================
--- 
incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/step3.js 
(added)
+++ 
incubator/ambari/trunk/ambari-web/app/views/main/admin/security/add/step3.js 
Mon Feb 25 22:34:00 2013
@@ -0,0 +1,57 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+var App = require('app');
+
+App.MainAdminSecurityAddStep3View = Em.View.extend({
+
+  templateName: require('templates/main/admin/security/add/step3'),
+  didInsertElement: function () {
+    this.get('controller').loadStep();
+  }
+
+});
+
+App.StageStatusView = Em.View.extend({
+  tagName: 'tr',
+  hasStarted: null,
+  classNameBindings: ['faintText']
+});
+
+App.StageSuccessView = Em.View.extend({
+  layout: Ember.Handlebars.compile('<i class="icon-ok icon-large"></i> Done')
+});
+
+App.StageFailureView = Em.View.extend({
+  layout: Ember.Handlebars.compile('<i class="icon-remove icon-large"></i> 
Failed')
+});
+
+App.StageInProgressView = Em.View.extend({
+  stage: null,
+  classNames: ['progress-striped', 'active', 'progress'],
+  template: Ember.Handlebars.compile([
+    '<div class="bar" {{bindAttr style="stage.barWidth"}}>',
+    '</div>'
+  ].join('\n')),
+
+  isStageCompleted: function () {
+    return this.get('obj.progress') == 100 || 
this.get('controller.isStepCompleted');
+  }.property('controller.isStepCompleted', 'obj.progress')
+
+});
+

Added: 
incubator/ambari/trunk/ambari-web/app/views/main/admin/security/disable.js
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/admin/security/disable.js?rev=1449945&view=auto
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/admin/security/disable.js 
(added)
+++ incubator/ambari/trunk/ambari-web/app/views/main/admin/security/disable.js 
Mon Feb 25 22:34:00 2013
@@ -0,0 +1,28 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+var App = require('app');
+
+App.MainAdminSecurityDisableView = Em.View.extend({
+
+  templateName: require('templates/main/service/reconfigure'),
+
+  didInsertElement: function () {
+    this.get('controller').loadStep();
+  }
+});

Added: incubator/ambari/trunk/ambari-web/app/views/main/service/reconfigure.js
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/main/service/reconfigure.js?rev=1449945&view=auto
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/views/main/service/reconfigure.js 
(added)
+++ incubator/ambari/trunk/ambari-web/app/views/main/service/reconfigure.js Mon 
Feb 25 22:34:00 2013
@@ -0,0 +1,58 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+var App = require('app');
+
+App.MainServiceReconfigureView = Em.View.extend({
+
+  templateName: require('templates/main/service/reconfigure'),
+  didInsertElement: function () {
+    this.get('controller').loadStep();
+  }
+
+});
+
+App.StageStatusView = Em.View.extend({
+  tagName: 'tr',
+  hasStarted: null,
+  classNameBindings: ['faintText']
+});
+
+App.StageSuccessView = Em.View.extend({
+  layout: Ember.Handlebars.compile('<i class="icon-ok icon-large"></i> Done')
+});
+
+App.StageFailureView = Em.View.extend({
+  layout: Ember.Handlebars.compile('<i class="icon-remove icon-large"></i> 
Failed')
+});
+
+App.StageInProgressView = Em.View.extend({
+  stage: null,
+  classNames: ['progress-striped', 'active', 'progress'],
+  template: Ember.Handlebars.compile([
+    '<div class="bar" {{bindAttr style="stage.barWidth"}}>',
+    '</div>'
+  ].join('\n')),
+
+  isStageCompleted: function () {
+    return this.get('obj.progress') == 100 || 
this.get('controller.isStepCompleted');
+  }.property('controller.isStepCompleted', 'obj.progress')
+
+});
+
+
+


Reply via email to