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

51 lines
1.3 KiB
XML
Raw Normal View History

2015-03-06 23:33:54 +00:00
<vn>
<vn-group>
2022-06-18 21:04:34 +00:00
<db-form v-model="user">
2022-05-30 01:30:33 +00:00
<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-06-18 21:04:34 +00:00
<h4>{{user.nickname}}</h4>
<p>#{{user.id}} - {{user.user}}</p>
<p>{{user.role}}</p>
<p>{{user.email}}</p>
<p>{{user.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>