To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / plugins / redmine_bibliography / app / views / publications / _form.html.erb @ 1380:fa92d13876d0
History | View | Annotate | Download (1.39 KB)
| 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 |
<h3><%= f.text_field :title, :required => true, :size => 70 %></h3> |
| 18 |
|
| 19 |
<div class="splitcontentleft"> |
| 20 |
<h3><%= l(:label_publication_other_details) %></h3> |
| 21 |
<div class="box tabular"> |
| 22 |
<%= f.fields_for :bibtex_entry do |builder| -%>
|
| 23 |
<%= render :partial => 'bibtex_fields', :locals => { :f => builder} %>
|
| 24 |
<%- end -%>
|
| 25 |
|
| 26 |
<p>
|
| 27 |
<%= f.text_field :external_url, :size => 70 %>
|
| 28 |
<br /> |
| 29 |
<em><%= l(:text_external_url) %></em> |
| 30 |
</p>
|
| 31 |
<p>
|
| 32 |
<%= f.text_field :doi, :size => 70 %>
|
| 33 |
<br /> |
| 34 |
<em><%= l(:text_doi) %></em> |
| 35 |
</p>
|
| 36 |
|
| 37 |
</div>
|
| 38 |
</div>
|
| 39 |
|
| 40 |
<div class="splitcontentright"> |
| 41 |
<h3><%= l(:authors) %></h3> |
| 42 |
<div class="box tabular"> |
| 43 |
<%= f.fields_for :authorships do |builder| -%>
|
| 44 |
<%= render "authorship_fields", :f => builder %>
|
| 45 |
<%- end -%>
|
| 46 |
<%= link_to_add_author_fields l(:label_add_an_author), f, :authorships, params[:action] %>
|
| 47 |
</div>
|
| 48 |
</div>
|
| 49 |
|
| 50 |
|