Permalink
Browse files

UI fixes. Should be able to drag-and-drop clients now. Not sure if th…

…e attribute part will work yet.
  • Loading branch information...
1 parent 08cafe8 commit d81b14433370130ea810d9fbf5b458c736ee0327 @khudgins committed Jan 24, 2012
@@ -3,7 +3,6 @@
"description": "Installation for Zenoss",
"attributes": {
"zenoss": {
- "foo": "bar",
"server": {
"admin_password": "zenoss"
}
@@ -5,8 +5,5 @@
= link_to t('raw'), proposal_barclamp_path(:id => @proposal.name, :controller => @proposal.barclamp, :dep_raw => @dep_raw, :attr_raw => true), :style => "float: right;"
%div.container
%p
- %label{ :for => :backing_type }= t('.foo')
- = select_tag :backing_type, options_for_select([['XKCD','xkcd'], ['Dilbert', 'dilbert']], @proposal.raw_data['attributes'][@proposal.barclamp]["foo"]), :onchange => "update_value('foo', 'foo', 'string')"
- %p
- %label{ :for => :admin_password }= t('.admin-password')
- %input#admin_password{:type => "text", :name => "admin_password", :'data-default' => @proposal.raw_data['attributes'][@proposal.barclamp]["zenoss"]["admin_password"], :onchange => "update_value('zenoss/admin_password','admin_password', 'string')"}
+ %label{ :for => :backing_type }= t('.admin-password')
+ %input#admin_password{:type => "text", :name => "admin_password", :'data-default' => @proposal.raw_data['attributes'][@proposal.barclamp]["zenoss"]["admin_password"], :onchange => "update_value('zenoss/admin_password','admin_password', 'string')"}
@@ -4,7 +4,8 @@
:javascript
$(document).ready(function(){
- var constraints = { "zenoss-server": { "unique": false, "count": 1 } };
+ var constraints = { "zenoss-server": { "unique": false, "count": 1 },
+ "zenoss-client": {"unique": true, "count": -1 } };
node_selector($('#drag_drop'), constraints);
});

0 comments on commit d81b144

Please sign in to comment.