Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config.model Utility do
- configure :preview do
- pretty_value do
- util = bindings[:object]
- %{<div class="blah">
- #{util.name} #{util.phone} #{util.logo}
- </div >}
- end
- children_fields [:name, :phone, :logo] # will be used for searching/filtering, first field will be used for sorting
- read_only true # won't be editable in forms (alternatively, hide it in edit section)
- end
- list do
- field :code
- field :priority
- field :preview
- end
- show do
- field :code
- field :priority
- field :preview
- end
- # other sections will show all fields
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement