Sha256: 9a9054d8d3c71360b4303baad1aa85d88459eb546effd49e9c5c3d0eb3b9d0fc
Contents?: true
Size: 1.12 KB
Versions: 8
Compression:
Stored size: 1.12 KB
Contents
<h2>Meta Definitions</h2> <% @meta_definitions.each do |md| %> <%= render :partial => 'meta_definition', :locals => { :md => md } %> <% end %> <p><%= link_to 'New', '#', :id => 'add_meta_definition', :class => 'button' %></p> <div id='new_meta_definition' style='display:none;'> <h3>New</h3> <% form_for [:system, @meta_definition] do |f| %> <%= render :partial => 'form', :object => f %> <%= f.submit 'Save' %> <% end %> </div> <style> .meta { margin: 4px; margin-left: 20px; padding: 4px; background-color: #D3D6DE; border-top: 2px white solid; } </style> <script> $(function() { $('a.toggle_details').click(function() { $($(this).attr('href')).toggle(); return false; }); $('a#add_meta_definition').click(function() { $('#new_meta_definition').show(); return false; }); $('a.new').click(function() { $('#new_meta_definition').show(); $('#meta_definition_parent_id').attr('value', $(this).attr('href')); return false; }); }) </script>
Version data entries
8 entries across 8 versions & 1 rubygems