Sha256: 70d195c0d4f681175caca47d48e9393ecdf590d3e49fc342f35ffe153a7432cf
Contents?: true
Size: 789 Bytes
Versions: 3
Compression:
Stored size: 789 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) = 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} 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
3 entries across 3 versions & 1 rubygems