Class: ODDB::View::Admin::FachinfoLanguageSelect

Inherits:
HtmlGrid::AbstractSelect
  • Object
show all
Defined in:
src/view/admin/registration.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) value

Returns the value of attribute value



88
89
90
# File 'src/view/admin/registration.rb', line 88

def value
  @value
end

Instance Method Details

- (Object) selection(context)



89
90
91
92
93
94
95
96
97
98
# File 'src/view/admin/registration.rb', line 89

def selection(context)
  values = ["de","fr"]
  values.collect { |value|
    attributes = { "value" =>  value.to_s }
    attributes.store("selected", true) if(@value == value)
    context.option(attributes) { 
      @lookandfeel.lookup(value)
    }
  }
end