Sha256: e17df6cbef793d12556bf8dd65041b7e0ef2de6817dd6ce1d666594f72497e9d

Contents?: true

Size: 961 Bytes

Versions: 12

Compression:

Stored size: 961 Bytes

Contents

<fieldset class="note_relation" id="<%= assoc_klass.name.to_relation_name %>_data">
  <legend><%= assoc_klass.model_name.human(:count => 2) %></legend>
  <ol>
    <% owner_klass.send(assoc_klass.name.to_relation_name).select{|n| n.class == assoc_klass}.each do |note| %>
      <%= content_tag(:li, :class => "inline_note translation #{" new" if note.new_record?}", :lang => note.language || nil) do %>
        <%= f.fields_for assoc_klass.name.to_relation_name, note do |note_form| %>
          <%= note_form.text_area :value %>
          <%= note_form.select :language, Iqvoc.note_languages.map { |l| [l, l]}, :label => t("txt.common.language") %>
          <% unless note.new_record? %>
            <%= note_form.check_box :"_destroy", :label => t("txt.common.delete") %>
          <% end %>
        <% end %>
      <% end %>
    <% 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/_edit_base.html.erb
iqvoc-4.9.0 app/views/partials/note/_edit_base.html.erb
iqvoc-4.8.2 app/views/partials/note/_edit_base.html.erb
iqvoc-4.8.1 app/views/partials/note/_edit_base.html.erb
iqvoc-4.8.0 app/views/partials/note/_edit_base.html.erb
iqvoc-4.7.0 app/views/partials/note/_edit_base.html.erb
iqvoc-4.6.1 app/views/partials/note/_edit_base.html.erb
iqvoc-4.5.2 app/views/partials/note/_edit_base.html.erb
iqvoc-4.6.0 app/views/partials/note/_edit_base.html.erb
iqvoc-4.5.1 app/views/partials/note/_edit_base.html.erb
iqvoc-4.5.0 app/views/partials/note/_edit_base.html.erb
iqvoc-4.4.0 app/views/partials/note/_edit_base.html.erb