Sha256: 52e7719b39e6862fab35e03237dca8e62dac9a1dd3745335ecf037afaa806830

Contents?: true

Size: 830 Bytes

Versions: 11

Compression:

Stored size: 830 Bytes

Contents

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

<div id='agent_<%= @agent.id %>_bio'></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: 'bio',
      nice_name: 'Bio',
      type: 'textarea',
      value: <%= raw Caboose.json(@agent.bio) %>,
      width: 600, 
      height: 250 
    }]
  });
});
$(window).load(function() {
  var modal = new CabooseModal(800);
});
</script>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
caboose-rets-0.0.12 app/views/caboose_rets/agents/admin_edit_bio.html.erb
caboose-rets-0.0.11 app/views/caboose_rets/agents/admin_edit_bio.html.erb
caboose-rets-0.0.10 app/views/caboose_rets/agents/admin_edit_bio.html.erb
caboose-rets-0.0.9 app/views/caboose_rets/agents/admin_edit_bio.html.erb
caboose-rets-0.0.8 app/views/caboose_rets/agents/admin_edit_bio.html.erb
caboose-rets-0.0.7 app/views/caboose_rets/agents/admin_edit_bio.html.erb
caboose-rets-0.0.6 app/views/caboose_rets/agents/admin_edit_bio.html.erb
caboose-rets-0.0.5 app/views/caboose_rets/agents/admin_edit_bio.html.erb
caboose-rets-0.0.4 app/views/caboose_rets/agents/admin_edit_bio.html.erb
caboose-rets-0.0.3 app/views/caboose_rets/agents/admin_edit_bio.html.erb
caboose-rets-0.0.2 app/views/caboose_rets/agents/admin_edit_bio.html.erb