Sha256: caeed4aae81cd0a13c47492e022eeef0861fd0dc0be2f15b4b618d90ea7d14a8
Contents?: true
Size: 1.68 KB
Versions: 9
Compression:
Stored size: 1.68 KB
Contents
<fieldset class="note_relation" id="<%= assoc_klass.name.to_relation_name %>_data"> <legend><%= assoc_klass.model_name.human(:count => 2) %></legend> <ol> <% change_notes = owner_klass.send(assoc_klass.name.to_relation_name).sort {|a,b| a.created_at <=> b.created_at } %> <% change_notes.each do |note| %> <li class="inline_note<%= " new" if note.new_record? %>"> <%= f.simple_fields_for assoc_klass.name.to_relation_name, note do |note_form| %> <%# if note == change_notes.last %> <%- css = note == change_notes.last ? '' : 'uneditable-input' -%> <%= note_form.input :value do %> <% if note == change_notes.last %> <%= note_form.input_field :value, :as => :text, :class => 'span4', :rows => 4 %> <% else %> <p><%= note.value %></p> <% end %> <% end %> <%= note_form.input :language, :collection => options_for_language_select(note.language), :label => t("txt.common.language"), :include_blank => false, :input_html => { :class => 'span1' } %> <%= f.input :note_annotations, :label => Note::Annotated::Base.model_name.human(:count => 2) do %> <dl class="note_annotations"> <% note.annotations.each do |na| %> <dt><%= na.identifier %></dt> <dd><%= na.value %></dd> <% end %> </dl> <% end %> <%# else %> <%# end %> <% end %> </li> <% end %> </ol> <input type="button" value="<%= t("txt.common.add_note") %>" class="btn pull-right"> </fieldset>
Version data entries
9 entries across 9 versions & 1 rubygems