To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / plugins / redmine_tags / app / views / projects / _tags_form.html.erb @ 1259:94a6e3687c45
History | View | Annotate | Download (1016 Bytes)
| 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 |
<br /> |
| 5 |
<em class="info"><%= l(:text_tags_info).html_safe %></em> |
| 6 |
</p>
|
| 7 |
<div id="project_tag_candidates" class="autocomplete"></div> |
| 8 |
<%= 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 |
</div>
|
| 27 |
<% end -%>
|