Sha256: 143b603dad4763a986e11a85a476d78670cb40992aad539e1bfd4dd72c969186
Contents?: true
Size: 1.47 KB
Versions: 30
Compression:
Stored size: 1.47 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' onclick="window.location='/pages/<%= @page.id %>/edit-js';" /> <input type='button' value='SEO' onclick="window.location='/pages/<%= @page.id %>/edit-seo';" /> <input type='button' value='Resources' onclick="window.location='/pages/<%= @page.id %>/edit-resources';" disabled='true' /> </div> <p><div id='page_<%= @page.id %>_linked_resources'></div></p> <p>Here you can provide paths to resources to be included in your page, such as css and javascript files.</p> <br /> <p>Paths should be given on separate lines</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 %>', authenticity_token: '<%= form_authenticity_token %>', attributes: [ { name: 'linked_resources', nice_name: 'Linked Resources', type: 'textarea', width: 580, height: 400, value: <%= raw Caboose.json(@page.linked_resources) %> } ] }); modal = new CabooseModal(600, 460); }); </script> <% end %>
Version data entries
30 entries across 30 versions & 1 rubygems