% content_for 'module' => begin

<div class="container-sm">
    <br>
    <h2><%= l 'usr_MODIFY_ADMIN_TITLE' %></h2>
     
    <br><br>
 
    <form action="/smanager/useraccountsd" method="POST">
        %#= form_for '/useraccountsd' => (method => 'POST') => begin
    
    
        <div class="row g-3 align-items-center">
            <div class="col-md-2">
              <label for="inputLastNAme" class="col-form-label"><%= l 'usr_ACCOUNT_NAME' %></label>
            </div>
            <div class="col-auto">
              <input disabled type="text" id="disabledTextInput" class="form-control" placeholder="<%= $usr_datas->{user} %>">
            </div>
        </div>
    
        <br>
        % param 'FirstName' => $usr_datas->{firstname} unless param 'FirstName';
    
        <div class="row g-3 align-items-center">
            <div class="col-md-2">
              <label for="inputFirstName" class="col-form-label"><%= l 'usr_FIRSTNAME' %></label>
            </div>
            <div class="col-auto">
              <input type="text" name="FirstName" id="inputFirstName" class="form-control" aria-describedby="FirstName" value="<%= $usr_datas->{firstname} %>" >
            </div>
            <div class="col-auto">
              <span id="passwordHelpInline" class="form-text">
                First Name
              </span>
            </div>
        </div>
        <br>
    
       % param 'LastName' => $usr_datas->{lastname} unless param 'LastName';
    
        <div class="row g-3 align-items-center">
            <div class="col-md-2">
              <label for="inputLastNAme" class="col-form-label"><%= l 'usr_LASTNAME' %></label>
            </div>
            <div class="col-auto">
              <input type="text" name="LastName" id="inputLastName" class="form-control" aria-describedby="LastName" value="<%= $usr_datas->{lastname} %>" >
            </div>
            <div class="col-auto">
              <span id="passwordHelpInline" class="form-text">
                Last Name
              </span>
            </div>
        </div>
        <br>
    
        % param 'EmailForward' => $usr_datas->{emailforward} unless param 'EmailForward';
    
        <div class="row g-3 align-items-center">
            <div class="col-md-2">
                <label for="inputEmailDelivery" class="col-form-label"><%= l 'usr_EMAIL_DELIVERY' %></label>
            </div>
            <div class="col-auto">
                %= select_field 'EmailForward' => $c->emailForward_list(), class => "form-select"
            </div>
        </div>
        <br>
        
        % param 'ForwardAddress' => $usr_datas->{forwardaddress} unless param 'ForwardAddress';
    
        <div class="row g-3 align-items-center">
            <div class="col-md-2">
              <label for="inputEmail" class="col-form-label"><%= l 'usr_FORWARDING_ADDRESS' %></label>
            </div>
            <div class="col-auto">
              <input type="email" name="ForwardAddress" id="inputEmail" class="form-control" aria-describedby="Email" value="<%= $usr_datas->{forwardaddress} %>" >
            </div>
            <div class="col-auto">
              <span id="passwordHelpInline" class="form-text">
                Email forwarding address
              </span>
            </div>
        </div>
        <br>
    
        % param 'VPNClientAccess' => $usr_datas->{vpnclientaccess} unless param 'VPNClientAccess';
    
        <div class="row g-3 align-items-center">
            <div class="col-md-2">
                <label for="inputVPNClientAccess" class="col-form-label"><%= l 'usr_VPN_CLIENT_ACCESS' %></label>
            </div>
            <div class="col-auto">
                    %= select_field 'VPNClientAccess' => [[ (l 'NO') => 'no'], [ (l 'YES') => 'yes']], class => "form-select"
            </div>
            <br>
        </div>

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

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


        trt: <%= dumper $usr_datas->{trt} %>
        user: <%= dumper $usr_datas->{user} %>
        
        %= hidden_field 'trt' => $usr_datas->{trt}
        %= hidden_field 'user' => $usr_datas->{user}
        
        % end
    </form>
</div>

