salix/modules/item/front/index/index.html

125 lines
4.9 KiB
HTML
Raw Normal View History

2019-11-10 10:08:44 +00:00
<vn-auto-search
2020-03-13 19:33:12 +00:00
model="model">
2019-11-10 10:08:44 +00:00
</vn-auto-search>
<vn-data-viewer
model="model"
class="vn-w-xl vn-mb-xl">
<vn-card>
<vn-table
model="model"
2019-11-10 10:08:44 +00:00
show-fields="$ctrl.showFields"
vn-uvc="itemIndex">
<vn-thead>
<vn-tr>
<vn-th th-id="picture" shrink></vn-th>
<vn-th field="id" shrink>Id</vn-th>
<vn-th th-id="grouping" shrink>Grouping</vn-th>
<vn-th th-id="packing" shrink>Packing</vn-th>
<vn-th th-id="description" style="text-align: center">Description</vn-th>
<vn-th th-id="stems" shrink>Stems</vn-th>
<vn-th th-id="size" shrink>Size</vn-th>
<vn-th th-id="niche" shrink>Niche</vn-th>
<vn-th th-id="type" shrink>Type</vn-th>
<vn-th th-id="category" shrink>Category</vn-th>
<vn-th th-id="intrastat" shrink>Intrastat</vn-th>
<vn-th th-id="origin" shrink>Origin</vn-th>
<vn-th th-id="salesperson" shrink>Buyer</vn-th>
<vn-th th-id="density" shrink>Density</vn-th>
<vn-th th-id="active" shrink>Active</vn-th>
<vn-th></vn-th>
</vn-tr>
</vn-thead>
<vn-tbody>
2020-03-13 19:33:12 +00:00
<a ng-repeat="item in model.data"
2019-11-10 10:08:44 +00:00
class="clickable vn-tr search-result"
ui-sref="item.card.summary({id: item.id})">
<vn-td shrink>
<img
2020-04-25 09:50:04 +00:00
ng-src="{{::$root.imagePath}}/catalog/50x50/{{::item.image}}"
zoom-image="{{::$root.imagePath}}/catalog/1600x900/{{::item.image}}"
vn-click-stop
2019-11-10 10:08:44 +00:00
on-error-src/>
</vn-td>
<vn-td shrink>
2020-04-25 09:50:04 +00:00
<span
vn-click-stop="itemDescriptor.show($event, item.id)"
class="link">
2019-11-10 10:08:44 +00:00
{{::item.id | zeroFill:6}}
</span>
</vn-td>
<vn-td shrink>{{::item.grouping | dashIfEmpty}}</vn-td>
<vn-td shrink>{{::item.packing | dashIfEmpty}}</vn-td>
<vn-td expand>
<vn-fetched-tags
max-length="6"
item="::item"
name="::item.name"
sub-name="::item.subName">
</vn-fetched-tags>
</vn-td>
<vn-td shrink>{{::item.stems}}</vn-td>
<vn-td shrink>{{::item.size}}</vn-td>
<vn-td shrink>{{::item.niche}}</vn-td>
<vn-td shrink title="{{::item.type}}">
{{::item.type}}
</vn-td>
<vn-td shrink title="{{::item.category}}">
{{::item.category}}
</vn-td>
<vn-td shrink title="{{::item.intrastat}}">
{{::item.intrastat}}
</vn-td>
<vn-td shrink>{{::item.origin}}</vn-td>
<vn-td shrink title="{{::item.userNickname}}">
<span
class="link"
2020-04-25 09:50:04 +00:00
vn-click-stop="workerDescriptor.show($event, item.buyerFk)">
2019-11-10 10:08:44 +00:00
{{::item.userNickname}}
</span>
</vn-td>
<vn-td shrink>{{::item.density}}</vn-td>
<vn-td shrink>
<vn-check
disabled="true"
ng-model="::item.isActive">
</vn-check>
</vn-td>
<vn-td shrink>
<vn-horizontal class="buttons">
<vn-icon-button
2020-04-25 09:50:04 +00:00
vn-click-stop="clone.show(item.id)"
2019-11-10 10:08:44 +00:00
vn-tooltip="Clone"
icon="icon-clone">
</vn-icon-button>
<vn-icon-button
2020-04-25 09:50:04 +00:00
vn-click-stop="$ctrl.preview(item)"
2019-11-10 10:08:44 +00:00
vn-tooltip="Preview"
icon="desktop_windows">
</vn-icon-button>
</vn-horizontal>
</vn-td>
</a>
</vn-tbody>
</vn-table>
</vn-card>
</vn-data-viewer>
2018-07-25 13:14:03 +00:00
<a ui-sref="item.create" vn-tooltip="New item" vn-bind="+" fixed-bottom-right>
2018-03-01 20:18:43 +00:00
<vn-float-button icon="add"></vn-float-button>
</a>
2020-04-25 09:50:04 +00:00
<vn-item-descriptor-popover
vn-id="itemDescriptor">
</vn-item-descriptor-popover>
<vn-worker-descriptor-popover
vn-id="workerDescriptor">
</vn-worker-descriptor-popover>
2018-03-01 20:18:43 +00:00
<vn-confirm
vn-id="clone"
2020-04-25 09:50:04 +00:00
on-accept="$ctrl.onCloneAccept($data)"
2018-03-01 20:18:43 +00:00
question="Do you want to clone this item?"
message="All it's properties will be copied">
</vn-confirm>
2020-04-25 09:50:04 +00:00
<vn-popup vn-id="preview">
<vn-item-summary
item="$ctrl.itemSelected">
</vn-item-summary>
</vn-popup>