Sha256: 6c75a4a129684b5f6055cba385f3b9bc5140b135532523180ae5a28165701a25
Contents?: true
Size: 1.08 KB
Versions: 77
Compression:
Stored size: 1.08 KB
Contents
<h1>Edit Vendor</h1> <p><div id="vendor_<%= @vendor.id %>_name"></div></p> <p><div id="vendor_<%= @vendor.id %>_status"></div></p> <input type="button" value="< Back" onclick="window.location=/admin/vendors" /> <input type="button" value="Delete" onclick="window.location=/admin/vendors/<%= @vendor.id %>/delete" /> <% content_for :caboose_js do %> <%= javascript_include_tag "caboose/model/all" %> <script> $(document).ready(function() { m = new ModelBinder({ id: <%= @vendor.id %>, name: 'Vendor', update_url: '/admin/vendors/<%= @vendor.id %>/update', authenticity_token: '<%= form_authenticity_token %>', attributes: [ { name: 'name' , nice_name: 'Name' , type: 'text' , value: <%= Caboose.json(@vendor.name).html_safe %>, width: 500 }, { name: 'status' , nice_name: 'Status' , type: 'select' , text: <%= raw Caboose.json(@vendor.status).html_safe %>, value: <%= Caboose.json(@vendor.status).html_safe %>, width: 500, options_url: '/admin/vendors/status-options' } ] }) }); </script> <% end %>
Version data entries
77 entries across 77 versions & 2 rubygems