Sha256: 2746b6f9565a25e22507b6798472bd78e11dfe308e38e7276d142efb60b92f78
Contents?: true
Size: 714 Bytes
Versions: 4
Compression:
Stored size: 714 Bytes
Contents
<% render_req ||= true # render_req is true for single file edit, false for batch edit%> <div class="control-group"> <% vals = generic_file.send(key) %> <%# if vals is empty we create an one element array to loop over for output %> <% vals = [''] if vals.count == 0 %> <% 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.each_with_index do |v, index| %> <%= render_edit_field_partial(key, f:f, v: v, index: index, render_req: render_req) %> <% end %> </div><!-- /control-group -->
Version data entries
4 entries across 4 versions & 1 rubygems