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 @ 1381:5b8bd53fd65c

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
            $.ajax({
6
                type: 'get',
7
                url: '#{url_for(:controller => :publications, :action => :show_bibtex_fields)}',
8
                data: {
9
                    value: $this.val()
10
                },
11
                dataType: 'script'
12
            });
13
            return false;
14
        });"
15
    -%>
16 610:e9274ba9c1b3 luis
17 615:c4ddb9531f4c chris
<h3><%= f.text_field :title, :required => true, :size => 70 %></h3>
18 545:a2c2b9f8380b luis
19 1059:5617e630bf26 luis
<div class="splitcontentleft">
20 615:c4ddb9531f4c chris
  <h3><%= l(:label_publication_other_details) %></h3>
21 610:e9274ba9c1b3 luis
  <div class="box tabular">
22 1274:5ea1a213c7a5 luis
    <%= f.fields_for :bibtex_entry do |builder| -%>
23 610:e9274ba9c1b3 luis
      <%= render :partial => 'bibtex_fields', :locals => { :f => builder}  %>
24
    <%- end -%>
25 658:65749e700af0 luis
26
    <p>
27
      <%= f.text_field :external_url, :size => 70 %>
28
      <br />
29
      <em><%= l(:text_external_url) %></em>
30
    </p>
31 1059:5617e630bf26 luis
    <p>
32
      <%= f.text_field :doi, :size => 70 %>
33
      <br />
34
      <em><%= l(:text_doi) %></em>
35
    </p>
36 658:65749e700af0 luis
37 610:e9274ba9c1b3 luis
  </div>
38 573:aed210f6095b chris
</div>
39 545:a2c2b9f8380b luis
40 615:c4ddb9531f4c chris
<div class="splitcontentright">
41 1059:5617e630bf26 luis
  <h3><%= l(:authors) %></h3>
42 615:c4ddb9531f4c chris
  <div class="box tabular">
43 1274:5ea1a213c7a5 luis
    <%= f.fields_for :authorships do |builder| -%>
44 615:c4ddb9531f4c chris
      <%= render "authorship_fields", :f => builder %>
45
    <%- end -%>
46 705:b6f9f005c0b6 luis
    <%= link_to_add_author_fields l(:label_add_an_author), f, :authorships, params[:action] %>
47 615:c4ddb9531f4c chris
  </div>
48
</div>
49 545:a2c2b9f8380b luis