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.9.229 app/views/caboose/settings/edit.html.erb
caboose-cms-1.0.2 app/views/caboose/settings/edit.html.erb
caboose-cms-1.0.1 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.228 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.227 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.226 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.225 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.224 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.223 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.222 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.221 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.220 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.219 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.218 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.217 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.216 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.215 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.214 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.213 app/views/caboose/settings/edit.html.erb
caboose-cms-0.9.212 app/views/caboose/settings/edit.html.erb