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 @ 1244:a3ed5c4d90f0

History | View | Annotate | Download (1016 Bytes)

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
    <br />
5 1242:57d35f2f9909 luis
    <em class="info"><%= l(:text_tags_info).html_safe %></em>
6 928:2187198b6209 luis
  </p>
7 728:cc4d3d842171 luis
  <div id="project_tag_candidates" class="autocomplete"></div>
8 1244:a3ed5c4d90f0 luis
  <%= stylesheet_link_tag 'jquery.tagit.css', :plugin => 'redmine_tags' %>
9
  <%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %>
10
  <%= javascript_include_tag 'tag-it', :plugin => 'redmine_tags' %>
11
12
  <%= javascript_tag "$('#project_tag_list').tagit({
13
            tagSource: function(search, showChoices) {
14
            var that = this;
15
            $.ajax({
16
              url: '#{url_for(:controller => 'auto_completes', :action => 'project_tags')}',
17
              data: {q: search.term},
18
              success: function(choices) {
19
              showChoices(that._subtractArray(jQuery.parseJSON(choices), that.assignedTags()));
20
            }
21
          });
22
        },
23
    });
24
" %>
25
26 728:cc4d3d842171 luis
</div>
27 1235:775d89567f41 chris
<% end -%>