Sha256: 3db3b005f986d4e74a5d7e4f9d4d50610499adca4a48c673672c2cf52db951cd
Contents?: true
Size: 716 Bytes
Versions: 6
Compression:
Stored size: 716 Bytes
Contents
<% if !is_modal %> <!-- if not making resource from other form --> <%= content_tag( :div, class: 'file-collection-container', data: { max: properties['max-files'].nil? ? 0 : properties['max-files'] } ) do %> <%= f.fields_for(attribute) do |builder| %> <%= render 'adminpanel/shared/image_fields', f: builder %> <% end -%> <% if ( properties['max-files'].to_i != 0 && properties['max-files'].to_i <= f.object.send(@model.get_image_relationship).count.to_i ) %> <% hidden = 'hidden' %> <% else %> <% hidden = 'not-hidden' %> <% end %> <%= link_to_add_fields I18n.t('Add Image'), f, attribute, hidden %> <% end %> <% end %>
Version data entries
6 entries across 6 versions & 1 rubygems