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

Version Path
caboose-cms-0.9.211 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.210 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.209 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.208 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.207 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.206 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.205 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.204 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.203 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.202 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.201 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.200 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.198 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.197 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.196 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.195 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.194 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.193 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.192 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.191 app/views/caboose/block_type_sources/admin_new.html.erb