Sha256: eb4745916b1a4baad8fcb86d2937d79817fd93adb7350cbb09537d55b50a4853
Contents?: true
Size: 1.1 KB
Versions: 9
Compression:
Stored size: 1.1 KB
Contents
<%= form_for @post_category, :url => spud_admin_post_category_path(@post_category), :html => {:class => 'right_aligned_form'} do |f| %> <% if @post_category.errors.any? %> <div class="spud_admin_form_error_list"> <h4><%= pluralize(@post_category.errors.count, "error") %> prohibited you from saving this post:</h4> <ul> <% @post_category.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <fieldset> <legend>Post Category</legend> <ol> <li> <%= f.label :name %> <%= f.text_field :name %> </li> <li> <%= label_tag 'Parent' %> <select name="spud_post_category[parent_id]"> <option value="0">No Parent</option> <%= options_for_select(SpudPostCategory.options_for_categories(:filter => @post_category.id), @post_category.parent_id) %> </select> </li> </ol> </fieldset> <fieldset class="submit"> <%= f.submit 'Save Post Category' %> or <%= link_to "cancel", request.referer %> </fieldset> <% end %> <script type="text/javascript"> $(document).ready(Spud.Admin.Posts.edit); </script>
Version data entries
9 entries across 9 versions & 1 rubygems