Sha256: 4d1114d54fe617745a4b49cf34440ab4b605d6ffc68a1d27b27b25e9e85a50b5

Contents?: true

Size: 880 Bytes

Versions: 98

Compression:

Stored size: 880 Bytes

Contents

<h1>Edit Agent</h1>
<%= render :partial => 'caboose_rets/agents/admin_top_nav' %>

<div id='agent_<%= @agent.id %>_contact_info' ></div>

<p style='clear: both;'><input type='button' value='< Back' onclick="window.location='/admin/agents';" /></p>

<% content_for :caboose_js do %>
<%= javascript_include_tag "caboose/model/all" %>
<script type='text/javascript'>
$(document).ready(function() {
  m = new ModelBinder({
    name: 'Agent',
    id: <%= @agent.id %>,
    update_url: '/admin/agents/<%= @agent.id %>',
    authenticity_token: '<%= form_authenticity_token %>',
    attributes: [{ 
      name: 'contact_info',
      nice_name: 'Contact Info',
      type: 'textarea',
      value: <%= raw Caboose.json(@agent.contact_info) %>,
      width: 750, 
      height: 250 
    }]
  });
});
$(window).load(function() {
  var modal = new CabooseModal(800);
});
</script>
<% end %>

Version data entries

98 entries across 98 versions & 1 rubygems

Version Path
caboose-rets-0.1.26 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.25 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.24 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.23 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.22 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.21 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.20 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.19 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.18 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.17 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.16 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.15 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.14 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.13 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.12 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.11 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.10 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.9 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.8 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb
caboose-rets-0.1.7 app/views/caboose_rets/agents/admin_edit_contact_info.html.erb