Revision 1376:6ba24edae331 plugins/redmine_bibliography/app/views/publications
| plugins/redmine_bibliography/app/views/publications/_form.html.erb | ||
|---|---|---|
| 1 | 1 |
<%= error_messages_for 'publication' %> |
| 2 |
<%= javascript_tag " |
|
| 3 |
$('#publication_bibtex_entry_attributes_entry_type').live('change', function() {
|
|
| 4 |
$this = $(this); |
|
| 5 |
|
|
| 6 |
$.ajax({
|
|
| 7 |
type: 'get', |
|
| 8 |
url: '#{url_for(:controller => :publications, :action => :show_bibtex_fields)}',
|
|
| 9 |
data: {
|
|
| 10 |
value: $this.val() |
|
| 11 |
}, |
|
| 12 |
dataType: 'script' |
|
| 13 |
}); |
|
| 14 |
|
|
| 15 |
return false; |
|
| 16 |
});" |
|
| 17 |
-%> |
|
| 2 | 18 |
|
| 3 | 19 |
<h3><%= f.text_field :title, :required => true, :size => 70 %></h3> |
| 4 | 20 |
|
| plugins/redmine_bibliography/app/views/publications/edit.html.erb | ||
|---|---|---|
| 1 | 1 |
<% content_for :header_tags do %> |
| 2 | 2 |
<%= javascript_include_tag 'authors', :plugin => 'redmine_bibliography' %> |
| 3 |
<%= javascript_include_tag 'bibliography', :plugin => 'redmine_bibliography' %> |
|
| 4 | 3 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> |
| 4 |
<%= javascript_tag "$(document).ready(function() { $('#publication_bibtex_entry_attributes_entry_type').trigger('change'); });" %>
|
|
| 5 | 5 |
<% end %> |
| 6 | 6 |
|
| 7 | 7 |
<h2><%=l(:label_publication_show)%></h2> |
| ... | ... | |
| 16 | 16 |
<%= link_to l(:label_publication_show), { :controller => "publications", :action => "show", :id => @publication, :project_id => @project_id } %> |
|
| 17 | 17 |
<%= link_to l(:label_publication_index), { :controller => "publications", :action => "index", :project_id => @project } %>
|
| 18 | 18 |
</p> |
| 19 |
|
|
| 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 |
<%= javascript_include_tag 'bibliography', :plugin => 'redmine_bibliography' %> |
|
| 4 | 3 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %> |
| 5 | 4 |
<% end %> |
| 6 | 5 |
|
| plugins/redmine_bibliography/app/views/publications/show.html.erb | ||
|---|---|---|
| 1 |
<%= javascript_include_tag 'order_authorships', :plugin => 'redmine_bibliography' %> |
|
| 1 |
<%= javascript_tag "$(document).ready(function(){
|
|
| 2 |
|
|
| 3 |
$('#authorships').sortable({
|
|
| 4 |
axis: 'y', |
|
| 5 |
dropOnEmpty: false, |
|
| 6 |
handle: '.handle', |
|
| 7 |
cursor: 'crosshair', |
|
| 8 |
items: 'li', |
|
| 9 |
opacity: 0.4, |
|
| 10 |
scroll: true, |
|
| 11 |
update: function(){
|
|
| 12 |
$.ajax({
|
|
| 13 |
type: 'post', |
|
| 14 |
data: $('#authorships').sortable('serialize'),
|
|
| 15 |
dataType: 'script', |
|
| 16 |
complete: function(request){
|
|
| 17 |
$('#authorship').effect('highlight');
|
|
| 18 |
}, |
|
| 19 |
url: '#{url_for(:controller => :authorships, :action => :sort)}'});
|
|
| 20 |
} |
|
| 21 |
}); |
|
| 22 |
}); |
|
| 23 |
" -%> |
|
| 2 | 24 |
|
| 3 | 25 |
<h2><%=l(:label_publication_show)%></h2> |
| 4 | 26 |
|
Also available in: Unified diff