Sha256: 50939cac6cebe1413f58be1fb2b95ec9a251660be00d016b123178628d9999ce
Contents?: true
Size: 852 Bytes
Versions: 5
Compression:
Stored size: 852 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 %> <% 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><!-- /control-group -->
Version data entries
5 entries across 5 versions & 1 rubygems