<% block = cell(:elements, :block).new(class: 'xs-12 sm-12 md-12 posts__edit-categories') form = cell(:inputs, :form).new(url: lato_blog.posts_update_categories_path, method: :post, remote: true) table = cell(:elements, :table, :container).new table_body = cell(:elements, :table, :body).new %> <%=raw block.open %> <%=raw cell(:elements, :title).new(label: LANGUAGES[:lato_blog][:mixed][:change_categories], size: 6) %> <%=raw form.open %> <%=raw table.open %> <%=raw table_body.open %> <% @categories.each do |category| %> <% checkbox = cell(:inputs, :checkbox).new(name: "categories[#{category.id}]", value: @post.categories.include?(category)) %> <%=raw cell(:elements, :table, :row).new(labels: [ {type: 'component', value: checkbox}, category.title ]) %> <% end %> <%=raw table_body.close %> <%=raw table.close %> <%=raw form.close %> <%=raw block.close %>