Repository: ambari Updated Branches: refs/heads/branch-2.1 027d6a2b5 -> 95a2ebf42
AMBARI-14115. Need IDs or classes for input fields in slider view Create App Configuration step Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/95a2ebf4 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/95a2ebf4 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/95a2ebf4 Branch: refs/heads/branch-2.1 Commit: 95a2ebf42aa4a1de0758ced6125978777a3dcf75 Parents: 027d6a2 Author: Alex Antonenko <[email protected]> Authored: Mon Nov 30 17:56:59 2015 +0200 Committer: Alex Antonenko <[email protected]> Committed: Mon Nov 30 17:58:53 2015 +0200 ---------------------------------------------------------------------- .../slider/src/main/resources/ui/app/models/config_property.js | 3 +++ .../slider/src/main/resources/ui/app/templates/common/config.hbs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/95a2ebf4/contrib/views/slider/src/main/resources/ui/app/models/config_property.js ---------------------------------------------------------------------- diff --git a/contrib/views/slider/src/main/resources/ui/app/models/config_property.js b/contrib/views/slider/src/main/resources/ui/app/models/config_property.js index aa7bbc8..cb92aad 100644 --- a/contrib/views/slider/src/main/resources/ui/app/models/config_property.js +++ b/contrib/views/slider/src/main/resources/ui/app/models/config_property.js @@ -36,6 +36,9 @@ App.ConfigProperty = Em.Object.extend({ return Em.TextField; } }.property('viewType'), + className: function () { + return "value-for-" + this.get('label').replace('.', '-'); + }.property('viewType'), readOnly: false, //used for config with "select" view options: [], http://git-wip-us.apache.org/repos/asf/ambari/blob/95a2ebf4/contrib/views/slider/src/main/resources/ui/app/templates/common/config.hbs ---------------------------------------------------------------------- diff --git a/contrib/views/slider/src/main/resources/ui/app/templates/common/config.hbs b/contrib/views/slider/src/main/resources/ui/app/templates/common/config.hbs index 348cae0..fa11a23 100644 --- a/contrib/views/slider/src/main/resources/ui/app/templates/common/config.hbs +++ b/contrib/views/slider/src/main/resources/ui/app/templates/common/config.hbs @@ -24,7 +24,7 @@ {{view config.view value=config.value content=config.options - class="form-control" + classBinding=":form-control :slider-wiz-config-value config.className" disabled=config.readOnly }} </div>
