2020-11-16 18:04:37 +00:00
|
|
|
<vn-icon-button
|
|
|
|
icon="more_vert"
|
|
|
|
vn-popover="menu">
|
|
|
|
</vn-icon-button>
|
|
|
|
<vn-menu vn-id="menu">
|
|
|
|
<vn-list>
|
|
|
|
<vn-item
|
2020-11-17 15:52:19 +00:00
|
|
|
id="clone"
|
2020-11-16 18:04:37 +00:00
|
|
|
ng-click="clone.show()"
|
2020-12-29 06:52:36 +00:00
|
|
|
ng-show="::$ctrl.isBuyer"
|
2020-11-16 18:04:37 +00:00
|
|
|
translate>
|
|
|
|
Clone travel
|
|
|
|
</vn-item>
|
2020-12-28 13:53:26 +00:00
|
|
|
<vn-item
|
|
|
|
id="cloneWithEntries"
|
|
|
|
ng-click="cloneWithEntries.show()"
|
2020-12-29 06:52:36 +00:00
|
|
|
ng-show="::$ctrl.isBuyer"
|
2020-12-28 13:53:26 +00:00
|
|
|
translate>
|
|
|
|
Clone travel and his entries
|
|
|
|
</vn-item>
|
2021-06-15 14:41:01 +00:00
|
|
|
<vn-item
|
|
|
|
id="delete"
|
|
|
|
ng-click="delete.show()"
|
|
|
|
ng-show="$ctrl.isBuyer && !$ctrl.entries.length"
|
|
|
|
translate>
|
|
|
|
Delete travel
|
|
|
|
</vn-item>
|
2021-01-07 13:33:42 +00:00
|
|
|
<a class="vn-item"
|
|
|
|
name="addEntry"
|
2024-06-07 06:32:59 +00:00
|
|
|
ng-click="$ctrl.redirectToCreateEntry()"
|
2021-01-07 13:33:42 +00:00
|
|
|
translate>
|
|
|
|
Add entry
|
|
|
|
</a>
|
2020-11-16 18:04:37 +00:00
|
|
|
</vn-list>
|
|
|
|
</vn-menu>
|
|
|
|
|
|
|
|
<!-- Clone travel popup -->
|
2024-06-07 06:32:59 +00:00
|
|
|
<vn-confirm
|
2020-11-16 18:04:37 +00:00
|
|
|
vn-id="clone"
|
|
|
|
on-accept="$ctrl.onCloneAccept()"
|
|
|
|
question="Do you want to clone this travel?"
|
|
|
|
message="All it's properties will be copied">
|
|
|
|
</vn-confirm>
|
2020-12-28 13:53:26 +00:00
|
|
|
|
2021-06-15 14:41:01 +00:00
|
|
|
<!-- Delete travel popup -->
|
2024-06-07 06:32:59 +00:00
|
|
|
<vn-confirm
|
2021-06-15 14:41:01 +00:00
|
|
|
vn-id="delete"
|
|
|
|
on-accept="$ctrl.onDeleteAccept()"
|
|
|
|
question="Do you want to delete this travel?"
|
|
|
|
message="The travel will be deleted">
|
|
|
|
</vn-confirm>
|
|
|
|
|
2020-12-28 13:53:26 +00:00
|
|
|
<!-- Clone travel popup -->
|
2024-06-07 06:32:59 +00:00
|
|
|
<vn-confirm
|
2020-12-28 13:53:26 +00:00
|
|
|
vn-id="cloneWithEntries"
|
|
|
|
on-accept="$ctrl.onCloneWithEntriesAccept()"
|
|
|
|
question="Do you want to clone this travel and all containing entries?"
|
|
|
|
message="All it's properties will be copied">
|
|
|
|
</vn-confirm>
|