Sha256: 81065386aba91cf7dc3b21176c93b6d6b4ecdd5345553d563739d2c3fae43ee3
Contents?: true
Size: 956 Bytes
Versions: 4
Compression:
Stored size: 956 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") %> <% if note.persisted? %> <%= 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
4 entries across 4 versions & 1 rubygems