<%= form_for @count, url: @count.id ? count_path : count_index_path, class: "row" do |f| %>
<%= f.label :name, t("fields.name") %> <%= f.text_field :name, class: "form-control" %>
<%= f.label :count, t("fields.count") %> <%= f.number_field :count, class: "form-control" %>
<%= f.submit t("fields.save"), class: "btn btn-primary" %> <% end %>
<% if @count.id %> <%= button_to "", count_path(@count), method: :delete, class: "bi-trash-fill btn btn-danger" %> <% end %>