19 lines
391 B
Plaintext
19 lines
391 B
Plaintext
<%= form_with model: @blog_post, id: "blog_post_form" do |f| %>
|
|
<h2><%= title %></h2>
|
|
|
|
<%= f.text_field :title, placeholder: t(".title") %>
|
|
|
|
<%= f.rich_text_area :content %>
|
|
|
|
<%= f.label :summary %>
|
|
<%= f.text_area :summary %>
|
|
|
|
<%= f.label :slug %>
|
|
<%= f.text_field :slug %>
|
|
|
|
<%= f.label :published %>
|
|
<%= f.check_box :published %>
|
|
|
|
<%= f.submit button_text %>
|
|
<% end %>
|