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

Version Path
iqvoc-3.2.11 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.2.10 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.2.9 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.2.8 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.5.7 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.5.6 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.5.5 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.5.4 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.2.7 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.5.3 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.5.2 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.5.1 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.5.0 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.4.0 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.3.4 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.3.3 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.3.2 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.3.1 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.3.0 app/views/partials/note/skos/_edit_change_note.html.erb
iqvoc-3.2.6 app/views/partials/note/skos/_edit_change_note.html.erb