forked from verdnatura/hedera-web
63 lines
1.4 KiB
XML
63 lines
1.4 KiB
XML
<vn>
|
|
<vn-group>
|
|
<vn-param id="user-name"/>
|
|
<vn-hash-param key="user" param="user-name"/>
|
|
</vn-group>
|
|
<div id="title">
|
|
<h1><t>User management</t></h1>
|
|
</div>
|
|
<div id="actions">
|
|
<htk-search-entry
|
|
param="user-name"/>
|
|
</div>
|
|
<div id="form" class="users">
|
|
<div class="box">
|
|
<htk-repeater form-id="iter" renderer="rendererFunc">
|
|
<db-model property="model">
|
|
<custom>
|
|
SELECT u.id, u.name, u.nickname, u.active
|
|
FROM account.user u
|
|
WHERE u.name LIKE CONCAT('%', #user, '%')
|
|
OR u.nickname LIKE CONCAT('%', #user, '%')
|
|
OR u.id = #user
|
|
ORDER BY u.name LIMIT 200
|
|
</custom>
|
|
<sql-batch property="batch">
|
|
<custom>
|
|
<item name="user" param="user-name"/>
|
|
</custom>
|
|
</sql-batch>
|
|
</db-model>
|
|
<custom>
|
|
<div class="users-box">
|
|
<htk-button
|
|
form="iter"
|
|
column="id"
|
|
tip="_Access log"
|
|
icon="gnome"
|
|
on-click="onAccessLogClick"/>
|
|
<htk-button
|
|
id="impersonate"
|
|
form="iter"
|
|
column="id"
|
|
tip="_Impersonate user"
|
|
icon="incognito"
|
|
on-click="onChangeUserClick"/>
|
|
<span id="disabled" class="disabled">
|
|
<t>Disabled</t>
|
|
</span>
|
|
<p class="important">
|
|
<htk-text form="iter" column="nickname"/>
|
|
</p>
|
|
<p>
|
|
@<htk-text form="iter" column="id"/> -
|
|
<htk-text form="iter" column="name"/>
|
|
</p>
|
|
<div class="clear"/>
|
|
</div>
|
|
</custom>
|
|
</htk-repeater>
|
|
</div>
|
|
</div>
|
|
</vn>
|