Class: ODDB::Html::View::Drugs::Admin::Packages
- Inherits:
-
List
- Object
- HtmlGrid::List
- List
- ODDB::Html::View::Drugs::Admin::Packages
show all
- Includes:
- HtmlGrid::FormMethods, PackageMethods
- Defined in:
- lib/oddb/html/view/drugs/admin/sequence.rb
Constant Summary
collapse
- COMPONENTS =
{
[0,0] => :pzn,
[1,0] => :name,
[2,0] => :size,
}
- EVENT =
:new_package
true
Constants inherited
from List
List::BACKGROUND_ROW, List::BACKGROUND_SUFFIX, List::LEGACY_INTERFACE, List::SORT_DEFAULT
Instance Method Summary
collapse
Methods inherited from List
#query_args, #query_key, #sort_link
Instance Method Details
147
148
149
|
# File 'lib/oddb/html/view/drugs/admin/sequence.rb', line 147
def (offset)
@grid.add submit(@model), *offset
end
|
#hidden_fields(context) ⇒ Object
150
151
152
|
# File 'lib/oddb/html/view/drugs/admin/sequence.rb', line 150
def hidden_fields(context)
super << context.hidden("uid", @container.model.uid)
end
|
#pzn(model) ⇒ Object
153
154
155
156
157
158
159
|
# File 'lib/oddb/html/view/drugs/admin/sequence.rb', line 153
def pzn(model)
code = model.code(:cid)
link = HtmlGrid::Link.new(:cid, model, @session, self)
link.href = @lookandfeel._event_url(:package, :pzn => code)
link.value = code
link
end
|