Revision 386:8ed0a0a268e0 vendor/plugins
| vendor/plugins/redmine_bibliography/app/controllers/publications_controller.rb | ||
|---|---|---|
| 34 | 34 |
def new |
| 35 | 35 |
session[:publication_params] ||= {}
|
| 36 | 36 |
@publication = Publication.new |
| 37 |
@publication.current_step = session[:publication_step] |
|
| 37 | 38 |
|
| 38 | 39 |
if request.post? |
| 39 | 40 |
parse_bibtex_text |
| vendor/plugins/redmine_bibliography/app/views/publications/_new_bibtex_step.html.erb | ||
|---|---|---|
| 5 | 5 |
<%= f.text_field :title %> |
| 6 | 6 |
</p> |
| 7 | 7 |
|
| 8 |
|
|
| 9 | 8 |
<p> |
| 10 |
|
|
| 11 |
<%=label_tag :bibtex_entry %> |
|
| 12 |
<%=text_area_tag :bibtex_entry%> |
|
| 13 |
|
|
| 9 |
<%=label_tag :bibtex_entry %> |
|
| 10 |
<%=text_area_tag :bibtex_entry%> |
|
| 14 | 11 |
</p> |
| 15 | 12 |
|
| 16 | 13 |
|
| vendor/plugins/redmine_bibliography/app/views/publications/new.html.erb | ||
|---|---|---|
| 1 | 1 |
<h1>New Publication</h1> |
| 2 | 2 |
|
| 3 |
|
|
| 4 |
<% form_for @publication do |f| %> |
|
| 3 |
<% form_for :publication do |f| %> |
|
| 5 | 4 |
<% f.error_messages %> |
| 6 | 5 |
|
| 7 |
<% render :partial => "#{@publication.current_step}_bibtex_step", :f => f %>
|
|
| 6 |
<% render :partial => "#{@publication.current_step}_bibtex_step", :locals => { :f => f } %>
|
|
| 8 | 7 |
|
| 9 | 8 |
<%= submit_tag l(:button_submit) %> |
| 10 | 9 |
|
| 11 | 10 |
<% end %> |
| 12 | 11 |
|
| 13 |
|
|
| 14 |
|
|
Also available in: Unified diff