Sha256: 8ea481efa7375507277281d2f163e0ce7b4d70e8f70754b1b868fb08b830d07f
Contents?: true
Size: 833 Bytes
Versions: 5
Compression:
Stored size: 833 Bytes
Contents
<% render_req ||= true # render_req is true for single file edit, false for batch edit%> <div class="batch-group"> <% vals = generic_file[key] %> <% if render_req && required?(key) %> <% tmp = '<span class="required-field">*</span>' + get_label(key) %> <%= f.label key, tmp.html_safe %> <% else %> <%= f.label key, get_label(key) %> <% end %> <%= help_icon(key) %> <% if key == :resource_type %> <%# resource_type is a multiselect box, so don't render one row for each %> <%= render_edit_field_partial(key, record: generic_file, f: f, render_req: render_req) %> <% else %> <% vals.to_ary.each_with_index do |v, index| %> <%= render_edit_field_partial(key, record: generic_file, f: f, v: v, index: index, render_req: render_req) %> <% end %> <% end %> </div><!-- /.batch-group -->
Version data entries
5 entries across 5 versions & 1 rubygems