Sha256: 554f3052abddb182783b9f773225236ccbc5d27f2987c1f197da149824d20569

Contents?: true

Size: 622 Bytes

Versions: 144

Compression:

Stored size: 622 Bytes

Contents

 
<h1>Edit Setting</h1>
<div id='setting_<%= @setting.id %>_container'></div>

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

$(document).ready(function() {
  var setting = new Model({
    name: 'Setting',
    id: <%= @setting.id %>,
    listing_url: 'get /admin/settings',
    update_url:  'put /admin/settings/<%= @setting.id %>',
    delete_url:  'delete /admin/settings/<%= @setting.id %>',
    attributes: [
      { name: 'name'  , type: 'text'     , value: "<%= @setting.name  %>" },
      { name: 'value' , type: 'textarea' , value: "<%= @setting.value %>" }
    ]
  });
});

</script>
<% end %>

Version data entries

144 entries across 144 versions & 1 rubygems

Version Path
caboose-cms-0.3.46 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.45 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.44 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.43 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.42 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.41 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.40 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.39 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.38 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.37 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.36 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.35 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.34 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.33 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.32 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.31 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.30 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.29 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.28 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.27 app/views/caboose/settings/edit.html.erb