fixed agency descriptor & summary

This commit is contained in:
Joan Sanchez 2019-02-11 12:59:54 +01:00
parent 7365a1e001
commit 0a5860e59c
2 changed files with 16 additions and 4 deletions

View File

@ -3,7 +3,9 @@
<a translate-attr="{title: 'Return to module index'}" ui-sref="zone.index"> <a translate-attr="{title: 'Return to module index'}" ui-sref="zone.index">
<vn-icon icon="chevron_left"></vn-icon> <vn-icon icon="chevron_left"></vn-icon>
</a> </a>
<vn-icon icon="my_location"></vn-icon> <a translate-attr="{title: 'Preview'}" ui-sref="zone.card.summary({id: $ctrl.zone.id})">
<vn-icon icon="desktop_windows"></vn-icon>
</a>
<vn-icon-menu <vn-icon-menu
vn-id="more-button" vn-id="more-button"
icon="more_vert" icon="more_vert"
@ -15,7 +17,7 @@
</vn-icon-menu> </vn-icon-menu>
</vn-horizontal> </vn-horizontal>
<div class="body"> <div class="body">
<vn-one> <div class="attributes">
<vn-label-value label="Id" <vn-label-value label="Id"
value="{{$ctrl.zone.id}}"> value="{{$ctrl.zone.id}}">
</vn-label-value> </vn-label-value>
@ -40,7 +42,7 @@
<vn-label-value label="Bonus" <vn-label-value label="Bonus"
value="{{$ctrl.zone.price | currency: 'EUR': 2}}"> value="{{$ctrl.zone.price | currency: 'EUR': 2}}">
</vn-label-value> </vn-label-value>
</vn-one> </div>
</div> </div>
</div> </div>
<vn-confirm <vn-confirm

View File

@ -38,7 +38,8 @@
"params": { "params": {
"zone": "$ctrl.zone" "zone": "$ctrl.zone"
} }
}, { },
{
"url": "/basic-data", "url": "/basic-data",
"state": "zone.card.basicData", "state": "zone.card.basicData",
"component": "vn-zone-basic-data", "component": "vn-zone-basic-data",
@ -46,6 +47,15 @@
"params": { "params": {
"zone": "$ctrl.zone" "zone": "$ctrl.zone"
} }
},
{
"url": "/summary",
"state": "zone.card.summary",
"component": "vn-zone-summary",
"description": "Summary",
"params": {
"zone": "$ctrl.zone"
}
} }
] ]
} }