<div>

    <p>
    %    my $modul = $c->render_to_string(inline => $c->l('quo_QUOTA_DESC'));
    %= $modul
    
    <h3>
    %=l 'quo_CURRENT_USAGE_AND_SETTINGS'
    </h3>

    <br>
    %   my $numUsers = @$userAccounts;
    %   if ($numUsers == 0){
        %=l 'ACCOUNT_USER_NONE'
    %   } else {

    %    my $limit = l('quo_LIMIT_WITH_GRACE_MB'); $limit =~ s#(graceX)#<br>$1#;
    %    my $absolute = l('quo_ABS_LIMIT_MB');     $absolute =~ s#(limitX)#<br>$1#;
    %    my $current = l('quo_CURRENT_USAGE');     $current =~ s#(usageX)#<br>$1#;

    <table class="table table-bordered">
    <thead>
    <tr>
            <th class="">
            %=l 'ACCOUNT'
            </th>
            <th class="">
            %=l 'USER_NAME'
            </th>
            <th class="">
            %= $limit
            </th>
            <th class="">
            %= $absolute
            </th>
            <th class="">
            %= $current
            </th>
            <th class="">
            %=l 'ACTION'
            </th>
        </tr>
        </thead>
        <tbody>

    %    foreach my $user (@$userAccounts)
    %    {
    %       my $uid = getpwnam($user->key);
    %       unless ($uid) {
    %       warn($self->localise('COULD_NOT_GET_UID'),$user->key);
    %       next;
    %       }
    %       my $name = $user->prop("FirstName")." ".$user->prop("LastName");
    %       my $dev = Quota::getqcarg('/home/e-smith/files');
    %       my ($bc, $bs, $bh, $bt, $ic, $is, $ih, $it) = Quota::query($dev, $uid);
        <tr>
            %= t td => (class => "") => $user->key
            %= t td => (class => "") => $name
            %= t td => (class => "") => sprintf("%.2f", $bs / 1024 )
            %= t td => (class => "") => sprintf("%.2f", $bh / 1024 )
            %= t td => (class => "") => sprintf("%.2f", $bc / 1024 )
            <td class="">
                %my $modify_text = l('MODIFY');  # Localized text
                %my $csrf_token = "TOKEN";  # CSRF token for security
                %my $quota_user_name = $user->key;  # quotas_entry name extracted from the data structure
                %my $actionModify = qq{
                                %       <a href="quotad?CsrfDef=$csrf_token&trt=UPD&user=$quota_user_name">
                %   <button type='button' class="" title='$modify_text' >
                %       $modify_text
                %   </button>
                                %       </a>
                %};
                <%= $c->render_to_string(inline => $actionModify) %>
            </td>
        </tr>
    %    }
        </tbody>
        </table>
    <%} %>
    </p>

        %= hidden_field 'trt' => $quo_datas->{trt}

</div>
