mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
Changed layout to two columns based
The left column displays all entities found and the right column displays the properties of one entity. An entity can be selected by clicking on it in the left table. Last updated label is visible but not used yet.
This commit is contained in:
parent
b82e92a5be
commit
9496e8023e
8 changed files with 44 additions and 22 deletions
|
@ -2,5 +2,5 @@ import Ember from 'ember';
|
|||
|
||||
export default Ember.Component.extend({
|
||||
tagName: 'table',
|
||||
classNames: ['properties-table']
|
||||
classNames: ['data-table']
|
||||
});
|
||||
|
|
|
@ -2,5 +2,5 @@ import Ember from 'ember';
|
|||
|
||||
export default Ember.Component.extend({
|
||||
tagName: 'table',
|
||||
classNames: ['properties-table']
|
||||
classNames: ['data-table']
|
||||
});
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Route.extend({
|
||||
model() {
|
||||
return this.store.findAll('entity');
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Route.extend({
|
||||
model() {
|
||||
return this.store.findAll('entity');
|
||||
}
|
||||
});
|
||||
|
|
|
@ -54,20 +54,32 @@ body {
|
|||
z-index: 2;
|
||||
}
|
||||
|
||||
#footer {
|
||||
color: #777;
|
||||
border-top: 1px solid #e6e6e6;
|
||||
#main-left {
|
||||
float: left;
|
||||
width: 45%;
|
||||
|
||||
padding: 10px 15px;
|
||||
height: 20px;
|
||||
padding-top: 10px;
|
||||
padding-left: 25px;
|
||||
}
|
||||
|
||||
text-align: center;
|
||||
#main-right {
|
||||
float: right;
|
||||
width: 45%;
|
||||
|
||||
padding-top: 10px;
|
||||
padding-right: 25px;
|
||||
}
|
||||
|
||||
#main::after {
|
||||
display: block;
|
||||
content: "";
|
||||
clear: both;
|
||||
}
|
||||
|
||||
#info {
|
||||
color: #777;
|
||||
|
||||
margin: 65px auto 0;
|
||||
margin: 35px auto 0;
|
||||
|
||||
font-size: 12px;
|
||||
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
|
||||
|
@ -75,23 +87,23 @@ body {
|
|||
}
|
||||
|
||||
#last-update-info {
|
||||
margin: 30px auto auto 0;
|
||||
padding: 0px 0 20px 0;
|
||||
|
||||
font-size: 12px;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.properties-table {
|
||||
.data-table {
|
||||
background: #eee;
|
||||
|
||||
border: 1px solid #999;
|
||||
border-collapse: collapse;
|
||||
|
||||
width: 50%;
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.properties-table th {
|
||||
.data-table th {
|
||||
background: #ddd;
|
||||
|
||||
border: 1px solid #999;
|
||||
|
@ -102,7 +114,7 @@ body {
|
|||
font-size: 16px;
|
||||
}
|
||||
|
||||
.properties-table td {
|
||||
.data-table td {
|
||||
border: 1px solid #999;
|
||||
border-collapse: collapse;
|
||||
|
||||
|
|
|
@ -1,3 +1,15 @@
|
|||
<section id="main">
|
||||
{{outlet}}
|
||||
<section id="main-left">
|
||||
<h2>Entities</h2>
|
||||
|
||||
{{entities-table entities=model}}
|
||||
</section>
|
||||
|
||||
<section id="main-right">
|
||||
{{outlet}}
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section id="last-update-info">
|
||||
<p>Last updated: </p>
|
||||
</section>
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{{entity-title entity=model}}
|
||||
|
||||
{{properties-table entity=model}}
|
||||
|
||||
{{#link-to 'lab-mashup'}}Entities{{/link-to}}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{{entities-table entities=model}}
|
||||
<p>Select an entity to show it's properties</p>
|
||||
|
|
Loading…
Add table
Reference in a new issue