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 / new.html.erb @ 1440:7465cceb8dfc

History | View | Annotate | Download (1.23 KB)

1
<% content_for :header_tags do %>
2
    <%= javascript_include_tag 'authors', :plugin => 'redmine_bibliography' %>
3
    <%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
4
    <%= javascript_include_tag 'bibliography', :plugin => 'redmine_bibliography' -%>
5
    <%= javascript_include_tag 'new_publication', :plugin => 'redmine_bibliography' -%>
6

    
7
    <%= javascript_tag "
8
      $('#publication_bibtex_entry_attributes_entry_type').live('change', function() {
9
          $this = $(this);
10
          $.ajax({
11
              type: 'get',
12
              url: '#{url_for(:controller => :publications, :action => :show_bibtex_fields)}',
13
              data: {
14
                  value: $this.val()
15
              },
16
              dataType: 'script'
17
          });
18
          return false;
19
      });"-%>
20

    
21
  <%= javascript_tag "authorship_autocomplete('#{url_for :controller => :publications, :action => :autocomplete_for_author}');" -%>
22

    
23
<% end %>
24

    
25
<%= error_messages_for 'publication' %>
26

    
27
<h2><%=l(:label_publication_new)%></h2>
28

    
29
<%= form_for @publication, :url => { :project_id  => @project, :action => :create } do |f| -%>
30

    
31
    <%= render :partial => 'form', :locals => { :f => f }  %>
32

    
33
    <div style="clear:both"></div>
34
    <%= f.submit %>
35
<% end %>