Sha256: e0826640337fcb6d5e0bb29a7de90eebf7981224d6e9bc9e8223974e337d84a1

Contents?: true

Size: 1.52 KB

Versions: 12

Compression:

Stored size: 1.52 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 %>

            <%= 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

12 entries across 12 versions & 1 rubygems

Version Path
iqvoc-4.10.0 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-4.9.0 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-4.8.2 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-4.8.1 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-4.8.0 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-4.7.0 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-4.6.1 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-4.5.2 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-4.6.0 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-4.5.1 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-4.5.0 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-4.4.0 app/views/partials/note/skos/_edit_change_note.html.erb