mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-16 00:00:03 +01:00
Add models.css stylesheet
This commit is contained in:
parent
d9e1819645
commit
b2eac53675
3 changed files with 73 additions and 6 deletions
app
|
@ -8,6 +8,7 @@
|
|||
**********************************************************************************/
|
||||
|
||||
@import 'plots.css';
|
||||
@import 'models.css';
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
|
|
51
app/styles/models.css
Normal file
51
app/styles/models.css
Normal file
|
@ -0,0 +1,51 @@
|
|||
/**
|
||||
* File: models.css
|
||||
* Author: Markus Grigull <mgrigull@eonerc.rwth-aachen.de>
|
||||
* Date: 20.07.2016
|
||||
* Copyright: 2016, Institute for Automation of Complex Power Systems, EONERC
|
||||
* This file is part of VILLASweb. All Rights Reserved. Proprietary and confidential.
|
||||
* Unauthorized copying of this file, via any medium is strictly prohibited.
|
||||
**********************************************************************************/
|
||||
|
||||
/**
|
||||
* Route: simulation-models
|
||||
*/
|
||||
.simulation-models-container {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.simulation-models-container table {
|
||||
width: 100%;
|
||||
|
||||
border: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.simulation-models-container th, td {
|
||||
padding: 5px;
|
||||
|
||||
text-align: left;
|
||||
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.simulation-models-container th {
|
||||
background-color: #151;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.simulation-models-row-controls {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.simulation-models-row-controls a {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.simulation-models-container tr:nth-child(even) {
|
||||
background-color: #ddd;
|
||||
}
|
||||
|
||||
.simulation-models-new-container {
|
||||
margin-top: 20px;
|
||||
}
|
|
@ -1,9 +1,24 @@
|
|||
<h1>Models</h1>
|
||||
|
||||
<ul>
|
||||
{{#each model as |simulationModel|}}
|
||||
<li>{{#link-to "simulation-model.index" simulationModel.id}}{{simulationModel.name}}{{/link-to}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
<div class="simulation-models-container">
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
</tr>
|
||||
{{#each model as |simulationModel|}}
|
||||
<tr>
|
||||
<td>
|
||||
{{#link-to "simulation-model.index" simulationModel.id}}{{simulationModel.name}}{{/link-to}}
|
||||
<div class="simulation-models-row-controls">
|
||||
{{#link-to "simulation-model.edit" simulationModel.id}}Edit{{/link-to}}
|
||||
{{#link-to "simulation-model.delete" simulationModel.id}}Delete{{/link-to}}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{#link-to "simulation-model.new"}}New model{{/link-to}}
|
||||
<div class="simulation-models-new-container">
|
||||
{{#link-to "simulation-model.new"}}New model{{/link-to}}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue