%= form_with(model: thing) do |form| %>
<%= render "layouts/errors", model: thing %>
<%= form.label :title %>
<%= form.text_field :title, autofocus: true, autocapitalize: 'on', required: true %>
<%= form.label :authors %>
<%= form.text_field :authors, autocapitalize: 'words', required: true %>
<%= form.check_box :editors %>
<%= form.label :editors %>
<%= form.label :note %>
<%= form.text_field :note, autocapitalize: 'on' %>
<%= form.label :target %>
<%= form.text_field :target, autocapitalize: 'on', required: true %>
<%= form.label :publisher %>
<%= form.text_field :publisher, autocapitalize: 'on' %>
<%= form.label :year %>
<%= form.number_field :year %>
<%= form.label :address %>
<%= form.text_field :address, autocapitalize: 'on' %>
<%= form.label :url do %>
<%= I18n.t('activerecord.attributes.thing.url') %>
<% end %>
<%= form.text_field :url, "data-action": "thing#updateLink" %>
<%= form.label :access %>
<%= form.date_field :access %>
<%= form.label :insideof %>
<%= form.text_field :insideof, autocapitalize: 'on' %>
<%= form.label :pages %>
<%= form.text_field :pages %>
<%= form.label :rate %>
<%= form.number_field :rate, min: 0, max: 10, required: true %>
<%= form.label :status %>
<%= form.select :status, options_for_select(Thing.statuses.map { |k, _| [I18n.t("things.status.#{k}"), k] }.sort, thing.status) %>
<%= form.label :kind %>
<%= form.select :kind, options_for_select(Thing.kinds.map { |k, _| [I18n.t("things.kind.#{k}"), k] }.sort, thing.kind) %>
<%= form.label :bought_at %>
<%= form.date_field :bought_at %>
<%= form.label :where_is_it %>
<%= form.text_field :where_is_it, autocapitalize: 'on' %>
<%= render "tags/taggable", tag_references: thing.tag_references.pluck(:tag_id), form: form %>