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_bibliography / app / views / publications / _add_project_form.html.erb @ 1317:2805873c0147

History | View | Annotate | Download (1.3 KB)

1 1317:2805873c0147 luis
<%= form_for(:publication,
2
            :remote => true,
3
            :url => {:controller => 'publications', :action => 'add_project', :id => @publication, :project_id => @project},
4
            :method => :post,
5
            :html => { :id => 'add_project_form' },
6
            :loading => "$('project-add-submit').disable()",
7
            :complete => "$('project-add-submit').enable()") do |f| %>
8
9
              <fieldset><legend><%=l(:label_add_project_to_publication)%></legend>
10
                <p>
11
                  <%= label_tag "project_search", l(:label_project_search) %><%= text_field_tag 'project_search', nil %>
12
                      </p>
13 464:fbdfec975bfa luis
14 1317:2805873c0147 luis
                 observe_field(:project_search,
15
                 :frequency => 0.5,
16
                 :update => :projects,
17
                 :url => { :controller => 'publications', :action => 'autocomplete_for_project', :id => @publication },
18
                 :with => 'q')
19
20 464:fbdfec975bfa luis
21 1317:2805873c0147 luis
                <div id="projects">
22
                  <% if params[:q] && params[:q].length > 1 %>
23
                    <%= projects_check_box_tags 'project[project_ids][]', @projects %>
24
                  <% end %>
25
                </div>
26 464:fbdfec975bfa luis
27 1317:2805873c0147 luis
                <p><%= submit_tag l(:button_add), :id => 'project-add-submit' %></p>
28
              </fieldset>
29 464:fbdfec975bfa luis
  <% end %>