You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2012/11/08 14:12:32 UTC

git commit: Fix HTML UI bug, was using hwp.name instead of hwp.id (launch instance)

Updated Branches:
  refs/heads/master f0b4de948 -> aecefd4da


Fix HTML UI bug, was using hwp.name instead of hwp.id (launch instance)


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/aecefd4d
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/aecefd4d
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/aecefd4d

Branch: refs/heads/master
Commit: aecefd4daf51d460f6f61a4b5b6d1946c77595c2
Parents: f0b4de9
Author: marios <ma...@redhat.com>
Authored: Thu Nov 8 09:41:29 2012 +0200
Committer: marios <ma...@redhat.com>
Committed: Thu Nov 8 15:11:53 2012 +0200

----------------------------------------------------------------------
 server/views/images/show.html.haml   |    2 +-
 server/views/instances/new.html.haml |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/aecefd4d/server/views/images/show.html.haml
----------------------------------------------------------------------
diff --git a/server/views/images/show.html.haml b/server/views/images/show.html.haml
index 6030a47..181d43e 100644
--- a/server/views/images/show.html.haml
+++ b/server/views/images/show.html.haml
@@ -25,7 +25,7 @@
       %li
         %div{ :'data-role' => 'controlgroup', :'data-type' => "horizontal" }
           - @image.hardware_profiles.each do |hwp|
-            %a{ :href => url_for("hardware_profiles/#{hwp.name}"), :'data-role' => "button", :'data-ajax' => 'false'} #{hwp.name}
+            %a{ :href => url_for("hardware_profiles/#{hwp.id}"), :'data-role' => "button", :'data-ajax' => 'false'} #{hwp.name}
     %li{ :'data-role' => 'list-divider'} Actions
     %li
       %div{ :'data-role' => 'controlgroup', :'data-type' => "horizontal" }

http://git-wip-us.apache.org/repos/asf/deltacloud/blob/aecefd4d/server/views/instances/new.html.haml
----------------------------------------------------------------------
diff --git a/server/views/instances/new.html.haml b/server/views/instances/new.html.haml
index 6c8e130..5814b5a 100644
--- a/server/views/instances/new.html.haml
+++ b/server/views/instances/new.html.haml
@@ -89,7 +89,7 @@
         %h3 Instance profile
         %fieldset{ :'data-role' => :fieldcontain}
           - @hardware_profiles.each do |profile|
-            %input{ :type => :radio, :name => 'hwp_id', :value => profile.name, :id => profile.name, :'data-theme' => 'b'}/
+            %input{ :type => :radio, :name => 'hwp_id', :value => profile.id, :id => profile.name, :'data-theme' => 'b'}/
             %label{ :for => profile.name, :onclick => "expandHWP('#{profile.name}');"}=profile.name
             %div{ :'data-role' => :fieldcontain, :id => "property_container_#{profile.name}", :class => 'hwp_properties'}