diff --git a/app/controllers/lab-mashup.js b/app/controllers/lab-mashup.js index af319d7..af3b5dd 100644 --- a/app/controllers/lab-mashup.js +++ b/app/controllers/lab-mashup.js @@ -26,7 +26,7 @@ export default Ember.Controller.extend({ }.property('model.[]'), actions: { - showPropertyValues(property) { + showProperty1Values(property) { var id = property.id; var prop = null; @@ -38,7 +38,20 @@ export default Ember.Controller.extend({ }); this.set('S1Property', prop); - console.log(prop); + }, + + showProperty2Values(property) { + var id = property.id; + + var prop = null; + + this.get('S2Entity').get('properties').forEach(function (proper) { + if (proper.id === id) { + prop = proper; + } + }); + + this.set('S2Property', prop); } } }); diff --git a/app/styles/app.css b/app/styles/app.css index 4272933..276dfce 100644 --- a/app/styles/app.css +++ b/app/styles/app.css @@ -62,6 +62,7 @@ h2 { width: 100%; height: 100%; margin: 0; + padding: 0; border: 0; @@ -69,7 +70,8 @@ h2 { } .grid2x2 td { - padding: 5px; + padding: 0; + margin: 0; width: 50%; height: 50%; @@ -78,37 +80,44 @@ h2 { .grid3x1 td { height: 100%; width: auto; + + padding: 5px; + + border: 1px solid black; } -#S1-left { - width: 150px; +#S1-image { + height: auto; } -#S1-right { +.column-left { + width: 150px !important; +} + +.column-right { width: auto; padding: 25px; - padding-bottom: 30px; + padding-bottom: 40px; } -#S1-right h3 { +.column-right h3 { text-align: center; } -#S1-right h4 { +.column-right h4 { text-align: right; } -#S2-left { - width: 40%; -} - -#S2-center { - width: 200px; -} - -#S2-right { - width: auto; +.layout-page { + background-color: #fff; + box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), + 0 25px 50px 0 rgba(0, 0, 0, 0.1); + + margin: 10px; + padding: 10px; + + height: 100%; } .line-chart { diff --git a/app/templates/lab-mashup.hbs b/app/templates/lab-mashup.hbs index ecd665d..325f0b5 100644 --- a/app/templates/lab-mashup.hbs +++ b/app/templates/lab-mashup.hbs @@ -1,55 +1,69 @@
- - - -
-

Transmission System

- - - - - - - - - - -
- -
- {{property-table model=S1Entity showProperty="showPropertyValues"}} - -

{{S1Property.name}}

- {{line-chart data=S1Property.values}} -

{{S1Property.type}}

-
+
+
+

Transmission System

+ + + + + + + + + + +
+ +
+ {{property-table model=S1Entity showProperty="showProperty1Values"}} + +

{{S1Property.name}}

+ {{line-chart data=S1Property.values}} +

{{S1Property.type}}

+
+
-

Distribution System

- - - - - - - -
- - - {{property-table model=S2Entity showProperty="showPropertyValues"}} - - {{line-chart data=S2Property.values}} -
+
+
+

Distribution System

+ + + + + + + + + + +
+ +
+ {{property-table model=S2Entity showProperty="showProperty2Values"}} + +

{{S2Property.name}}

+ {{line-chart data=S2Property.values}} +

{{S2Property.type}}

+
+
+ +
+

Simulation

-

Simulation

- - + +
-

Static

+
+
+

Static

+ +

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

+