Revision 458:f2288bb384bb vendor/plugins/redmine_bibliography/app/views/publications
| vendor/plugins/redmine_bibliography/app/views/publications/_edit.html.erb | ||
|---|---|---|
| 1 |
<% form_for @publication do |f| -%> |
|
| 1 |
<% form_for @publication, :url => { :project_id => @project_id, :action => :create } do |f| -%>
|
|
| 2 |
|
|
| 2 | 3 |
<%= f.error_messages %> |
| 3 | 4 |
|
| 4 | 5 |
<p><%= f.label :title, l(:title) %> <%= f.text_field :title %></p> |
| ... | ... | |
| 14 | 15 |
<%= render :partial => 'bibtex_fields', :locals => { :f => builder} %>
|
| 15 | 16 |
<%- end -%> |
| 16 | 17 |
|
| 18 |
|
|
| 17 | 19 |
<%= f.submit %> |
| 18 | 20 |
|
| 19 | 21 |
<% end -%> |
| vendor/plugins/redmine_bibliography/app/views/publications/index.html.erb | ||
|---|---|---|
| 1 |
<div class="contextual"> |
|
| 2 |
<% if User.current.allowed_to?(:add_publication, @project) %> |
|
| 3 |
<%= link_to l(:label_publication_new), {:controller => 'publications', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
|
|
| 4 |
<% end %> |
|
| 1 |
<div class="contextual"> |
|
| 2 |
<%= link_to l(:label_publication_new), {:controller => 'publications', :action => 'new', :project_id => @project}, :class => 'icon icon-add' %>
|
|
| 5 | 3 |
</div> |
| 6 | 4 |
|
| 7 | 5 |
<div class="splitcontentleft"> |
Also available in: Unified diff