<%= form_with model: bubble, class: "flex flex-column gap full-width" do | form | %> <%= form.label :title, class: "flex flex-column justify-start align-start" do %> <%= form.text_field :title, class: "input full-width", required: true, placeholder: "Name it…" %> <% end %>
Color
<% Bubble.colors.keys.each do | color | %> <% end %>
Tag
<%= collection_check_boxes(:bubble, :tag_ids, Tag.all, :id, :title) do |f| %> <%= f.label(class: "btn txt-medium") { f.checkbox + tag.span(f.text) } %> <% end %>
Attachment
<%= form.button class: "btn btn--reversed" do %> <%= image_tag "check.svg", aria: { hidden: "true" }, size: 24%> Save <% end %> <% end %>