Sha256: 931b630672e99cc8b00e2a959a1ac3c4cdc96c569decef450788bd847b046fd3

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

- f ||= local_assigns[:locals][:f]
- if(f.object.prioritizables.empty? rescue true)
  = f.hidden_field :priority
- else
  = f.input :priority, :as => :select, :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

1 entries across 1 versions & 1 rubygems

Version Path
sbdevcore-0.2.0 app/views/shared/_prioritizable_fields.html.haml