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 / _form.html.erb @ 1377:f0da42a09a3c

History | View | Annotate | Download (1.39 KB)

1
<%= error_messages_for 'publication' %>
2
    <%= javascript_tag "
3
        $('#publication_bibtex_entry_attributes_entry_type').live('change', function() {
4
            $this = $(this);
5

6
            $.ajax({
7
                type: 'get',
8
                url: '#{url_for(:controller => :publications, :action => :show_bibtex_fields)}',
9
                data: {
10
                    value: $this.val()
11
                },
12
                dataType: 'script'
13
            });
14

15
            return false;
16
        });"
17
    -%>
18

    
19
<h3><%= f.text_field :title, :required => true, :size => 70 %></h3>
20

    
21
<div class="splitcontentleft">
22
  <h3><%= l(:label_publication_other_details) %></h3>
23
  <div class="box tabular">
24
    <%= f.fields_for :bibtex_entry do |builder| -%>
25
      <%= render :partial => 'bibtex_fields', :locals => { :f => builder}  %>
26
    <%- end -%>
27

    
28
    <p>
29
      <%= f.text_field :external_url, :size => 70 %>
30
      <br />
31
      <em><%= l(:text_external_url) %></em>
32
    </p>
33
    <p>
34
      <%= f.text_field :doi, :size => 70 %>
35
      <br />
36
      <em><%= l(:text_doi) %></em>
37
    </p>
38

    
39
  </div>
40
</div>
41

    
42
<div class="splitcontentright">
43
  <h3><%= l(:authors) %></h3>
44
  <div class="box tabular">
45
    <%= f.fields_for :authorships do |builder| -%>
46
      <%= render "authorship_fields", :f => builder %>
47
    <%- end -%>
48
    <%= link_to_add_author_fields l(:label_add_an_author), f, :authorships, params[:action] %>
49
  </div>
50
</div>
51

    
52