<%= simple_form_for [:backend, @row] do |f| %> <% pixels = (1..10).map { |i| ["#{i * 16}px", i] } %>
<%= t 'b.msg.flexible_content.margin_explanation' %>
<%= f.input :margin_top, collection: pixels %> <%= f.input :margin_bottom, collection: pixels %>
<%= t 'b.msg.flexible_content.padding_explanation' %>
<%= f.input :padding_top, collection: pixels %> <%= f.input :padding_bottom, collection: pixels %>
<%= f.input :background_color, placeholder: 'eg #336699' %>
<%= f.input :no_gutters, as: :boolean %>
<%= render 'backend/form_actions', cancel_url: '#lity-close' %> <% end %>