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