Sha256: c974c9dbd21053e75a85bc6b598eeca645fa80a1ff190fe462af0211a63959d9

Contents?: true

Size: 1.17 KB

Versions: 23

Compression:

Stored size: 1.17 KB

Contents

<fieldset id="label_<%= assoc_klass.name.to_relation_name %>_data" class="note_relation">
  <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
          }, true) do %>
        <%= f.fields_for :"#{assoc_klass.name.to_relation_name}", note do |note_form| %>
          <%= note_form.label :value, assoc_klass.model_name.human %>
          <%= note_form.text_area :value, :rows => 5, :cols => 40 %>

          <br />

          <%= note_form.label :language, t("txt.common.language") %>
          <%= note_form.select :language, options_for_language_select(note.language) %>

          <% unless note.new_record? %>
            <br />
            <%= note_form.check_box :"_destroy" %>
            <%= note_form.label :"_destroy", t("txt.common.delete") %>
          <% end %>
        <% end %>
      <% end %>
    <% 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/_edit_base.html.erb
iqvoc-3.2.10 app/views/partials/note/_edit_base.html.erb
iqvoc-3.2.9 app/views/partials/note/_edit_base.html.erb
iqvoc-3.2.8 app/views/partials/note/_edit_base.html.erb
iqvoc-3.5.7 app/views/partials/note/_edit_base.html.erb
iqvoc-3.5.6 app/views/partials/note/_edit_base.html.erb
iqvoc-3.5.5 app/views/partials/note/_edit_base.html.erb
iqvoc-3.5.4 app/views/partials/note/_edit_base.html.erb
iqvoc-3.2.7 app/views/partials/note/_edit_base.html.erb
iqvoc-3.5.3 app/views/partials/note/_edit_base.html.erb
iqvoc-3.5.2 app/views/partials/note/_edit_base.html.erb
iqvoc-3.5.1 app/views/partials/note/_edit_base.html.erb
iqvoc-3.5.0 app/views/partials/note/_edit_base.html.erb
iqvoc-3.4.0 app/views/partials/note/_edit_base.html.erb
iqvoc-3.3.4 app/views/partials/note/_edit_base.html.erb
iqvoc-3.3.3 app/views/partials/note/_edit_base.html.erb
iqvoc-3.3.2 app/views/partials/note/_edit_base.html.erb
iqvoc-3.3.1 app/views/partials/note/_edit_base.html.erb
iqvoc-3.3.0 app/views/partials/note/_edit_base.html.erb
iqvoc-3.2.6 app/views/partials/note/_edit_base.html.erb