hedera-web/forms/admin/access-log/ui.xml

51 lines
1.4 KiB
XML
Raw Normal View History

2015-03-06 23:33:54 +00:00
<vn>
<vn-group>
2022-05-30 01:30:33 +00:00
<db-form id="user">
<db-model property="model" lot="hash">
SELECT u.id, u.name user, u.nickname, u.email, c.phone, r.name role
FROM account.user u
JOIN account.role r ON r.id = u.role
LEFT JOIN vn.client c ON c.id = u.id
WHERE u.id = #user
2015-03-06 23:33:54 +00:00
</db-model>
</db-form>
</vn-group>
<div id="title">
<h1><t>AccessLog</t></h1>
</div>
2015-03-06 23:33:54 +00:00
<div id="form" class="access-log">
2022-05-26 06:08:31 +00:00
<div class="box vn-w-xs vn-pa-lg">
2015-12-02 17:26:58 +00:00
<div class="form">
2022-05-30 01:30:33 +00:00
<h4><htk-text form="user" column="nickname"/></h4>
<p>#<htk-text form="user" column="id"/> - <htk-text form="user" column="user"/></p>
<p><htk-text form="user" column="role"/></p>
<p><htk-text form="user" column="email"/></p>
<p><htk-text form="user" column="phone"/></p>
2015-12-02 17:26:58 +00:00
</div>
</div>
2022-05-26 06:08:31 +00:00
<htk-repeater form-id="iter" class="box vn-w-xs htk-list vn-mt-md">
2022-05-30 01:30:33 +00:00
<db-model property="model" lot="hash">
SELECT u.stamp, a.platform, a.browser, a.version, a.javascript, a.cookies
FROM visitUser u
JOIN visitAccess c ON c.id = u.accessFk
JOIN visitAgent a ON a.id = c.agentFk
WHERE u.userFk = #user
ORDER BY u.stamp DESC
LIMIT 8
2022-05-26 06:08:31 +00:00
</db-model>
<custom>
<div class="item">
<div class="content">
<p>
{{Vn.Value.format(iter.stamp, _('%a, %e %b %Y at %T'))}}
</p>
<p>
{{iter.platform}} - {{iter.browser}} {{iter.version}}
</p>
</div>
</div>
</custom>
</htk-repeater>
2015-03-06 23:33:54 +00:00
</div>
</vn>