Sha256: 43ef99f50e06ad33358393a95c7fb16f64255a4a8a3dfd1835d8e2a877c6bd77

Contents?: true

Size: 892 Bytes

Versions: 872

Compression:

Stored size: 892 Bytes

Contents

 
<h1>Edit Setting</h1>
<p><div id='setting_<%= @setting.id %>_name'  ></div></p>
<p><div id='setting_<%= @setting.id %>_value' ></div></p>

<p><input type='button' value='< Back' onclick="window.location='/admin/settings';" /></p>

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

$(document).ready(function() {
  new ModelBinder({
    name: 'Setting',
    id: <%= @setting.id %>,
    update_url: '/admin/settings/<%= @setting.id %>',
    authenticity_token: '<%= form_authenticity_token %>',
    attributes: [
      { name: 'name'  , nice_name: 'Name'  , type: 'text'     , value: <%= raw Caboose.json(@setting.name)  %>, width: 600 },
      { name: 'value' , nice_name: 'Value' , type: 'textarea' , value: <%= raw Caboose.json(@setting.value) %>, width: 600, height: 200 }      
    ]    
  });  
});

</script>
<% end %>

Version data entries

872 entries across 872 versions & 1 rubygems

Version Path
caboose-cms-0.3.98 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.97 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.96 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.95 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.94 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.93 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.92 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.91 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.90 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.89 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.88 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.87 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.86 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.85 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.84 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.83 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.82 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.81 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.80 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.79 app/views/caboose/settings/edit.html.erb