<div>

    % my $btn = l('SAVE');

    <form action="/smanager/quota2" method="POST">

    <h2><%= l 'quo_MODIFY_USER_TITLE' %></h2>

    % my $userid = $quo_datas->{user};
    % my $user = $quo_datas->{userRec};
<!--
         for my $user @$userAccounts
        {
           unless ( $user->key eq $userid) {
            warn(l('USER_DIFFERENT'),$user->key);
            next;
            }
    }
-->
    % my $uid = getpwnam($user->key);
    % unless ($uid) {
    %     warn(l('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);

    <div>
        <%= l 'quo_USER' %>&nbsp<%= "$name (\"$userid\")" %>
        &nbsp
        <%= l 'quo_CURRENTLY_HAS' %>&nbsp<%= $ic %>
        <%= l 'quo_FILES' %>
        &nbsp
        <%= l 'quo_OCCUPYING' %>&nbsp<%= $c->toMB($bc) %>&nbsp<%= l 'quo_MEGABYTES' %>
    </div>
    <br>

    <div>
        <%= l 'quo_INSTRUCTIONS' %>
    </div>
    <br>

    <div class="row g-3 align-items-center">
        <div class="col-md-2">
            <%= l 'quo_USER' %>
        </div>
        <div class="col-auto">
            <%= $name %>
        </div>
    </div>

    <br>

    % param 'Soft' => $quo_datas->{softlim} unless param 'Soft';

    <div class="row g-3 align-items-center">
        <div class="col-md-2">
            <label for="inputQuotaDesc" class="col-form-label"><%=l 'quo_LIMIT_WITH_GRACE' %></label>
        </div>
        <div class="col-auto">
            <!-- text_field 'Soft' -->
            <input type="text" name="Soft" id="inputQuotaDesc" class="form-control" aria-describedby="QuotaDesc" value="<%= $quo_datas->{softlim} %>">
        </div>
    </div>

    <br>

    % param 'Hard' => $quo_datas->{hardlim} unless param 'Hard';

    <div class="row g-3 align-items-center">
        <div class="col-md-2">
            <label for="inputQuotaABS" class="col-form-label"><%= l 'quo_ABS_LIMIT' %></label>
        </div>
        <div class="col-auto">
            <!-- text_field 'Hard' -->
            <input type="text" name="Hard" id="inputQuotaABS" class="form-control" aria-describedby="QuotaABS" value="<%= $quo_datas->{hardlim} %>">


        </div>
    </div>

    <br><br>

    <div class="row g-3 align-items-center">
        <div class="col-md-2">
            <button type="submit" class="btn btn-primary"><%= $btn %></button>
        </div>
    </div>

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

    </form>

</div>