Sha256: e136995345314133648c30af9030327b3811d60378b23a09dae7a831c2225c21
Contents?: true
Size: 1.22 KB
Versions: 778
Compression:
Stored size: 1.22 KB
Contents
<div id='crumbtrail'> <a href='/admin'>Admin</a> > <a href='/admin/block-types'>Block Types</a> > <a href='/admin/block-types/store'>Store</a> > <a href='/admin/block-types/store/sources'>Sources</a> </div> <h1>New Source</h1> <form action='/admin/block-types/store/sources' method='post' id='new_source_form'> <input type='hidden' name='authenticity_token' value='<%= form_authenticity_token %>' /> <p><input type='text' id='name' name='name' placeholder='Name' /></p> <div id='message'></div> <p> <input type='button' value='< Back' onclick="window.location='/admin/block-types/store/sources';" /> <input type='button' value='Add Source' onclick="add_block_type_source();" /> </p> </form> <% content_for :caboose_js do %> <script type='text/javascript'> function add_block_type_source() { $('#message').empty().append($('<p/>').addClass('loading').html('Adding source...')); $.ajax({ url: '/admin/block-types/store/sources', type: 'post', data: $('#new_source_form').serialize(), success: function(resp) { if (resp.error) $('#message').empty().append($('<p/>').addClass('note error').html(resp.error)); if (resp.redirect) window.location = resp.redirect; } }); } </script> <% end %>
Version data entries
778 entries across 778 versions & 1 rubygems