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">
|
2022-05-26 06:08:31 +00:00
|
|
|
<htk-repeater form-id="iter" renderer="rendererFunc" class="htk-list box vn-w-xs">
|
|
|
|
<db-model property="model">
|
2015-11-30 16:46:24 +00:00
|
|
|
<custom>
|
2022-05-26 06:08:31 +00:00
|
|
|
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
|
2015-11-30 16:46:24 +00:00
|
|
|
</custom>
|
2022-05-26 06:08:31 +00:00
|
|
|
<sql-batch property="batch">
|
|
|
|
<custom>
|
|
|
|
<item name="user" param="user-name"/>
|
|
|
|
</custom>
|
|
|
|
</sql-batch>
|
|
|
|
</db-model>
|
|
|
|
<custom>
|
|
|
|
<a class="users-box item"
|
|
|
|
href="{{`#!form=admin/access-log&user=${iter.id}`}}"
|
|
|
|
title="_Access log">
|
|
|
|
<div class="content">
|
|
|
|
<p class="important">
|
|
|
|
{{iter.nickname}}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
#{{iter.id}} - {{iter.name}}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="actions"
|
|
|
|
on-click="$event.preventDefault()">
|
|
|
|
<span id="disabled" class="disabled">
|
|
|
|
<t>Disabled</t>
|
|
|
|
</span>
|
|
|
|
<htk-button
|
|
|
|
id="impersonate"
|
|
|
|
icon="supervisor_account"
|
|
|
|
tip="_Impersonate user"
|
|
|
|
on-click="this.onChangeUserClick(iter.name)"/>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</custom>
|
|
|
|
</htk-repeater>
|
2015-03-06 23:33:54 +00:00
|
|
|
</div>
|
|
|
|
</vn>
|