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 @ 1260:b18f581b260a

History | View | Annotate | Download (1 KB)

1 1235:775d89567f41 chris
<%= labelled_fields_for :project, project do |f| -%>
2 728:cc4d3d842171 luis
<div>
3 928:2187198b6209 luis
  <p id="project_tags"><%= f.text_field :tag_list, :label => :tags, :size => 60, :class => 'hol' %>
4 1242:57d35f2f9909 luis
    <em class="info"><%= l(:text_tags_info).html_safe %></em>
5 928:2187198b6209 luis
  </p>
6 1260:b18f581b260a luis
  <div id="project_tag_candidates" class="autocomplete" style="margin-top: 0;"></div>
7 1244:a3ed5c4d90f0 luis
  <%= 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 728:cc4d3d842171 luis
</div>
26 1235:775d89567f41 chris
<% end -%>