Commit 2d90ba67 authored by Ruslan Zakirov's avatar Ruslan Zakirov
Browse files

show user using a component

* show some simple form
parent 3b1e96bc
......@@ -12,8 +12,10 @@
</tr>
% while ( my ($owner, $stats) = each %$result ) {
% my $user = RT::User->new( $session{'CurrentUser'} );
% $user->Load( $owner );
<tr>
<td><% $owner %></td>
<td><& /Elements/ShowUser, User => $user &></td>
% my $i = 1;
% foreach ( map $stats->{ $_ }, grep $i++%2, @columns ) {
<td><% $_ || 0 %></td>
......@@ -22,6 +24,11 @@
% }
</table>
<form method="post" action="SLA.html">
<&|/l&>Query</&>:<textarea cols="60" rows="20" name="Query"><% $Query %></textarea>
<& /Elements/Submit, Label => loc('Update report') &>
</form>
<%ARGS>
$Query => undef
</%ARGS>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment