Sha256: 6666d8738b668026f46ca662010b8cbbd23e75943c96a08594d86cc553a90d6b

Contents?: true

Size: 634 Bytes

Versions: 4

Compression:

Stored size: 634 Bytes

Contents

require 'marty/postings/grid'

module Marty
  module Postings
    class Window < Netzke::Window::Base
      def configure(c)
        super

        c.title = I18n.t('select_posting')
        c.modal = true
        c.items = [:posting_grid]
        c.lazy_loading = true
        c.width = 600
        c.height = 350
      end

      component :posting_grid do |c|
        c.klass = Marty::Postings::Grid
        c.rows_per_page = 12
        c.permissions = {
          update:           false,
          delete:    true, # hijacked for selection
          create:    false,
        }
        # c.bbar  = []
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
marty-14.3.0 app/components/marty/postings/window.rb
marty-14.0.0 app/components/marty/postings/window.rb
marty-13.0.2 app/components/marty/postings/window.rb
marty-11.0.0 app/components/marty/postings/window.rb