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

Version Path
sufia-3.5.0 app/views/generic_files/_field_form.html.erb
sufia-3.4.0 app/views/generic_files/_field_form.html.erb
sufia-3.4.0.rc4 app/views/generic_files/_field_form.html.erb
sufia-3.4.0.rc3 app/views/generic_files/_field_form.html.erb
sufia-3.3.1 app/views/generic_files/_field_form.html.erb
sufia-3.4.0.rc2 app/views/generic_files/_field_form.html.erb
sufia-3.4.0.rc1 app/views/generic_files/_field_form.html.erb
sufia-3.3.0 app/views/generic_files/_field_form.html.erb
sufia-3.2.1 app/views/generic_files/_field_form.html.erb
sufia-3.1.3 app/views/generic_files/_field_form.html.erb
sufia-3.1.2 app/views/generic_files/_field_form.html.erb
sufia-3.1.1 app/views/generic_files/_field_form.html.erb
sufia-3.1.0 app/views/generic_files/_field_form.html.erb
sufia-3.0.0 app/views/generic_files/_field_form.html.erb
sufia-2.0.1 app/views/generic_files/_field_form.html.erb
sufia-2.0.0 app/views/generic_files/_field_form.html.erb