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