%= form_with(model: thing) do |form| %>
<%= render "layouts/errors", model: thing %>
<%= form.label :title %>
<%= form.text_field :title, autofocus: true, required: true %>
<%= form.label :authors %>
<%= form.text_field :authors, required: true %>
<%= form.check_box :editors %>
<%= form.label :editors %>
<%= form.label :note %>
<%= form.text_field :note %>
<%= form.label :target %>
<%= form.text_field :target, required: true %>
<%= form.label :publisher %>
<%= form.text_field :publisher %>
<%= form.label :year %>
<%= form.number_field :year %>
<%= form.label :address %>
<%= form.text_field :address %>
<%= form.label :url %>
<%= form.text_field :url %>
<%= form.label :access %>
<%= form.date_field :access %>
<%= form.label :location %>
<%= form.text_field :location %>
<%= form.label :insideof %>
<%= form.text_field :insideof %>
<%= 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 %>
<%= render "tags/taggable", tag_references: thing.tag_references.pluck(:tag_id), form: form %>