diff --git a/app/scripts/directives/alarmcell.html b/app/scripts/directives/alarmcell.html index 6153e725..1153fe50 100644 --- a/app/scripts/directives/alarmcell.html +++ b/app/scripts/directives/alarmcell.html @@ -1 +1 @@ -

{{ cell.name }}

+

{{ cell.name }}

diff --git a/app/scripts/directives/cellname.js b/app/scripts/directives/cellname.js index 3b8836ce..1b90a021 100644 --- a/app/scripts/directives/cellname.js +++ b/app/scripts/directives/cellname.js @@ -9,7 +9,7 @@ function cellNameDirective() { replace: true, // XXX: trying to use templateUrl causes 'controller cell not // found' error - template: '

' + + template: '

' + '{{ name() }}' + '{{ cellId() }}' + '

', diff --git a/app/scripts/directives/displaycell.html b/app/scripts/directives/displaycell.html index b7b5e13a..f8ee2479 100644 --- a/app/scripts/directives/displaycell.html +++ b/app/scripts/directives/displaycell.html @@ -1,21 +1,24 @@ -
- - -
- \ No newline at end of file + \ No newline at end of file diff --git a/app/scripts/directives/rangecell.html b/app/scripts/directives/rangecell.html index 945b396c..a572f352 100644 --- a/app/scripts/directives/rangecell.html +++ b/app/scripts/directives/rangecell.html @@ -1,22 +1,28 @@ -
- -
- - {{ cell.value }} - {{ cell.units }} - -
+
+
+
+ + + + + + {{ cell.units }} + +
\ No newline at end of file diff --git a/app/scripts/directives/rgbcell.html b/app/scripts/directives/rgbcell.html index a3b60806..ecfdede3 100644 --- a/app/scripts/directives/rgbcell.html +++ b/app/scripts/directives/rgbcell.html @@ -1,4 +1,4 @@ - + для смартадмин--> - - - + + + - + + + + diff --git a/app/scripts/directives/textcell.html b/app/scripts/directives/textcell.html index 29b3db7c..c73dc1c9 100644 --- a/app/scripts/directives/textcell.html +++ b/app/scripts/directives/textcell.html @@ -6,7 +6,7 @@ 'outsideClick': 'mouseleave', 'focus': 'mouseleave' }" - tooltip-enable="{{ cell.readOnly }}" + class="cell-item" >

\ No newline at end of file diff --git a/app/scripts/directives/valuecell.html b/app/scripts/directives/valuecell.html index 8b7c7563..f71c66b7 100644 --- a/app/scripts/directives/valuecell.html +++ b/app/scripts/directives/valuecell.html @@ -1,5 +1,5 @@ - diff --git a/app/styles/main.css b/app/styles/main.css index dd570471..58c160c9 100644 --- a/app/styles/main.css +++ b/app/styles/main.css @@ -530,7 +530,39 @@ button.show-console span { .display-cell { width: 100%; position: relative; - padding-right: 35px; + padding-right: 30px; +} + +.display-cell.cell-group { + margin-left: -13px; + margin-right: -13px; +} + +.display-cell.cell-group:after { + content: ""; + clear: both; + display: table; +} + +.display-cell.cell-group .cell-item { + position: relative; + float: left; + width: 50%; + padding-left: 13px; +} + +.display-cell.cell-group.cell-group-single .cell-item { + width: 100%; +} + +.display-cell.cell-group .cell-button { + padding-left: 13px; + margin-left: 13px; + display: block; +} + +.display-cell.cell-group .cell-button .cell-item { + padding-left: 0; } .display-cell-btn, @@ -561,12 +593,29 @@ button.show-console span { flex-grow: 1; } +.display-cell-bin .display-cell:not(:last-child) { + margin-bottom: 10px; +} + +.display-cell-bin .display-cell h4 { + font-size: 16px; +} + .display-cell .cell-range .value-wrapper { display: block; text-align: center; border-bottom: 1px dotted #ccc; - width: 80%; - margin: 0 auto 4px auto; + _width: 80%; + _margin: 0 auto 4px auto; +} + +.display-cell .cell-range .value-wrapper.field { + border-bottom: none; +} + +.display-cell .cell-range .value-wrapper.field input { + display: inline-block; + margin-top: 8px; } .display-cell button.cell-button { @@ -576,12 +625,50 @@ button.show-console span { .display-cell button.cell-button h4 { font-size: 13px; } + .display-cell input.cell-text { - width: 120px; + _width: 120px; } .display-cell .cell-value input { - width: 120px; + _width: 120px; +} + +.display-cell .cell-text { + margin-bottom: 0; + font-size: 14px; +} + +.display-cell .cell-value .int { + width: auto; +} + +.display-cell .cell-switch .onoffswitch { + margin-left: 0; +} + +.display-cell .cell-range .ngrs-range-slider { + padding: 4px 0px; + position: relative; +} + +.display-cell .cell-range .ngrs-range-slider:after { + content: ""; + display: block; + position: absolute; + top: 4px; + bottom: 4px; + left: 0; + right: 0; + background-color: #cacaca; +} + +.display-cell .cell-range .ngrs-range-slider .ngrs-runner { + background: none; +} + +.display-cell .cell-range .ngrs-range-slider .ngrs-join { + margin-left: -9px; } .cell-error {