Revision 1390:ac480b6a13cf
| plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb | ||
|---|---|---|
| 1 |
<%- content_for :header_tags do -%> |
|
| 2 |
<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' -%> |
|
| 3 |
<%= javascript_include_tag 'bibliography', :plugin => 'redmine_bibliography' -%> |
|
| 4 |
<%= javascript_tag "$('.author_save_btn').live('click', disable_fields);" -%>
|
|
| 5 |
<%= javascript_tag "$('.author_edit_btn').live('click', enable_fields);" -%>
|
|
| 6 |
<%- end -%> |
|
| 7 |
|
|
| 8 | 1 |
<div id="authors" class="fields"> |
| 9 | 2 |
<div id="<%= form_tag_id( f.object_name, :search_author ) %>" > |
| 10 | 3 |
<p> |
| plugins/redmine_bibliography/app/views/publications/_form.html.erb | ||
|---|---|---|
| 1 |
<%= error_messages_for 'publication' %> |
|
| 2 |
<%= javascript_tag " |
|
| 3 |
$('#publication_bibtex_entry_attributes_entry_type').live('change', function() {
|
|
| 4 |
$this = $(this); |
|
| 5 |
$.ajax({
|
|
| 6 |
type: 'get', |
|
| 7 |
url: '#{url_for(:controller => :publications, :action => :show_bibtex_fields)}',
|
|
| 8 |
data: {
|
|
| 9 |
value: $this.val() |
|
| 10 |
}, |
|
| 11 |
dataType: 'script' |
|
| 12 |
}); |
|
| 13 |
return false; |
|
| 14 |
});" |
|
| 15 |
-%> |
|
| 16 |
|
|
| 17 | 1 |
<h3><%= f.text_field :title, :required => true, :size => 70 %></h3> |
| 18 | 2 |
|
| 19 | 3 |
<div class="splitcontentleft"> |
Also available in: Unified diff