kempo-inventory 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/edit/index.page.html +23 -11
- package/package.json +1 -1
|
@@ -4,25 +4,37 @@ locked: true
|
|
|
4
4
|
<page title="Edit Item - Admin">
|
|
5
5
|
<content>
|
|
6
6
|
<script type="module" src="/kempo-ui/components/Icon.js"></script>
|
|
7
|
+
<script type="module" src="/kempo-ui/components/Tabs.js"></script>
|
|
7
8
|
|
|
8
9
|
<div class="d-f mb" style="align-items: center; gap: var(--spacer);">
|
|
9
10
|
<a href="/admin/extension/kempo-inventory/" class="btn" id="backLink"><k-icon name="arrow" direction="left"></k-icon> Inventory</a>
|
|
10
11
|
<h1 class="flex mb0" id="title">Edit Item</h1>
|
|
11
12
|
</div>
|
|
12
13
|
|
|
13
|
-
<
|
|
14
|
+
<k-tabs active="details" hash-routing>
|
|
15
|
+
<k-tab for="details">Details</k-tab>
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
directory (inventory-item-actions.fragment.html). It reads the item from ?id= in the address.
|
|
18
|
-
-->
|
|
19
|
-
<fragment name="inventory-item-actions"></fragment>
|
|
17
|
+
<k-tab-content name="details" class="pt">
|
|
18
|
+
<div id="editItem" style="max-width: 44rem;"></div>
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
<!--
|
|
21
|
+
An extension can add to this page by supplying a fragment with this name in its own admin/
|
|
22
|
+
directory (inventory-item-actions.fragment.html). It reads the item from ?id= in the address.
|
|
23
|
+
-->
|
|
24
|
+
<fragment name="inventory-item-actions"></fragment>
|
|
25
|
+
|
|
26
|
+
<!--
|
|
27
|
+
Sections from extensions below the form. Prefer inventory-item-tabs, which gives each extension its own tab.
|
|
28
|
+
-->
|
|
29
|
+
<location name="inventory-item-sections" />
|
|
30
|
+
</k-tab-content>
|
|
31
|
+
|
|
32
|
+
<!--
|
|
33
|
+
Tabs from any number of extensions (barcodes, say): supply an admin/*.global.html file that adds a k-tab and a
|
|
34
|
+
k-tab-content for the location inventory-item-tabs. Each tab reads the item from ?id= in the address.
|
|
35
|
+
-->
|
|
36
|
+
<location name="inventory-item-tabs" />
|
|
37
|
+
</k-tabs>
|
|
26
38
|
|
|
27
39
|
<script type="module">
|
|
28
40
|
import { getItem, getFields } from '/inventory/sdk.js';
|