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.4.13 app/views/caboose/settings/edit.html.erb
caboose-cms-0.4.12 app/views/caboose/settings/edit.html.erb
caboose-cms-0.4.11 app/views/caboose/settings/edit.html.erb
caboose-cms-0.4.10 app/views/caboose/settings/edit.html.erb
caboose-cms-0.4.9 app/views/caboose/settings/edit.html.erb
caboose-cms-0.4.8 app/views/caboose/settings/edit.html.erb
caboose-cms-0.4.7 app/views/caboose/settings/edit.html.erb
caboose-cms-0.4.6 app/views/caboose/settings/edit.html.erb
caboose-cms-0.4.5 app/views/caboose/settings/edit.html.erb
caboose-cms-0.4.4 app/views/caboose/settings/edit.html.erb
caboose-cms-0.4.3 app/views/caboose/settings/edit.html.erb
caboose-cms-0.4.2 app/views/caboose/settings/edit.html.erb
caboose-cms-0.4.1 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.129 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.128 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.127 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.110 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.101 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.100 app/views/caboose/settings/edit.html.erb
caboose-cms-0.3.99 app/views/caboose/settings/edit.html.erb