Skip to content

Commit

Permalink
Allow the input of Attribute/Value pairs in the dialog to add a new B…
Browse files Browse the repository at this point in the history
  • Loading branch information
romanblanco committed Jun 10, 2015
1 parent 30f04c0 commit 7db816a
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions vmdb/app/views/layouts/_ae_resolve_options.html.haml
Expand Up @@ -76,21 +76,23 @@
"1",
resolve[:new][:readonly] != true,
"data-miq_observe_checkbox" => {:url => url}.to_json)
%hr
%h3= _("Attribute/Value Pairs")
%table.style1
- AE_MAX_RESOLUTION_FIELDS.times do |i|
- f = "attribute_" + (i+1).to_s
- v = "value_" + (i+1).to_s
%tr
%td.key= (i+1).to_s
%td.wide
= text_field_tag(f,
resolve[:new][:attrs][i][0],
:maxlength => MAX_NAME_LEN,
"data-miq_observe" => {:interval => '.5', :url => url}.to_json)
%td.wide
= text_field_tag(v,
resolve[:new][:attrs][i][1],
:maxlength => MAX_NAME_LEN,
"data-miq_observe" => {:interval => '.5', :url => url}.to_json)
%hr
%h3= _("Attribute/Value Pairs")
%table.style1
- AE_MAX_RESOLUTION_FIELDS.times do |i|
- f = "attribute_" + (i + 1).to_s
- v = "value_" + (i + 1).to_s
%tr
%td.key= (i + 1).to_s
%td.wide
= text_field_tag(f,
resolve[:new][:attrs][i][0],
:maxlength => MAX_NAME_LEN,
"data-miq_observe" => {:interval => '.5',
:url => url}.to_json)
%td.wide
= text_field_tag(v,
resolve[:new][:attrs][i][1],
:maxlength => MAX_NAME_LEN,
"data-miq_observe" => {:interval => '.5',
:url => url}.to_json)

0 comments on commit 7db816a

Please sign in to comment.