add in travel index, entry create

This commit is contained in:
Bernat Exposito 2021-01-04 10:54:46 +01:00
parent e193c2998c
commit f0fb906670
3 changed files with 13 additions and 1 deletions

View File

@ -10,6 +10,12 @@
translate>
Clone travel
</vn-item>
<a class="vn-item"
ui-sref="entry.create({travelFk: $ctrl.travel.id})"
name="addEntry"
translate>
Add entry
</a>
</vn-list>
</vn-menu>

View File

@ -1 +1,2 @@
Clone travel: Clonar envío
Clone travel: Clonar envío
Add entry: Añadir entrada

View File

@ -49,6 +49,11 @@
vn-tooltip="Clone"
icon="icon-clone">
</vn-icon-button>
<vn-icon-button
vn-anchor="::{state: 'entry.create', params: {travelFk: travel.id}}"
vn-tooltip="Add entry"
icon="icon-ticket">
</vn-icon-button>
<vn-icon-button
vn-click-stop="$ctrl.preview(travel)"
vn-tooltip="Preview"