2015-03-06 23:33:54 +00:00
|
|
|
<vn>
|
2015-11-30 16:46:24 +00:00
|
|
|
<vn-group>
|
|
|
|
<vn-param id="user-name"/>
|
|
|
|
<vn-hash-param key="user" param="user-name"/>
|
|
|
|
</vn-group>
|
2015-09-11 09:37:16 +00:00
|
|
|
<div id="title">
|
2017-11-27 15:27:13 +00:00
|
|
|
<h1><t>User management</t></h1>
|
2015-09-11 09:37:16 +00:00
|
|
|
</div>
|
2015-11-30 16:46:24 +00:00
|
|
|
<div id="actions">
|
|
|
|
<htk-search-entry
|
|
|
|
param="user-name"/>
|
|
|
|
</div>
|
2015-03-06 23:33:54 +00:00
|
|
|
<div id="form" class="users">
|
|
|
|
<div class="box">
|
2017-11-27 15:27:13 +00:00
|
|
|
<htk-repeater form-id="iter" renderer="rendererFunc">
|
2015-11-30 16:46:24 +00:00
|
|
|
<db-model property="model">
|
|
|
|
<custom>
|
2017-11-27 13:53:38 +00:00
|
|
|
SELECT u.id, u.name, u.nickname, u.active
|
2015-03-06 23:33:54 +00:00
|
|
|
FROM account.user u
|
2017-11-27 13:10:03 +00:00
|
|
|
WHERE u.name LIKE CONCAT('%', #user, '%')
|
|
|
|
OR u.nickname LIKE CONCAT('%', #user, '%')
|
2015-03-06 23:33:54 +00:00
|
|
|
OR u.id = #user
|
2017-11-27 13:10:03 +00:00
|
|
|
ORDER BY u.name LIMIT 200
|
2015-11-30 16:46:24 +00:00
|
|
|
</custom>
|
|
|
|
<sql-batch property="batch">
|
|
|
|
<custom>
|
2015-03-06 23:33:54 +00:00
|
|
|
<item name="user" param="user-name"/>
|
2015-11-30 16:46:24 +00:00
|
|
|
</custom>
|
|
|
|
</sql-batch>
|
|
|
|
</db-model>
|
|
|
|
<custom>
|
|
|
|
<div class="users-box">
|
|
|
|
<htk-button
|
|
|
|
form="iter"
|
|
|
|
column="id"
|
2017-11-27 15:27:13 +00:00
|
|
|
tip="_Access log"
|
|
|
|
icon="gnome"
|
|
|
|
on-click="onAccessLogClick"/>
|
2015-11-30 16:46:24 +00:00
|
|
|
<htk-button
|
2017-11-27 15:27:13 +00:00
|
|
|
id="impersonate"
|
2015-11-30 16:46:24 +00:00
|
|
|
form="iter"
|
|
|
|
column="id"
|
2017-11-27 15:27:13 +00:00
|
|
|
tip="_Impersonate user"
|
|
|
|
icon="incognito"
|
|
|
|
on-click="onChangeUserClick"/>
|
|
|
|
<span id="disabled" class="disabled">
|
|
|
|
<t>Disabled</t>
|
|
|
|
</span>
|
2015-11-30 16:46:24 +00:00
|
|
|
<p class="important">
|
2017-11-27 13:10:03 +00:00
|
|
|
<htk-text form="iter" column="nickname"/>
|
2015-11-30 16:46:24 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2017-11-27 15:27:13 +00:00
|
|
|
@<htk-text form="iter" column="id"/> -
|
2015-11-30 16:46:24 +00:00
|
|
|
<htk-text form="iter" column="name"/>
|
|
|
|
</p>
|
|
|
|
<div class="clear"/>
|
|
|
|
</div>
|
|
|
|
</custom>
|
|
|
|
</htk-repeater>
|
2015-03-06 23:33:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</vn>
|