Sha256: fcb203bb8d11d3c0ad801cfaa219c6a5584090205e211b81637499b3e40b3751
Contents?: true
Size: 857 Bytes
Versions: 8
Compression:
Stored size: 857 Bytes
Contents
- attributes_for(@model_constant, :added_only => true).each do |attribute| = form_field_formatter(f, attribute) - if f.object.send(attribute).respond_to?("image?") && !f.object.send("#{attribute}_uid").blank? %p = image_tag(f.object.send(attribute).thumb('100x100#').url) = list_of_sizes_for(f.object, attribute) %br = f.check_box("remove_#{attribute}") = f.label "Remove #{attribute.titlecase}" - if f.object.send(attribute).to_s.try(:include?, "/files/") %p = link_to "Current #{attribute.titlecase} File", f.object.send(attribute).to_s = f.check_box("remove_#{attribute}") = f.label "Remove #{attribute.titlecase}" - relations_for(@model_constant, :ignore => ["route"]).each do |relation| .input.relation %label= relation.titlecase = relation_field_formatter(f, relation)
Version data entries
8 entries across 8 versions & 1 rubygems