app/views/items/edit.html.erb in wontomedia-0.1.1 vs app/views/items/edit.html.erb in wontomedia-0.2.0

- old
+ new

@@ -22,10 +22,11 @@ <meta name="robots" content="noindex" /> <meta name="googlebot" content="noindex" /> <% end @title_text = filter_parenthetical h @item.title + @window_title_addendum = " (Edit)" # initialize array to define "Glossary Help" box of links: @glossary_help_entries = [ [ 'Item', 'Help:GlossaryAtoO#anchor_Item' ] ] @@ -36,19 +37,24 @@ </div> <% form_for(@item, :url => item_path(@item)) do |f| %> <%= f.error_messages %> - <%= render :partial => "form_fields", :locals => { :f => f } %> - <p><%= f.submit "Update", :tabindex => "10" %></p> + <%= render :partial => "class_select", + :locals => { :f => f, :show_class_control => true } %> + <%= render :partial => "form_fields", :locals => { :f => f } %> + <p><%= f.submit "Update", :tabindex => "150" %></p> <% end %> <div class="horizontal-link-list"><ul> <li><%= link_to 'Cancel,&nbsp;show&nbsp;item', item_by_name_path(@item.name), :rel => 'nofollow' -%></li> <li><%= link_to 'Cancel,&nbsp;show&nbsp;item&nbsp;list', items_path, :rel => 'nofollow' -%></li> </ul></div> + + +<%= ruby_hash_to_javascript 'class_to_type', @class_to_item_map %> <% content_for :first_bottom_page_js do %> <script type="text/javascript"> inAnItemsForm = true; creatingNewItem = false;