Sha256: 67cab2a71d07bb9e4a9cf93ce78df8792234d1825df88746619f57a551052135

Contents?: true

Size: 731 Bytes

Versions: 23

Compression:

Stored size: 731 Bytes

Contents

<h1>Edit Page Content</h1>
<p class='current_page_editing'>Currently editing: /<%= @page.uri %></p>

<div id='page_<%= @page.id %>_container'></div>

<% content_for :caboose_js do %>
<%= javascript_include_tag "caboose/model.form.page" %>
<script type="text/javascript">

$(document).ready(function() {
  var page = new Model({
    name: 'Page',
    id: <%= @page.id %>,
    form: 'Model.Form.Page',
    attributes: [
      { name: 'title'                 , type: 'h1'                , value: <%= raw Caboose.json(@page.title   ) %>, width: '500px' },
      { name: 'content'               , type: 'rich-text'         , value: <%= raw Caboose.json(@page.content ) %> }
    ]
  });
});

</script>
<%= tinymce :caboose %>
<% end %>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
caboose-cms-0.2.5 app/views/caboose/pages/edit.html.erb
caboose-cms-0.2.4 app/views/caboose/pages/edit.html.erb
caboose-cms-0.2.2 app/views/caboose/pages/edit.html.erb
caboose-cms-0.2.1 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.102 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.101 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.98 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.97 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.96 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.93 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.92 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.91 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.78 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.35 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.34 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.7 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.6 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.5 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.4 app/views/caboose/pages/edit.html.erb
caboose-cms-0.1.3 app/views/caboose/pages/edit.html.erb