forked from fixin.me/fixin.me
Simplify and improve labeled form
This commit is contained in:
@@ -1,19 +1,18 @@
|
||||
<% content_for :navigation, flush: true do %>
|
||||
<div class="left">
|
||||
<%= image_link_to t(:back), "arrow-left-bold-outline", users_path %>
|
||||
</div>
|
||||
<%= link_to svg_tag('pictograms/arrow-left-bold-outline', t(:back)), users_path,
|
||||
class: 'tab' %>
|
||||
<% end %>
|
||||
|
||||
<%= labelled_form_for @user do |f| %>
|
||||
<%= labeled_form_for @user, html: {class: 'main-area'} do |f| %>
|
||||
<%= f.email_field :email, readonly: true %>
|
||||
<% if f.object.pending_reconfirmation? %>
|
||||
<% if @user.pending_reconfirmation? %>
|
||||
<%= f.email_field :unconfirmed_email, readonly: true,
|
||||
hint: t("users.registrations.edit.unconfirmed_email_hint",
|
||||
timestamp: f.object.confirmation_sent_at.to_fs(:db_without_sec)) %>
|
||||
confirmation_sent_at: l(@user.confirmation_sent_at) %>
|
||||
<% end %>
|
||||
|
||||
<%# TODO: allow status change here? %>
|
||||
<%= f.select :status, User.statuses, readonly: true %>
|
||||
|
||||
<%= f.text_field :created_at, readonly: true %>
|
||||
<%= f.text_field :confirmed_at, readonly: true %>
|
||||
<%= f.text_field :confirmed_at, readonly: true, placeholder: t(:no) %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user