0
1
Fork 0
hedera-web-mindshore/forms/admin/users/ui.xml

43 lines
1.0 KiB
XML
Executable File

<vn>
<h1 id="title">
<t>UserManagement</t>
</h1>
<div id="actions">
<htk-search-entry lot="hash" name="user"/>
</div>
<div id="main" class="users">
<div class="card list">
<htk-repeater form-id="iter" renderer="repeaterFunc">
<db-model property="model" lot="hash">
SELECT u.id, u.name, c.Cliente
FROM account.user u
INNER JOIN vn2008.Clientes c ON u.id = c.Id_Cliente
WHERE u.name LIKE CONCAT('%', #user, '%')
OR c.Cliente LIKE CONCAT('%', #user, '%')
OR u.id = #user
ORDER BY u.name LIMIT 200
</db-model>
<custom>
<a id="link" class="list-row" title="_AccessLog">
<div class="actions">
<htk-button
lot="iter"
name="id"
tip="_AccessAsUser"
icon="incognito"
on-click="onChangeUserClick"/>
</div>
<p class="important">
<htk-text lot="iter" name="Cliente"/>
</p>
<p>
<htk-text lot="iter" name="id"/> -
<htk-text lot="iter" name="name"/>
</p>
</a>
</custom>
</htk-repeater>
</div>
</div>
</vn>