Sha256: 482ebcae08fd436c260c4fde7f1c9c1620b5a5755690e3636994fa1ba5f323d4

Contents?: true

Size: 1.74 KB

Versions: 2

Compression:

Stored size: 1.74 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.fields_for assoc_klass.name.to_relation_name, note do |note_form| %>
          <%# if note == change_notes.last %>
            <%- css = note == change_notes.last ? '' : 'uneditable-input' -%>
            <% if note == change_notes.last %>
              <%= note_form.text_area :value, :rows => 4 %>
            <% else %>
              <p><%= note.value %></p>
            <% end %>
            <%= note_form.select :language,
              Iqvoc.note_languages.map { |l| [l, l]},
              :label => t("txt.common.language"),
              :include_blank => false %>

            <%= note_form.fields_for :annotations do |na| %>
              <%= na.hidden_field :namespace %>
              <%= na.hidden_field :predicate %>
              <%= na.hidden_field :value %>
            <% end %>

            <%= f.form_group :note_annotations, :label => {:text => 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 btn-default pull-right">
</fieldset>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iqvoc-4.11.1 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-4.11.0 app/views/partials/note/skos/_edit_change_note.html.erb