{{#id}}
<form method="POST" action="/auth/{{id}}/edit">
    <input type="hidden" name="id" value="{{id}}" />
    <input type="hidden" name="_method" value="put" />
    {{/id}}
    {{^id}}
    <form method="POST" action="/auth">
        <input type="hidden" name="id" value="" />
        {{/id}}

        <div class="col-xs-12">
         <div class="card">
            <div class="card-body">
               <div class="row">
                  <div class="row g-3">
                     <div class="col-md-4 col-xs-12">
                         <label class="form-label">Nome de usuário</label>
                         <input type="text" class="form-control" name="username" value="{{username}}" />
                     </div>
                     <div class="col-md-8 col-xs-12">
                        <label class="form-label">Nome</label>
                        <input type="text" class="form-control" name="name" value="{{name}}" />
                    </div>
                 </div>
               </div>
               <div class="row">
                  <div class="row g-3">
                     <div class="col-md-6 col-xs-12">
                         <label class="form-label">Email</label>
                         <input type="text" class="form-control" name="email" value="{{email}}" />
                     </div>
                     <div class="col-md-6 col-xs-12">
                        <label class="form-label">Senha</label>
                        <input type="password" class="form-control" name="password"/>
                    </div>
                 </div>
               </div>
               <div class="row">
                  <div class="g-3">
                     <select class="form-control" name="groups[]" multiple>
                     {{#groupsoptions}}
                        {{> core/auth/views/groups }}
                     {{/groupsoptions}}
                     </select>
                  </div>
               </div>

            </div>
         </div>
      </div>


        <div class="col-xs-12">
            <div class="card">
               <div class="card-body">
                  <div class="row">
                        <div class="col-md-6"> <input class="btn btn-success btn-block" type="submit" value="Salvar" /> </div>
                        <div class="col-md-6"> <a href="/auth" class="btn btn-danger btn-block"> Calcelar </a> </div>
                  </div>
               </div>
            </div>
         </div>
     </form>