45 lines
1.2 KiB
HTML
45 lines
1.2 KiB
HTML
<vn-icon-button
|
|
icon="more_vert"
|
|
vn-popover="menu">
|
|
</vn-icon-button>
|
|
<vn-menu vn-id="menu">
|
|
<vn-list>
|
|
<vn-item
|
|
id="clone"
|
|
ng-click="clone.show()"
|
|
ng-show="::$ctrl.isBuyer"
|
|
translate>
|
|
Clone travel
|
|
</vn-item>
|
|
<vn-item
|
|
id="cloneWithEntries"
|
|
ng-click="cloneWithEntries.show()"
|
|
ng-show="::$ctrl.isBuyer"
|
|
translate>
|
|
Clone travel and his entries
|
|
</vn-item>
|
|
<a class="vn-item"
|
|
ui-sref="entry.create({travelFk: $ctrl.travel.id})"
|
|
name="addEntry"
|
|
translate>
|
|
Add entry
|
|
</a>
|
|
</vn-list>
|
|
</vn-menu>
|
|
|
|
<!-- Clone travel popup -->
|
|
<vn-confirm
|
|
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>
|
|
|
|
<!-- Clone travel popup -->
|
|
<vn-confirm
|
|
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>
|