<%= content_for :title, t(:'users.new') %>

<%= turbo_frame_tag 'main' do %>

  <%= turbo_stream.append 'flash', partial: 'layouts/flash' %>

  <div class="form-container">
    <%= link_to t(:'users.list'), url_for(controller: 'users', action: 'index'), data: {turbo_action: 'advance'}, class: 'back-link' %>

    <div class="form-header">
      <h1><%= yield :title %></h1>      
    </div>

    <%= render "form", user: @user %>
    
  </div>
<% end %>