# HG changeset patch # User luisf # Date 1380728666 -3600 # Node ID c97b3b9b5c86eb606d06e28179c3770912d339f1 # Parent 69d32b831d2b7851efd01131f5bed6748ccefd3b changed form_builder - labelled_form_for was not generating validad HTML5 markup. diff -r 69d32b831d2b -r c97b3b9b5c86 plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb --- a/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Wed Oct 02 12:23:05 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/publications/_authorship_fields.html.erb Wed Oct 02 16:44:26 2013 +0100 @@ -1,9 +1,9 @@
-

<%= f.text_field :name_on_paper, :class => "author_name_on_paper" -%>

-

<%= f.text_field :institution -%>

-

<%= f.text_field :email -%>

+

<%= f.label :name_on_paper %><%= f.text_field :name_on_paper, :class => "author_name_on_paper" -%>

+

<%= f.label :institution %><%= f.text_field :institution -%>

+

<%= f.label :email %><%= f.text_field :email -%>

<%= f.check_box :search_author_tie, :label => '' -%> diff -r 69d32b831d2b -r c97b3b9b5c86 plugins/redmine_bibliography/app/views/publications/_bibtex_fields.html.erb --- a/plugins/redmine_bibliography/app/views/publications/_bibtex_fields.html.erb Wed Oct 02 12:23:05 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/publications/_bibtex_fields.html.erb Wed Oct 02 16:44:26 2013 +0100 @@ -1,5 +1,5 @@

- + <%= f.collection_select :entry_type, BibtexEntryType.find(:all).reject { |x| x.redundant? }, :id, @@ -8,71 +8,71 @@

- <%= f.text_field :year, :size => 4 %> + <%= f.label :year %><%= f.text_field :year -%>

- <%= f.text_field :month, :size => 4%> + <%= f.label :month %><%= f.text_field :month, :size => 4%>

- <%= f.text_field :chapter, :size => 15%> + <%= f.label :chapter %><%= f.text_field :chapter, :size => 15%>

- <%= f.text_field :editor, :size => 33 %> + <%= f.label :editor %><%= f.text_field :editor, :size => 33 %>

- <%= f.text_field :booktitle, :size => 33 %> + <%= f.label :booktitle %><%= f.text_field :booktitle, :size => 33 %>

- <%= f.text_field :publisher,:size => 33 %> + <%= f.label :publisher %><%= f.text_field :publisher,:size => 33 %>

- <%= f.text_field :pages, :size => 12 %> + <%= f.label :pages %><%= f.text_field :pages, :size => 12 %>

- <%= f.text_field :address %> + <%= f.label :address %><%= f.text_field :address %>

- <%= f.text_field :annote %> + <%= f.label :annote %><%= f.text_field :annote %>

- <%= f.text_field :crossref %> + <%= f.label :crossref %><%= f.text_field :crossref %>

- <%= f.text_field :edition %> + <%= f.label :edition %><%= f.text_field :edition %>

- <%= f.text_field :eprint %> + <%= f.label :eprint %><%= f.text_field :eprint %>

- <%= f.text_field :howpublished %> + <%= f.label :howpublished %><%= f.text_field :howpublished %>

- <%= f.text_field :journal %> + <%= f.label :journal %><%= f.text_field :journal %>

- <%= f.text_field :key %> + <%= f.label :key %><%= f.text_field :key %>

- <%= f.text_field :note %> + <%= f.label :note %><%= f.text_field :note %>

- <%= f.text_field :number %> + <%= f.label :number %><%= f.text_field :number %>

- <%= f.text_field :organization %> + <%= f.label :organization %><%= f.text_field :organization %>

- <%= f.text_field :school %> + <%= f.label :school %><%= f.text_field :school %>

- <%= f.text_field :series %> + <%= f.label :series %><%= f.text_field :series %>

- <%= f.text_field :type %> + <%= f.label :type %><%= f.text_field :type %>

- <%= f.text_field :url %> + <%= f.label :url %><%= f.text_field :url %>

- <%= f.text_field :volume %> + <%= f.label :volume %><%= f.text_field :volume %>

\ No newline at end of file diff -r 69d32b831d2b -r c97b3b9b5c86 plugins/redmine_bibliography/app/views/publications/_form.html.erb --- a/plugins/redmine_bibliography/app/views/publications/_form.html.erb Wed Oct 02 12:23:05 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/publications/_form.html.erb Wed Oct 02 16:44:26 2013 +0100 @@ -1,4 +1,4 @@ -

<%= f.text_field :title, :required => true, :size => 70 %>

+

<%= f.label :title %> * <%= f.text_field :title, :required => true, :size => 70 %>

<%= l(:label_publication_other_details) %>

@@ -8,12 +8,12 @@ <%- end -%>

- <%= f.text_field :external_url, :size => 70 %> + <%= f.label :external_url %><%= f.text_field :external_url -%>
- <%= l(:text_external_url) %> + <%= l(:text_external_url) -%>

- <%= f.text_field :doi, :size => 70 %> + <%= f.label :doi %><%= f.text_field :doi -%>
<%= l(:text_doi) %>

diff -r 69d32b831d2b -r c97b3b9b5c86 plugins/redmine_bibliography/app/views/publications/new.html.erb --- a/plugins/redmine_bibliography/app/views/publications/new.html.erb Wed Oct 02 12:23:05 2013 +0100 +++ b/plugins/redmine_bibliography/app/views/publications/new.html.erb Wed Oct 02 16:44:26 2013 +0100 @@ -26,7 +26,7 @@

<%=l(:label_publication_new)%>

-<%= labelled_form_for @publication, :url => { :project_id => @project, :action => :create } do |f| -%> +<%= form_for @publication, :url => { :project_id => @project, :action => :create } do |f| -%> <%= render :partial => 'form', :locals => { :f => f } %>