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 @ 1376:6ba24edae331

History | View | Annotate | Download (1.39 KB)

1 1272:248631c56bda luis
<%= error_messages_for 'publication' %>
2 1376:6ba24edae331 luis
    <%= 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 610:e9274ba9c1b3 luis
19 615:c4ddb9531f4c chris
<h3><%= f.text_field :title, :required => true, :size => 70 %></h3>
20 545:a2c2b9f8380b luis
21 1059:5617e630bf26 luis
<div class="splitcontentleft">
22 615:c4ddb9531f4c chris
  <h3><%= l(:label_publication_other_details) %></h3>
23 610:e9274ba9c1b3 luis
  <div class="box tabular">
24 1274:5ea1a213c7a5 luis
    <%= f.fields_for :bibtex_entry do |builder| -%>
25 610:e9274ba9c1b3 luis
      <%= render :partial => 'bibtex_fields', :locals => { :f => builder}  %>
26
    <%- end -%>
27 658:65749e700af0 luis
28
    <p>
29
      <%= f.text_field :external_url, :size => 70 %>
30
      <br />
31
      <em><%= l(:text_external_url) %></em>
32
    </p>
33 1059:5617e630bf26 luis
    <p>
34
      <%= f.text_field :doi, :size => 70 %>
35
      <br />
36
      <em><%= l(:text_doi) %></em>
37
    </p>
38 658:65749e700af0 luis
39 610:e9274ba9c1b3 luis
  </div>
40 573:aed210f6095b chris
</div>
41 545:a2c2b9f8380b luis
42 615:c4ddb9531f4c chris
<div class="splitcontentright">
43 1059:5617e630bf26 luis
  <h3><%= l(:authors) %></h3>
44 615:c4ddb9531f4c chris
  <div class="box tabular">
45 1274:5ea1a213c7a5 luis
    <%= f.fields_for :authorships do |builder| -%>
46 615:c4ddb9531f4c chris
      <%= render "authorship_fields", :f => builder %>
47
    <%- end -%>
48 705:b6f9f005c0b6 luis
    <%= link_to_add_author_fields l(:label_add_an_author), f, :authorships, params[:action] %>
49 615:c4ddb9531f4c chris
  </div>
50
</div>
51 545:a2c2b9f8380b luis