Revision 1051:ef882e222003 vendor/plugins/redmine_bibliography/app/views/publications

View differences:

vendor/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
    <%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>  
3
    <%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' %>
4 4
    <%= javascript_tag 'Event.observe(window, "load", function(e){show_required_bibtex_fields(' + @bibtype_fields.to_json + ')});' %>
5 5
<% end %>
6 6

  
vendor/plugins/redmine_bibliography/app/views/publications/new.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' %>
2
  <%= javascript_include_tag 'authors', :plugin => 'redmine_bibliography' -%>
3
  <!--<%= stylesheet_link_tag 'bibliography', :plugin => 'redmine_bibliography' -%>-->
4 4
<% end %>
5 5

  
6
<%= error_messages_for 'publication' %>
7

  
6 8
<h2><%=l(:label_publication_new)%></h2>
7 9

  
10
<div class="splitcontentleft">
8 11
  <p>To create a publication you can either parse a BibTeX entry or enter the publication details manually.<p>
9 12

  
10
  <%= render_tabs create_publication_tabs %>
13
    <%= render :partial => 'publications/new/bibtex' %>
11 14

  
15
 <!-- <%= render_tabs create_publication_tabs %> -->
16
</div>
17

  
18
<div class="splitcontentright">
19

  
20
    <%= render :partial => 'publications/new/default' %>
21

  
22

  
23
</div>
vendor/plugins/redmine_bibliography/app/views/publications/new/_bibtex.html.erb
1
<%- remote_form_for @publication, :url =>  { :project_id  => @project, :action => :parse_bibtex }, :class => "tabular" do |f| -%>
2
  <div class="box tabular settings">
3
    <%= text_area_tag :bibtex_paste, "Please paste your bibtex entry here" , :class => "wiki", :style => 'width:90%' -%>
4
    <div style="clear:both"></div>
5
    <%= f.submit "Parse BibTex" %>
6
  </div>
7
<%- end -%>
1

  
2

  
3
<div class="box">
4
  <%= text_area_tag :bibtex_paste, "Please paste your bibtex entry here" , :class => "wiki", :style => 'width:90%' -%>
5

  
6
  <br />
7

  
8
  <%= link_to_remote "Parse BiBTeX", :url =>  { :project_id  => @project, :action => :parse_bibtex}, :with => "'bibtex_paste=' + $('bibtex_paste').value" -%>
9
</div>
10

  
11
<div class="box" id="ieee_prev"></div>
12

  
vendor/plugins/redmine_bibliography/app/views/publications/new/_default.html.erb
1
<% form_for @publication, :url => { :project_id  => @project, :action => :create }, :class => "tabular" do |f| -%>
1
<% form_for @publication, :url => { :project_id  => @project, :action => :create }, :builder => TabularFormBuilder do |f| -%>
2 2
  <div class="box tabular settings">
3
    <%= render :partial => 'form', :locals => { :f => f }  %>
4
    <div style="clear:both"></div>
5
    <%= f.submit %>
3
    <fieldset>
4
      <%= render :partial => 'form', :locals => { :f => f }  %>
5

  
6
      <div style="clear:both"></div>
7
      <%= f.submit %>
8
    </fieldset>
6 9
  </div>
7 10
<%- end -%>
vendor/plugins/redmine_bibliography/app/views/publications/parse_bibtex.rjs
1
page.replace_html :ieee_prev, @ieee_prev
2

  
3
page.replace_html :error, flash[:error]
4
flash.discard

Also available in: Unified diff