Sha256: f353336041c5f9e0ddb9bb3cd779072a74bf52a8fb16eb4bf8bbcf2885a973f6
Contents?: true
Size: 1.43 KB
Versions: 4
Compression:
Stored size: 1.43 KB
Contents
<%= form_for @post, :url => spud_admin_post_path(@post), :html => {:class => 'right_aligned_form'} do |f| %> <% if @post.errors.any? %> <div class="spud_admin_form_error_list"> <h4><%= pluralize(@post.errors.count, "error") %> prohibited you from saving this post:</h4> <ul> <% @post.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <fieldset> <legend>Post Title</legend> <p> <%= f.text_field :title, :class => 'full-width' %> </p> </fieldset> <div> <%= f.label :content %> <%= f.text_area :content, :class => 'wysiwym' %> </div> <fieldset> <legend>Categories</legend> <ul id="spud_post_categories_form"> <%= render :partial => 'category', :collection => @categories[0] %> </ul> </fieldset> <fieldset> <legend>Advanced</legend> <ol> <li> <%= f.label :published_at, 'Publish Date' %> <%= f.text_field :published_at, :class => 'spud_form_date_picker' %> </li> <li> <%= f.label :visible %> <%= f.check_box :visible %> </li> <li> <%= f.label :comments_enabled %> <%= f.check_box :comments_enabled %> </li> </ol> </fieldset> <fieldset class="submit"> <%= f.hidden_field :spud_user_id %> <%= f.submit 'Save Post', :class => "wymupdate"%> or <%= link_to "cancel",request.referer %> </fieldset> <% end %> <script type="text/javascript"> $(document).ready(Spud.Admin.Posts.edit); </script>
Version data entries
4 entries across 4 versions & 1 rubygems