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 @ 1324:2e54ae6ab02f
History | View | Annotate | Download (1.22 KB)
| 1 | 1324:2e54ae6ab02f | luis | <%= form_for(:publication,
|
|---|---|---|---|
| 2 | :remote => true,
|
||
| 3 | :url => {:controller => 'publications', :action => 'add_project', :id => @publication, :project_id => @project},
|
||
| 4 | 1317:2805873c0147 | luis | :method => :post,
|
| 5 | 1324:2e54ae6ab02f | luis | :html => { :id => 'add_project_form' },
|
| 6 | 1317:2805873c0147 | luis | :loading => "$('project-add-submit').disable()",
|
| 7 | :complete => "$('project-add-submit').enable()") do |f| %>
|
||
| 8 | 1324:2e54ae6ab02f | luis | |
| 9 | 1317:2805873c0147 | luis | <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 | 1324:2e54ae6ab02f | luis | <%= 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 | 1317:2805873c0147 | luis | <% if params[:q] && params[:q].length > 1 %>
|
| 20 | <%= projects_check_box_tags 'project[project_ids][]', @projects %>
|
||
| 21 | <% end %>
|
||
| 22 | </div>
|
||
| 23 | 464:fbdfec975bfa | luis | |
| 24 | 1324:2e54ae6ab02f | luis | <p><%= submit_tag l(:button_add), :id => 'project-add-submit' %></p> |
| 25 | 1317:2805873c0147 | luis | </fieldset>
|
| 26 | 464:fbdfec975bfa | luis | <% end %> |