Sha256: e5b2c67d2e681ddff39808ab18b4cb84bb50a3ee011d82f8b008ae512bccca7a

Contents?: true

Size: 1.45 KB

Versions: 64

Compression:

Stored size: 1.45 KB

Contents

<%
bts = @block_type_summary
%>
<div id='crumbtrail'>
  <a href='/admin'>Admin</a> >
  <a href='/admin/block-types'>Block Types</a> >
  <a href='/admin/block-type-store'>Store</a>
</div>

<h1>Block Type Details</h1>

<p>Name: <%= bts.name %></p>
<p>Description: <%= bts.description %></p>
<div id='message'></div> 
<p>
<input type='button' value='< Back' onclick="window.location='/admin/block-type-store';" />
<input type='button' value='Download from Source' onclick="download_block_type(<%= bts.id %>);" />
</p>

<% content_for :caboose_js do %>
<script type='text/javascript'>

function download_block_type(summary_id, confirm)
{
  if (!confirm)
  {
    var p = $('<p/>').addClass('note warning')
      .append('Are you sure you want to download the block type?<br />')
      .append($('<input/>').attr('type', 'button').val('Yes').click(function() { download_block_type(summary_id, true); })).append(' ')
      .append($('<input/>').attr('type', 'button').val('No').click(function() { $('#message').empty(); }));
    $('#message').empty().append(p);
    return;
  }
  $('#message').html("<p class='loading'>Downloading block type...</p>");
  $.ajax({
    url: '/admin/block-types/store/' + summary_id + '/download',
    type: 'get',
    success: function(resp) {
      if (resp.error) $('#message').html("<p class='note error'>" + resp.error + "</p>");
      if (resp.success) $('#message').html("<p class='note success'>" + resp.success + "</p>");
    }
  });
}

</script>
<% end %>

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
caboose-cms-0.9.229 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-1.0.2 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-1.0.1 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.228 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.227 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.226 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.225 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.224 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.223 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.222 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.221 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.220 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.219 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.218 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.217 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.216 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.215 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.214 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.213 app/views/caboose/block_type_store/admin_details.html.erb
caboose-cms-0.9.212 app/views/caboose/block_type_store/admin_details.html.erb