Sha256: 3904604553289cbcc43fec7f82279fd30e333fba45be0c7649d97227164c6d18

Contents?: true

Size: 953 Bytes

Versions: 3

Compression:

Stored size: 953 Bytes

Contents

<%= form_for(@blog_post) do |f| %>

	<% if @blog_post.errors.any? %>
		<div id="error_explanation">
			<h2><%= pluralize(@blog_post.errors.count, "error") %> prohibited this blog_post from being saved:</h2>

			<ul>
				<% @blog_post.errors.full_messages.each do |message| %>
					<li><%= message %></li>
				<% end %>
			</ul>
		</div>
	<% end %>

	<div class="form-group">
		<label><%= f.label :blogpsttitle, "Title" %></label>
		<%= f.text_field :blogpsttitle, class: "form-control" %>
	</div>

	<div class="form-group">
		<label><%= f.label :blogpsttext, "Text" %></label>
		<%= f.text_area :blogpsttext, class: "form-control" %>
	</div>

	<div class="form-group">
		<label><%= f.label :pststatus, "Post Status" %></label>
		<%= f.select :pststatus, [['Draft','draft'],['Publish','publish'],['Review','review']], class: "form-control" %>
	</div>

	<div class="actions">
		<%= f.submit "Submit", class: "btn btn-primary btn-sm" %>
	</div>

<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phcpress-0.2.1b app/views/phcpress/blog/posts/_form.html.erb
phcpress-0.1.9b app/views/phcpress/blog/posts/_form.html.erb
phcpress-0.1.5b app/views/phcpress/blog/posts/_form.html.erb