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

Version Path
caboose-cms-0.5.47 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.46 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.45 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.44 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.43 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.42 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.41 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.40 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.39 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.38 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.37 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.36 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.35 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.34 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.32 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.31 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.30 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.28 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.27 app/views/caboose/vendors/admin_edit.html.erb
caboose-cms-0.5.26 app/views/caboose/vendors/admin_edit.html.erb