Sha256: 4b93647aa2e63e157e566eee3c4f316042dfae08e4606f92bfca70f2990abf75
Contents?: true
Size: 1.1 KB
Versions: 14
Compression:
Stored size: 1.1 KB
Contents
<h1>Page Settings</h1> <div class='top_right_controls'> <input type='button' value='General' onclick="window.location='/pages/<%= @page.id %>/edit-settings';" /> <input type='button' value='CSS' onclick="window.location='/pages/<%= @page.id %>/edit-css';" /> <input type='button' value='JS' disabled='true' onclick="window.location='/pages/<%= @page.id %>/edit-js';" /> <input type='button' value='SEO' onclick="window.location='/pages/<%= @page.id %>/edit-seo';" /> </div> <p><div id='page_<%= @page.id %>_custom_js'></div></p> <% content_for :caboose_js do %> <%= javascript_include_tag "caboose/model/all" %> <script type="text/javascript"> var modal = false; $(document).ready(function() { m = new ModelBinder({ name: 'Page', id: <%= @page.id %>, update_url: '/pages/<%= @page.id %>', attributes: [ { name: 'custom_js', nice_name: 'Custom Javascript', type: 'textarea', width: 580, height: 400, value: <%= raw Caboose.json(@page.custom_js) %> } ] }); modal = new CabooseModal(600, 460); }); </script> <% end %>
Version data entries
14 entries across 14 versions & 1 rubygems