feat(travel_extra-community): add vn-anchor
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2022-09-14 08:08:07 +02:00
parent 2b101cf7c1
commit 49a7a05310
1 changed files with 16 additions and 7 deletions

View File

@ -27,7 +27,7 @@
<section>
<vn-tool-bar class="vn-mb-md">
<vn-button
disabled="!$ctrl.hasDateRange || $ctrl.$.model.userFilter"
disabled="!$ctrl.hasDateRange"
icon="picture_as_pdf"
ng-click="$ctrl.showReport()"
vn-tooltip="Open as PDF">
@ -40,7 +40,7 @@
<thead>
<tr>
<th field="id" shrink>
<span translate>Id {{$ctrl.dragClientY}}</span>
<span translate>Id</span>
</th>
<th field="cargoSupplierFk" expand>
<span translate>Supplier</span>
@ -88,7 +88,11 @@
ng-attr-id="{{::travel.id}}"
vn-stop-click>
<tr
class="header">
class="header"
vn-anchor="::{
state: 'travel.card.basicData',
params: {id: travel.id}
}">
<td vn-click-stop>
<span
class="link"
@ -104,7 +108,10 @@
</span>
</td>
<td expand>{{::travel.agencyModeName}}</td>
<td name="reference" expand vn-click-stop>
<td
name="reference"
expand
vn-click-stop>
<vn-textfield
class="dense td-editable"
ng-model="travel.ref"
@ -113,14 +120,16 @@
</vn-icon>
</td>
<td number>{{::travel.stickers}}</td>
<td name="lockedKg" expand>
<td
name="lockedKg"
expand
vn-click-stop>
<vn-input-number
number
class="td-editable number"
ng-model="travel.kg"
on-change="$ctrl.save(travel.id, {kg: value})"
min="0"
vn-click-stop>
min="0">
</vn-input-number>
</td>
<td number>{{::travel.loadedKg}}</td>