Soc/app/views/blog_posts/_form.html.erb

21 lines
452 B
Plaintext
Raw Normal View History

2024-03-07 09:14:06 +00:00
<section class="content">
<%= form_with model: @blog_post, id: "blog_post_form" do |f| %>
<h2><%= title %></h2>
2023-10-05 18:46:09 +00:00
2024-03-07 09:14:06 +00:00
<%= f.text_field :title, placeholder: t(".title") %>
2023-10-05 18:46:09 +00:00
2024-03-07 09:14:06 +00:00
<%= f.rich_text_area :content %>
2023-10-05 18:46:09 +00:00
2024-03-07 09:14:06 +00:00
<%= f.label :summary %>
<%= f.text_area :summary %>
2023-10-06 07:26:16 +00:00
2024-03-07 09:14:06 +00:00
<%= f.label :slug %>
<%= f.text_field :slug %>
2023-10-05 18:46:09 +00:00
2024-03-07 09:14:06 +00:00
<%= f.label :published %>
<%= f.check_box :published %>
2023-10-05 18:46:09 +00:00
2024-03-07 09:14:06 +00:00
<%= f.submit button_text %>
<% end %>
</section>