Revision 449:d643b4186e4c vendor/plugins/redmine_bibliography/app

View differences:

vendor/plugins/redmine_bibliography/app/views/publications/_authors_fields.html.erb
1
<p>
2
  <%= f.label :name, l("name") %> <%= f.text_field :name %>            
3
</p>
4
<%= f.check_box :_destroy %>
5
<%= f.label :_destroy, l("remove") %>
6
  
7

  
vendor/plugins/redmine_bibliography/app/views/publications/_bibtex_fields.html.erb
1
    <p> 
2
      <%= f.label :year, l(:year) %>  <%= f.text_field :year %>  
3
    </p>  
4
    <p>   
5
      <%= f.label :chapter, l(:chapter) %>  <%= f.text_field :chapter %>  
6
    </p>  
7
    <p>   
8
      <%= f.label :editor, l(:editor) %>  <%= f.text_field :editor %>  
9
    </p>  
10
    <p>   
11
      <%= f.label :booktitle, l(:booktitle) %>  <%= f.text_field :booktitle %>  
12
    </p>  
13
    <p>   
14
      <%= f.label :publisher, l(:publisher) %>  <%= f.text_field :publisher %>  
15
    </p>  
16
    <p>   
17
      <%= f.label :pages, l(:pages) %>  <%= f.text_field :pages %>  
18
    </p>
vendor/plugins/redmine_bibliography/app/views/publications/_edit.html.erb
1 1
<% form_for @publication do |f| -%>
2 2
  <%= f.error_messages %>
3
  <p>
4
    <%= f.label :title, l(:title) %>  <%= f.text_field :title %>  
5
  </p>
6 3
  
7
  <h3><%= l(:authors) %></h3>
8
  
9
  <%- f.fields_for :authors do |author| -%>
10
    <p>
11
      <%= author.label :name, l("name") %> <%= author.text_field :name %>            
12
    </p>
4
  <p><%= f.label :title, l(:title) %>  <%= f.text_field :title %></p>
5

  
6
  <h3><%= l(:authors) %></h3>  
7
  <%- f.fields_for :authors do |builder| -%>
8
    <%= render :partial => 'authors_fields', :locals => { :f => builder} %>
13 9
  <%- end -%>
14
  
15
  
10
    
16 11
  <h3>Other Details</h3>
17
  
18
  <% f.fields_for :bibtex_entry do |bib| -%>
19
    <p> 
20
      <%= bib.label :year, l(:year) %>  <%= bib.text_field :year %>  
21
    </p>
22
    <p> 
23
      <%= bib.label :chapter, l(:chapter) %>  <%= bib.text_field :chapter %>  
24
    </p>
25
    <p>  
26
      <%= bib.label :editor, l(:editor) %>  <%= bib.text_field :editor %>  
27
    </p>
28
    <p> 
29
      <%= bib.label :booktitle, l(:booktitle) %>  <%= bib.text_field :booktitle %>  
30
    </p>
31
    <p> 
32
      <%= bib.label :publisher, l(:publisher) %>  <%= bib.text_field :publisher %>  
33
    </p>
34
    <p> 
35
      <%= bib.label :pages, l(:pages) %>  <%= bib.text_field :pages %>  
36
    </p>
37
  <% end -%>
12

  
13
  <% f.fields_for :bibtex_entry do |builder| -%>
14
    <%= render :partial => 'bibtex_fields', :locals => { :f => builder}  %>
15
  <%- end -%>
38 16

  
39 17
  <%= f.submit %>
40 18

  

Also available in: Unified diff