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 / vendor / plugins / redmine_bibliography / app / views / publications / new.html.erb @ 461:841b2e40895d

History | View | Annotate | Download (1.2 KB)

1 329:4575b631f6ce luis
<h1>New Publication</h1>
2
3 461:841b2e40895d luis
4
5
<div class="splitcontentleft">
6
  <%= render :partial => 'edit' %>
7
</div>
8
9
10
<% projects = Project.active.find(:all, :limit => 100, :order => 'name ASC') - @publication.projects %>
11
12
<div class="splitcontentright">
13
14
  <% form_remote_for(:project, @project,
15
                     :url => {:controller => 'publication', :action => 'new', :id => @publication.id, :project_id => @project},
16
                     :method => :post,
17
                                                                           :loading => "$('project-add-submit').disable()",
18
                                                                           :complete => "$('project-add-submit').enable()") do |f| %>
19
20
      <fieldset><legend><%=l(:label_add_project_to_publication)%></legend>
21
22
              <p><%= label_tag "project_search", l(:label_project_search) %><%= text_field_tag 'project_search', nil %></p>
23
24
              <%= observe_field(:project_search,
25
               :frequency => 0.5,
26
               :update => :projects,
27
               :url => { :controller => 'publications', :action => 'autocomplete_for_project', :id => @publication, :project_id => @project},
28
               :with => 'q')
29
                %>
30
31
        <p><%= submit_tag l(:button_add), :id => 'project-add-submit' %></p>
32
33
34
      </fieldset>
35
  <% end %>
36
37
</div>