Sha256: a16859bb5e6ea611d8a05b444bb9a77545e438c521661bfeb5910c9b8a3d973b
Contents?: true
Size: 1.74 KB
Versions: 23
Compression:
Stored size: 1.74 KB
Contents
<fieldset id="<%= assoc_klass.name.to_relation_name %>" class="note_relation"> <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.fields_for assoc_klass.name.to_relation_name, note do |note_form| %> <% if note == change_notes.last %> <%= note_form.label :value, assoc_klass.model_name.human(:count => 1) %> <%= note_form.text_area :value, :rows => 5, :cols => 40 %> <br /> <label><%= Note::Annotated::Base.model_name.human(:count => 2) %></label> <dl class="note_annotations"> <% note.annotations.each { |na| %> <dt><%= na.identifier %></dt> <dd><%= na.value %></dd> <% } %> </dl> <%= note_form.label :language, t("txt.common.language") %> <%= note_form.select :language, options_for_language_select(note.language) %> <br /> <% else %> <label><%= t("txt.common.value") %></label> <span><%= note.value %></span> <dl class="note_annotations"> <% note.annotations.each { |na| %> <dt><%= na.identifier %></dt> <dd><%= na.value %></dd> <% } %> </dl> <% end %> <%#= note_form.check_box :"_destroy" %> <%#= note_form.label :"_destroy", t("txt.views.labels.edit.delete") %> <% end %> </li> <% end %> </ol> <input type="button" value="<%= t("txt.common.add_note") %>" /> </fieldset>
Version data entries
23 entries across 23 versions & 1 rubygems