ithouse/lolita — Issue #40: Fields in columns
Author: kalifs
Created: 2011-12-20 12:58:49+00:00
State: open
Labels: proposal

Sometimes we create custom columns with input/select/checkbox etc in it. I think it would be wise to put that functionality in lolita. Like

lolita do
list do
column :title
column :status do
field :available_statuses, :array, :builder => :select
end
end
end

this will create select in status column in each row. on change field will make ajax request to lolita/rest#update (same way as for edit form) but only with this one attribute, like order[status]=completed. So if object is created it was valid for that moment and now if validation fails it restore previous state of field otherwise field value is stored and kept in that way in list.