<%= form_with(model: list_post, local: true) do |form| %>

List Publish Panel

<%= form.label :list_post_status, "Post Status" %> <%= form.select( :list_post_status, [["Draft","draft"],["Published","published"],["Review","review"]], {}, {class: "form-control"}) %>
<%= form.submit class: "btn btn-primary" %>

List Images

<%= form.label :list_post_image, "Featured Image" %> <%= form.file_field :list_post_image, class: "form-control" %>
<% if form.object.list_post_image.attached? %> <%= image_tag main_app.url_for(form.object.list_post_image), class: "img-responsive img-thumbnail" %> <% end %>

List Options

<%= form.collection_check_boxes :category_ids, PhcdevworksCoreModules::Post::Category.all, :id, :post_category_name do |post_category| %> <%= post_category.check_box %> <%= post_category.label %>
<% end %>
<%= collection_select(:list_post, :optimization_id, PhcdevworksCoreModules::Marketing::Optimization.order("marketing_optimization_page_title"), :id, :marketing_optimization_page_title, {include_blank: true}, {class: "form-control"}) %>
<%= render "phcdevworks_notifications/bootstrap/validations", :object => @list_post %>

<%= yield(:phc_title_tagline) %>

<%= form.label :list_post_title, "List Title" %> <%= form.text_field :list_post_title, class: "form-control" %>
<%= form.text_area :list_post_text, class: "form-control editor" %>
<% end %>