AMBARI-7288. Slider View: Create Slider App wizard config sections should have triangles (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4209a492 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4209a492 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4209a492 Branch: refs/heads/branch-alerts-dev Commit: 4209a492938e541be626d524bf46181bfc8d3f9b Parents: 85a8977 Author: Alex Antonenko <hiv...@gmail.com> Authored: Fri Sep 12 21:32:40 2014 +0300 Committer: Alex Antonenko <hiv...@gmail.com> Committed: Sat Sep 13 01:30:50 2014 +0300 ---------------------------------------------------------------------- .../main/resources/ui/app/styles/application.less | 15 +++++++++++++++ .../ui/app/templates/createAppWizard/step3.hbs | 2 +- .../ui/app/views/createAppWizard/step3_view.js | 3 ++- 3 files changed, 18 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/4209a492/contrib/views/slider/src/main/resources/ui/app/styles/application.less ---------------------------------------------------------------------- diff --git a/contrib/views/slider/src/main/resources/ui/app/styles/application.less b/contrib/views/slider/src/main/resources/ui/app/styles/application.less index b415da0..c193d3e 100644 --- a/contrib/views/slider/src/main/resources/ui/app/styles/application.less +++ b/contrib/views/slider/src/main/resources/ui/app/styles/application.less @@ -383,6 +383,16 @@ a { margin-bottom: 30px; } } + .app-wiz-configs { + .accordion-toggle { + display: block; + } + .panel-heading{ + .icon{ + width: 23px; + } + } + } } .app-page { @@ -636,6 +646,11 @@ a { a.accordion-toggle { display: block; } + .panel-heading{ + .icon{ + width: 24px; + } + } .row { .table-row(); textarea { http://git-wip-us.apache.org/repos/asf/ambari/blob/4209a492/contrib/views/slider/src/main/resources/ui/app/templates/createAppWizard/step3.hbs ---------------------------------------------------------------------- diff --git a/contrib/views/slider/src/main/resources/ui/app/templates/createAppWizard/step3.hbs b/contrib/views/slider/src/main/resources/ui/app/templates/createAppWizard/step3.hbs index c7ae662..8faa52c 100644 --- a/contrib/views/slider/src/main/resources/ui/app/templates/createAppWizard/step3.hbs +++ b/contrib/views/slider/src/main/resources/ui/app/templates/createAppWizard/step3.hbs @@ -19,7 +19,7 @@ <p> {{t wizard.step3.header}} </p> -<div {{bind-attr class="controller.isError:has-error :form-group"}}> +<div {{bind-attr class="controller.isError:has-error :form-group :app-wiz-configs"}}> {{#each controller.sectionKeys}} {{config-section section=this http://git-wip-us.apache.org/repos/asf/ambari/blob/4209a492/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step3_view.js ---------------------------------------------------------------------- diff --git a/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step3_view.js b/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step3_view.js index e612c0a..5d3bd57 100644 --- a/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step3_view.js +++ b/contrib/views/slider/src/main/resources/ui/app/views/createAppWizard/step3_view.js @@ -16,9 +16,10 @@ * limitations under the License. */ -App.CreateAppWizardStep3View = Ember.View.extend({ +App.CreateAppWizardStep3View = Ember.View.extend(App.WithPanels, { didInsertElement: function () { this.get('controller').loadStep(); + this.addCarets(); } });