Revision 1391:8580d1d1150e plugins/redmine_bibliography
| plugins/redmine_bibliography/app/views/publications/edit.html.erb | ||
|---|---|---|
| 1 | 1 |
<% content_for :header_tags do %> |
| 2 |
<%= javascript_include_tag 'authors', :plugin => 'redmine_bibliography' %> |
|
| 3 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> |
|
| 4 |
<%= javascript_tag "$(document).ready(function() { $('#publication_bibtex_entry_attributes_entry_type').trigger('change'); });" %>
|
|
| 2 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' -%> |
|
| 3 |
<%= javascript_include_tag 'bibliography', :plugin => 'redmine_bibliography' -%> |
|
| 4 |
<%= javascript_include_tag 'authors', :plugin => 'redmine_bibliography' -%> |
|
| 5 |
|
|
| 6 |
<%= javascript_include_tag 'edit_publication', :plugin => 'redmine_bibliography' -%> |
|
| 7 |
|
|
| 8 |
<%= javascript_tag "$('#publication_bibtex_entry_attributes_entry_type').live('change', function() {
|
|
| 9 |
$this = $(this); |
|
| 10 |
$.ajax({
|
|
| 11 |
type: 'get', |
|
| 12 |
url: '#{url_for(:controller => :publications, :action => :show_bibtex_fields)}',
|
|
| 13 |
data: {
|
|
| 14 |
value: $this.val() |
|
| 15 |
}, |
|
| 16 |
dataType: 'script' |
|
| 17 |
}); return false; });" -%> |
|
| 18 |
|
|
| 5 | 19 |
<% end %> |
| 6 | 20 |
|
| 21 |
<%= error_messages_for 'publication' %> |
|
| 22 |
|
|
| 7 | 23 |
<h2><%=l(:label_publication_show)%></h2> |
| 8 | 24 |
|
| 9 | 25 |
<%= labelled_form_for @publication, :url => { :project_id => @project, :action => :update } do |f| -%>
|
| 10 |
<%= render :partial => 'form', :locals => { :f => f } %>
|
|
| 11 | 26 |
|
| 12 |
<div style="clear:both"></div> |
|
| 13 |
<%= f.submit %> |
|
| 27 |
<%= render :partial => 'form', :locals => { :f => f } %>
|
|
| 28 |
|
|
| 29 |
<div style="clear:both"></div> |
|
| 30 |
<%= f.submit %> |
|
| 14 | 31 |
<% end %> |
| 32 |
|
|
| 15 | 33 |
<p> |
| 16 |
<%= link_to l(:label_publication_show), { :controller => "publications", :action => "show", :id => @publication, :project_id => @project_id } %> |
|
|
| 17 |
<%= link_to l(:label_publication_index), { :controller => "publications", :action => "index", :project_id => @project } %>
|
|
| 34 |
<%= link_to l(:label_publication_show), { :controller => "publications", :action => "show", :id => @publication, :project_id => @project_id } %> |
|
|
| 35 |
<%= link_to l(:label_publication_index), { :controller => "publications", :action => "index", :project_id => @project } %>
|
|
| 18 | 36 |
</p> |
| 19 | 37 |
|
| plugins/redmine_bibliography/app/views/publications/new.html.erb | ||
|---|---|---|
| 1 | 1 |
<% content_for :header_tags do %> |
| 2 | 2 |
<%= javascript_include_tag 'authors', :plugin => 'redmine_bibliography' %> |
| 3 | 3 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> |
| 4 |
<%= javascript_include_tag 'bibliography', :plugin => 'redmine_bibliography' -%> |
|
| 5 |
<%= javascript_include_tag 'new_publication', :plugin => 'redmine_bibliography' -%> |
|
| 6 |
<%= javascript_tag " |
|
| 7 |
$('#publication_bibtex_entry_attributes_entry_type').live('change', function() {
|
|
| 8 |
$this = $(this); |
|
| 9 |
$.ajax({
|
|
| 10 |
type: 'get', |
|
| 11 |
url: '#{url_for(:controller => :publications, :action => :show_bibtex_fields)}',
|
|
| 12 |
data: {
|
|
| 13 |
value: $this.val() |
|
| 14 |
}, |
|
| 15 |
dataType: 'script' |
|
| 16 |
}); |
|
| 17 |
return false; |
|
| 18 |
});"-%> |
|
| 19 |
|
|
| 4 | 20 |
<% end %> |
| 5 | 21 |
|
| 22 |
<%= error_messages_for 'publication' %> |
|
| 23 |
|
|
| 6 | 24 |
<h2><%=l(:label_publication_new)%></h2> |
| 7 | 25 |
|
| 8 | 26 |
<%= labelled_form_for @publication, :url => { :project_id => @project, :action => :create } do |f| -%>
|
| 27 |
|
|
| 9 | 28 |
<%= render :partial => 'form', :locals => { :f => f } %>
|
| 29 |
|
|
| 10 | 30 |
<div style="clear:both"></div> |
| 11 | 31 |
<%= f.submit %> |
| 12 | 32 |
<% end %> |
Also available in: Unified diff