To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / plugins / redmine_tags / app / views / projects / _tags_form.html.erb @ 1264:bc7baaca92a9

History | View | Annotate | Download (1 KB)

1
<%= labelled_fields_for :project, project do |f| -%>
2
<div>
3
  <p id="project_tags"><%= f.text_field :tag_list, :label => :tags, :size => 60, :class => 'hol' %>
4
    <em class="info"><%= l(:text_tags_info).html_safe %></em>
5
  </p>
6
  <div id="project_tag_candidates" class="autocomplete" style="margin-top: 0;"></div>
7
  <%= stylesheet_link_tag 'jquery.tagit.css', :plugin => 'redmine_tags' %>
8
  <%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %>
9
  <%= javascript_include_tag 'tag-it', :plugin => 'redmine_tags' %>
10

    
11
  <%= javascript_tag "$('#project_tag_list').tagit({
12
            tagSource: function(search, showChoices) {
13
            var that = this;
14
            $.ajax({
15
              url: '#{url_for(:controller => 'auto_completes', :action => 'project_tags')}',
16
              data: {q: search.term},
17
              success: function(choices) {
18
              showChoices(that._subtractArray(jQuery.parseJSON(choices), that.assignedTags()));
19
            }
20
          });
21
        },
22
    });
23
" %>
24

    
25
</div>
26
<% end -%>