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_bibliography / app / views / publications / _add_project_form.html.erb @ 1431:303b9be118d4
History | View | Annotate | Download (1.22 KB)
| 1 |
<%= 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 |
|
| 14 |
<%= javascript_tag "observeSearchfield('project_search', 'projects', '#{ escape_javascript url_for(:controller => 'publications',
|
| 15 |
:action => 'autocomplete_for_project',
|
| 16 |
:id => @publication.id) }')" %>
|
| 17 |
|
| 18 |
<div id="projects"> |
| 19 |
<% if params[:q] && params[:q].length > 1 %>
|
| 20 |
<%= projects_check_box_tags 'project[project_ids][]', @projects %>
|
| 21 |
<% end %>
|
| 22 |
</div>
|
| 23 |
|
| 24 |
<p><%= submit_tag l(:button_add), :id => 'project-add-submit' %></p> |
| 25 |
</fieldset>
|
| 26 |
<% end %>
|