Bug #423 Añadir el total de greuge arriba de la pagina

This commit is contained in:
gerard 2018-07-19 14:06:35 +02:00
parent 2170697922
commit 927c3d05a8
4 changed files with 25 additions and 12 deletions

View File

@ -14,8 +14,15 @@
<vn-vertical>
<vn-card pad-large>
<vn-horizontal>
<vn-title vn-two>Greuge</vn-title>
<div class="totalBox">
<vn-label-value label="Total"
value="{{edit.model.sumAmount | currency: ' €': 2}}">
</vn-label-value>
</div>
</vn-horizontal>
<vn-vertical>
<vn-title>Greuge</vn-title>
<vn-table model="model">
<vn-thead>
<vn-tr>
@ -41,7 +48,7 @@
<vn-td></vn-td>
<vn-td></vn-td>
<vn-td>
<strong>{{edit.model.sumAmount | currency: ' €': 2}}</strong>
</vn-td>
<vn-td></vn-td>
</vn-tr>

View File

@ -23,6 +23,16 @@ input[type=reset]::-moz-focus-inner
color: $main-01;
}
}
.totalBox {
border: 1px solid #CCC;
text-align: left;
justify-content: center;
align-items: center;
padding: 18px;
margin-bottom: 10px;
}
.form {
height: 100%;
box-sizing: border-box;

View File

@ -9,16 +9,18 @@
<mg-ajax path="/client/api/tickets/{{$ctrl.$stateParams.id}}/getTotalVolume" options="mgEdit"></mg-ajax>
<vn-vertical>
<vn-card pad-large>
<vn-vertical>
<vn-title>Volume</vn-title>
<vn-one pad-small margin-medium-bottom pad-large class="totalBox">
<vn-horizontal>
<vn-title vn-two>Volume</vn-title>
<div class="totalBox">
<vn-label-value label="Total"
value="{{::edit.model.totalVolume}}">
</vn-label-value>
<vn-label-value label="Cajas"
value="{{::edit.model.totalBoxes}}">
</vn-label-value>
</vn-one>
</div>
</vn-horizontal>
<vn-vertical>
<vn-table model="model">
<vn-thead>
<vn-tr>

View File

@ -1,6 +0,0 @@
.totalBox {
border: 1px solid #CCC;
text-align: left;
align-self: flex-end;
}