Sha256: f9093efa2511551b73018ee6cd34ffeda37ca572d9d9c1efed927407539f1528
Contents?: true
Size: 960 Bytes
Versions: 3
Compression:
Stored size: 960 Bytes
Contents
<%= form_for(@news_post) do |f| %> <% if @news_post.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@news_post.errors.count, "error") %> prohibited this news_post from being saved:</h2> <ul> <% @news_post.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <div class="form-group"> <label><%= f.label :newspsttitle, "Post Name" %></label> <%= f.text_field :newspsttitle, class: "form-control" %> </div> <div class="form-group"> <label><%= f.label :newspsttext, "Post Text" %></label> <%= f.text_area :newspsttext, 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/news/posts/_form.html.erb |
phcpress-0.1.9b | app/views/phcpress/news/posts/_form.html.erb |
phcpress-0.1.5b | app/views/phcpress/news/posts/_form.html.erb |