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.229 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-1.0.2 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-1.0.1 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.228 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.227 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.226 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.225 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.224 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.223 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.222 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.221 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.220 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.219 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.218 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.217 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.216 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.215 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.214 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.213 app/views/caboose/block_type_sources/admin_new.html.erb
caboose-cms-0.9.212 app/views/caboose/block_type_sources/admin_new.html.erb