
<div id="left">

<div id="addtagdiv" style="display:none">
<div class="blue">Add Tag</div>
<div class="articles">
<%= form_remote_tag( :update => 'tags_list',
                     :url => { :action => :add_tag },
                     :position => :top,
                     :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 %>
</div>
</div>

<script type="text/javascript">
$('addtagdiv').style.display = 'block';
</script>

<%= start_form_tag :action => 'fcreate' %>
<div class="blue">Tags</div>
<div class="articles">
<ul id="tags_list">
<% for tag in @tags %>
<li><label for="<%= tag.id %>"><input type="checkbox" id="<%= tag.id %>" name="tag_ids[]" value="<%= tag.id %>"><%= tag.name %></label></li>
<% end %>
</ul>
</div>

<div class="blue">Show in Menu</div>
<div class="articles">
<ul id="show_in_menu">
<li><label for="page_show_in_menu"><%= check_box('page', 'show_in_menu') %></label></li>
</ul>
</div>


<div class="blue">Go To</div>
<div class="articles">
<%= link_to 'Back', :action => 'list' %>
</div>

</div>

<div id="content">
<div class="red">Actions</div>
<div class="articles">
    <%= submit_tag 'Create', :class => 'submit' %>
  </div>
  <%= render :partial => 'fform' %>
  <div class="red">Actions</div>
  <div class="articles">
    <%= submit_tag 'Create', :class => 'submit' %>
  </div>

</div>
<%= end_form_tag %>


<%= observe_field("ta2", 
        :frequency => 2, 
        :update => "toolbar2_preview",
        :url => { :action => "preview" },
        :with => "'name=' + escape($('cawko_title').value) +'&text_filter=' + escape($('page_text_filter').value) +'&body=' + escape(value)") %>