This repository has been archived on 2024-12-01. You can view files and clone it, but cannot push or open issues or pull requests.
redmine_rodax_crm/app/views/contacts/contacts_notes.html.erb
2012-01-03 16:18:32 +00:00

88 lines
2.6 KiB
Plaintext

<div class="filters">
<% if !@tag %>
<% form_tag(params, :id => "query_form") do %>
<%= hidden_field_tag('project_id', @project.to_param) if @project %>
<h2>
<span class="scope_title">
<%= l(:label_contact_note_plural) %>
</span>
<span class="live_search">
<%= label_tag :search_note, l(:label_search), :id => "search_overlabel" %>
<%= text_field_tag(:search_note, params[:search_note], :autocomplete => "off", :size => "35", :class => "live_search_field", :onfocus => "Element.hide('search_overlabel'); return false;", :onblur => "if (this.value == '') {Element.show('search_overlabel');}" ) %>
<%= observe_field("search_note",
:frequency => 1,
:update => 'contacts_notes',
:url => {:controller => 'contacts', :action => 'contacts_notes', :project_id => @project },
:with => "Form.serialize('query_form')") %>
</span>
</h2>
<% if false %>
<fieldset id="filters" class="collapsible collapsed">
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
<div style="display: none;">
<p>
<%= label_tag l(:label_author) + " " %>
<%= select_tag :note_author_id, options_for_select(Note.available_authors(@project).collect{|u| [u.name, u.id]}.insert(0, [""]), params[:note_author_id]) %>
</p>
</div>
</fieldset>
<p class="buttons hide-when-print">
<%= link_to_remote l(:button_apply),
{ :url => {},
:update => "deal_list",
:with => "Form.serialize('query_form')"
}, :class => 'icon icon-checked' %>
<%= link_to l(:button_clear),
{:project_id => @project },
:method => :get,
:update => "deal_list",
:class => 'icon icon-reload' %>
</p>
<% end %>
<% end %>
<% else %>
<h2 class="scope_title"><%= "#{l(:label_contact_tag)}(#{@notes_pages.item_count}): #{render(:partial => "tags_item", :collection => @tag, :locals => {:is_note => false} )}" %> </h2>
<% end %>
</div>
<div id="contacts_notes">
<%= render :partial => 'notes/notes_list' %>
</div>
<% content_for :sidebar do %>
<%= render :partial => 'common/sidebar' %>
<h3><%= l(:label_tags_plural) %></h3>
<div id="tags">
<%= render :partial => "tags_item", :collection => @tags, :locals => {:is_note => true, :multiple => false} %>
</div>
<%= render :partial => 'common/recently_viewed' %>
<% end %>
<% content_for(:header_tags) do %>
<%= stylesheet_link_tag :contacts, :plugin => 'redmine_contacts' %>
<%= stylesheet_link_tag :contacts_sidebar, :plugin => 'redmine_contacts' %>
<% end %>