hedera-web/forms/admin/items/ui.xml

58 lines
1.2 KiB
XML
Raw Normal View History

<vn>
<div id="title">
2017-05-09 12:03:06 +00:00
<h1><t>Items</t></h1>
</div>
2017-05-09 12:03:06 +00:00
<div id="actions">
2022-05-30 01:30:33 +00:00
<htk-search-entry form="hash" column="search"/>
2016-09-19 06:40:18 +00:00
</div>
<div id="form" class="items">
2022-05-26 06:08:31 +00:00
<htk-repeater
class="htk-list rows box vn-w-xs"
form-id="iter"
empty-message="_Enter a search term">
2022-05-30 01:30:33 +00:00
<db-model property="model" id="items" lot="hash">
2022-05-26 06:08:31 +00:00
SELECT i.id, i.longName, i.size, i.category,
i.value5, i.value6, i.value7,
i.image, im.updated
FROM vn.item i
LEFT JOIN image im
ON im.collectionFk = 'catalog'
AND im.name = i.image
2022-05-30 01:30:33 +00:00
WHERE i.longName LIKE CONCAT('%', #search, '%')
OR i.id = #search
2022-05-26 06:08:31 +00:00
ORDER BY i.longName LIMIT 50
</db-model>
<custom>
<div class="item">
<div class="side vn-mr-md">
<htk-image
2022-06-18 21:04:34 +00:00
form="$iter"
2022-05-26 06:08:31 +00:00
column="image"
stamp-column="updated"
class="photo"
directory="catalog"
subdir="200x200"
full-dir="1600x900"
editable="true"
conn="conn"/>
2017-05-09 12:03:06 +00:00
</div>
2022-05-26 06:08:31 +00:00
<div class="content">
<p class="important">
{{iter.longName}}
</p>
<p class="tags">
{{iter.value5}} {{iter.value6}} {{iter.value7}}
</p>
<p>
{{iter.id}}
</p>
<p>
{{iter.image}}
</p>
</div>
</div>
</custom>
</htk-repeater>
</div>
</vn>