Sha256: 2f2c6bbdaa209e589375539c25724ac274ea6a3251a54e68b14fd8e3da8cba39

Contents?: true

Size: 307 Bytes

Versions: 35

Compression:

Stored size: 307 Bytes

Contents

- f ||= local_assigns[:locals][:f]
- if(f.object.prioritizables.empty? rescue true)
  = f.hidden_field :priority
- else
  = f.input :priority, :collection => (f.object.prioritizables.each_with_index.map{|p,i| [(i+1).ordinalize, p.priority]} + [['Last',f.object.lowest_priority+1]]), :include_blank => false

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
sbdevcore-0.3.10 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.3.9 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.3.8 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.3.7 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.3.6 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.3.5 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.3.4 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.3.3 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.3.2 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.3.1 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.3.0 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.2.26 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.2.25 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.2.24 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.2.23 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.2.22 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.2.21 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.2.20 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.2.19 app/views/shared/_prioritizable_fields.html.haml
sbdevcore-0.2.18 app/views/shared/_prioritizable_fields.html.haml