<%= form_with(model: marketing_optimization, local: true) do |form| %> <%= render "phcdevworks_notifications/bootstrap/validations", :object => @marketing_optimization %>
<%= form.label :seo_title, "SEO Title" %> <%= form.text_field :seo_title, class: "form-control" %>
<%= form.label :seo_description, "SEO Description" %> <%= form.text_area :seo_description, class: "form-control" %>
<%= form.label :seo_open_graph_title, "SEO OG Title" %> <%= form.text_field :seo_open_graph_title, class: "form-control" %>
<%= form.label :seo_open_graph_description, "SEO OG Description" %> <%= form.text_field :seo_open_graph_description, class: "form-control" %>
<%= form.label :seo_open_graph_post_type, "SEO OG Type" %> <%= form.text_field :seo_open_graph_post_type, class: "form-control" %>
<%= form.label :seo_open_graph_image, "Featured Image" %> <%= form.file_field :seo_open_graph_image, class: "form-control" %> <% if form.object.seo_open_graph_image.attached? %> <%= image_tag main_app.url_for(form.object.seo_open_graph_image), class: "img-responsive img-thumbnail" %> <%= form.label :remove_seo_open_graph_image %> <%= form.check_box :remove_seo_open_graph_image %> <% end %>
<%= form.label :seo_open_graph_url, "SEO OG URL" %> <%= form.text_field :seo_open_graph_url, class: "form-control" %>
<%= form.label :seo_twitter_title, "SEO Twitter Title" %> <%= form.text_field :seo_twitter_title, class: "form-control" %>
<%= form.label :seo_twitter_description, "SEO Twitter Description" %> <%= form.text_area :seo_twitter_description, class: "form-control" %>
<%= form.label :seo_twitter_post_type, "SEO Twitter Type" %> <%= form.text_field :seo_twitter_post_type, class: "form-control" %>
<%= form.label :seo_twitter_image, "Featured Image" %> <%= form.file_field :seo_twitter_image, class: "form-control" %> <% if form.object.seo_twitter_image.attached? %> <%= image_tag main_app.url_for(form.object.seo_twitter_image), class: "img-responsive img-thumbnail" %> <%= form.label :remove_seo_twitter_image %> <%= form.check_box :remove_seo_twitter_image %> <% end %>
<%= form.label :seo_twitter_url, "SEO Twitter URL" %> <%= form.text_field :seo_twitter_url, class: "form-control" %>
<%= form.submit class: "btn btn-primary" %>
<% end %>