Sha256: 5ce8d0c75623d3fc62a6e0bdb30f25505dc9cc6387ae20f57a3f9970b68ce195

Contents?: true

Size: 1.74 KB

Versions: 55

Compression:

Stored size: 1.74 KB

Contents

<%= raw @crumbtrail.print({
  '/admin' => 'Admin',
  '/admin/theme-files' => 'Theme Files'  
}) %>

<h1>Theme Files</h1>


<div id='theme-files'></div>

<br /><br />

<% content_for :caboose_js do %>
<%= javascript_include_tag 'caboose/model/all' %>
<script type='text/javascript'>

$(document).ready(function() {
  var that = this;
  var table = new IndexTable({    
    form_authenticity_token: '<%= form_authenticity_token %>',
    container: 'theme-files',
    base_url: '/admin/theme-files',
    allow_bulk_edit: false,
    allow_bulk_delete: true,
    allow_duplicate: false,
    allow_advanced_edit: true,
    allow_bulk_import: false,
    allow_export: false,
    fields: [
      { show: true  , editable: true, bulk_edit: false, name: 'nice_name'        , nice_name: 'Nice Name'        , sort: 'nice_name'        , type: 'text'   , value: function(r) { return r.nice_name    }, width: 200 },
      { show: true  , editable: true, bulk_edit: false, name: 'filename'        , nice_name: 'File Path'        , sort: 'filename'        , type: 'text'   , value: function(r) { return r.filename    }, width: 200 },
      { show: true  , editable: true, bulk_edit: false, name: 'default_included'        , nice_name: 'Included by Default'        , sort: 'default_included'        , type: 'checkbox'   , value: function(r) { return r.default_included    }, text: function(r) { return r.default_included ? 'Yes' : 'No' }, width: 200 }
    ],
    new_model_text: 'New Theme File',
    new_model_fields: [
      { name: 'nice_name', nice_name: 'Nice Name', type: 'text', width: 400 }
    ],
    search_fields: [                                                           
      { name: 'nice_name_like'      , nice_name: 'Nice Name'  , type: 'text'  }
    ]
  });
});
</script>
<% end %>

Version data entries

55 entries across 55 versions & 1 rubygems

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