<div class="overlay_blue">Name:</div>
<div id="name" class="overlay_articles">
<%= overlay.name -%>
</div>

<div class="overlay_blue">Body:</div>
<div class="overlay_articles">
<div id="edit_body">
  <%= overlay.body_html %>
</div>
</div>

<%= in_place_editor('edit_body', :url => { :action => 'edit_overlay_body', :id => overlay.id}, :load_text_url => { :action => 'view_overlay_body', :id => overlay.id}, :rows => 10, :cols => 10) %>

<div class="overlay_blue">Tags:</div>
<div id="tag" class="overlay_articles">
<% for tag in overlay.tags %>
<%= link_to tag.name, :controller => 'tags', :action => 'show', :id => tag -%>
<% end %>
</div>

<div class="overlay_blue">Add a Tag</div>
<div class="overlay_articles">
<%= form_remote_tag( :update => 'tag',
                     :url => { :action => :add_tag_overlay, :id => overlay.id },
                     :loading => "tagLoading()",
                     :complete => "tagComplete()" ) %>
<%= text_field_tag( 'new_tag', '', { :size => 20 , :id => 'add_tag_input'} ) %> 
<%= submit_tag("Add", :id => 'add_tag_button') %>
<%= end_form_tag %>
Note: to add an existing tag, please edit this page.
</div>

<div class="overlay_blue">Updated at:</div>
<div class="overlay_articles">
<%= overlay.updated_at -%>
</div>

<div class="overlay_blue">Created at:</div>
<div class="overlay_articles">
<%= overlay.created_at -%>
</div>

<div class="overlay_blue">Actions:</div>
<div class="overlay_articles">
<%= link_to "Show", :action => 'show', :id => overlay %>
<%= link_to "Edit", :action => 'fedit', :id => overlay %>
<%= link_to "Delete", :action => 'confirm_delete', :id => overlay %>
</div>

