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

Version Path
brick_layer-0.10.6 app/views/brick_layer/data_sets/_form.html.haml
brick_layer-0.10.5 app/views/brick_layer/data_sets/_form.html.haml
brick_layer-0.10.3 app/views/brick_layer/data_sets/_form.html.haml
brick_layer-0.10.2 app/views/brick_layer/data_sets/_form.html.haml
brick_layer-0.10.1 app/views/brick_layer/data_sets/_form.html.haml
brick_layer-0.10.0 app/views/brick_layer/data_sets/_form.html.haml
brick_layer-0.9.6 app/views/brick_layer/data_sets/_form.html.haml
brick_layer-0.9.4 app/views/brick_layer/data_sets/_form.html.haml