Revision 445:77f88379115a vendor/plugins/redmine_bibliography/app/views
| vendor/plugins/redmine_bibliography/app/views/publications/_edit.html.erb | ||
|---|---|---|
| 1 |
<% form_for @publication do |f| -%> |
|
| 2 |
<%= f.error_messages %> |
|
| 3 |
<p> |
|
| 4 |
<%= f.label :title, l(:title) %> <%= f.text_field :title %> |
|
| 5 |
</p> |
|
| 6 |
|
|
| 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> |
|
| 13 |
<%- end -%> |
|
| 14 |
|
|
| 15 |
<% f.fields_for :bibtex_entry do |bib| -%> |
|
| 16 |
<p> |
|
| 17 |
<%= bib.label :year, l(:year) %> <%= bib.text_field :year %> |
|
| 18 |
</p> |
|
| 19 |
<p> |
|
| 20 |
<%= bib.label :chapter, l(:chapter) %> <%= bib.text_field :chapter %> |
|
| 21 |
</p> |
|
| 22 |
<p> |
|
| 23 |
<%= bib.label :editor, l(:editor) %> <%= bib.text_field :editor %> |
|
| 24 |
</p> |
|
| 25 |
<p> |
|
| 26 |
<%= bib.label :booktitle, l(:booktitle) %> <%= bib.text_field :booktitle %> |
|
| 27 |
</p> |
|
| 28 |
<p> |
|
| 29 |
<%= bib.label :publisher, l(:publisher) %> <%= bib.text_field :publisher %> |
|
| 30 |
</p> |
|
| 31 |
<p> |
|
| 32 |
<%= bib.label :pages, l(:pages) %> <%= bib.text_field :pages %> |
|
| 33 |
</p> |
|
| 34 |
<% end -%> |
|
| 35 |
|
|
| 36 |
<%= f.submit %> |
|
| 37 |
|
|
| 38 |
<% end -%> |
|
| vendor/plugins/redmine_bibliography/app/views/publications/edit.html.erb | ||
|---|---|---|
| 2 | 2 |
|
| 3 | 3 |
<%= render :partial => 'edit' %> |
| 4 | 4 |
|
| 5 |
|
|
| 6 | 5 |
<p> |
| 7 | 6 |
<%= link_to :show %></p> |
| 8 | 7 |
|
| vendor/plugins/redmine_bibliography/app/views/publications/new.html.erb | ||
|---|---|---|
| 1 | 1 |
<h1>New Publication</h1> |
| 2 | 2 |
|
| 3 | 3 |
<%= render :partial => 'edit' %> |
| 4 |
|
|
| vendor/plugins/redmine_bibliography/app/views/publications/show.html.erb | ||
|---|---|---|
| 1 | 1 |
<h2>Publication Details</h2> |
| 2 | 2 |
<h4>Title</h4> |
| 3 |
<%= @publication.title %> |
|
| 3 |
<%= h @publication.title %>
|
|
| 4 | 4 |
|
| 5 | 5 |
<h4>Authors</h4> |
| 6 | 6 |
<% @publication.authors.each do |author| %> |
| 7 |
<%= author.name %> <br /> |
|
| 7 |
<%= h author.name %> <br />
|
|
| 8 | 8 |
<% end %> |
| 9 | 9 |
<br /> |
| 10 | 10 |
|
| 11 |
<%- if @publication.bibtex_entry != nil -%> |
|
| 11 | 12 |
<% @publication.bibtex_entry.attributes.each do |field| %> |
| 12 | 13 |
<% if field[1] != nil %> |
| 13 | 14 |
<h4><%= field[0] %></h4> |
| 14 | 15 |
<%= @publication.bibtex_entry.attributes[field[0]] unless field[1] == nil %> |
| 15 | 16 |
<br /> |
| 16 |
<% end %> |
|
| 17 |
<% end %> |
|
| 17 |
<%- end -%> |
|
| 18 |
<%- end -%> |
|
| 19 |
<%- end -%> |
|
| 18 | 20 |
|
| 19 | 21 |
|
| 20 |
|
|
Also available in: Unified diff