2023-05-30 01:34:01 +03:00
|
|
|
<%= form_for user, html: { class: 'space-y-4' }, data: { turbo_frame: :_top } do |f| %>
|
|
|
|
|
<div class="space-y-2">
|
|
|
|
|
<div class="form-control">
|
2024-09-18 19:47:47 +03:00
|
|
|
<%= f.label :first_name, t('first_name'), class: 'label' %>
|
2024-01-07 14:19:21 +02:00
|
|
|
<%= f.text_field :first_name, required: true, class: 'base-input', dir: 'auto' %>
|
2023-05-30 01:34:01 +03:00
|
|
|
</div>
|
|
|
|
|
<div class="form-control">
|
2024-09-18 19:47:47 +03:00
|
|
|
<%= f.label :last_name, t('last_name'), class: 'label' %>
|
2024-01-07 14:19:21 +02:00
|
|
|
<%= f.text_field :last_name, required: true, class: 'base-input', dir: 'auto' %>
|
2023-05-30 01:34:01 +03:00
|
|
|
</div>
|
|
|
|
|
<div class="form-control">
|
2024-09-18 19:47:47 +03:00
|
|
|
<%= f.label :email, t('email'), class: 'label' %>
|
2023-05-30 01:34:01 +03:00
|
|
|
<%= f.email_field :email, required: true, class: 'base-input' %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-control">
|
2024-09-18 19:47:47 +03:00
|
|
|
<%= f.label :password, t('password'), class: 'label' %>
|
2023-05-30 01:34:01 +03:00
|
|
|
<%= f.password_field :password, required: user.new_record?, class: 'base-input' %>
|
|
|
|
|
</div>
|
2023-09-17 00:45:57 +03:00
|
|
|
<% if f.object != current_user %>
|
|
|
|
|
<%= render 'role_select', f: %>
|
|
|
|
|
<% end %>
|
2024-06-14 22:59:11 +03:00
|
|
|
<% if local_assigns[:extra_fields_html].present? %>
|
|
|
|
|
<%= local_assigns[:extra_fields_html] %>
|
|
|
|
|
<% end %>
|
2023-05-21 17:59:36 +03:00
|
|
|
</div>
|
2023-06-30 01:26:13 +03:00
|
|
|
<div class="form-control pt-2">
|
2023-06-26 00:46:01 +03:00
|
|
|
<%= f.button button_title, class: 'base-button' %>
|
2023-05-21 17:59:36 +03:00
|
|
|
</div>
|
|
|
|
|
<% end %>
|