Sha256: d52ab423015edc59d43dfd6ba852b8fa450f0fc8657af3dc24c103e44109f643
Contents?: true
Size: 615 Bytes
Versions: 16
Compression:
Stored size: 615 Bytes
Contents
<% render_req ||= true # render_req is true for single file edit, false for batch edit%> <div class="control-group"> <% vals = generic_file[key] %> <% if render_req && required?(key) %> <% tmp = '<span class="error">*</span>' + get_label(key) %> <%= f.label key, tmp.html_safe, :class=>"control-label" %> <% else %> <%= f.label key, get_label(key), :class=>"control-label"%> <% end %> <% 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 %> </div><!-- /control-group -->
Version data entries
16 entries across 16 versions & 1 rubygems