summaryrefslogtreecommitdiff
path: root/packages/chef-server/app/views/openid_register/index.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/chef-server/app/views/openid_register/index.html.haml')
-rw-r--r--packages/chef-server/app/views/openid_register/index.html.haml15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/chef-server/app/views/openid_register/index.html.haml b/packages/chef-server/app/views/openid_register/index.html.haml
new file mode 100644
index 0000000000..fe4798c59d
--- /dev/null
+++ b/packages/chef-server/app/views/openid_register/index.html.haml
@@ -0,0 +1,15 @@
+%h1 Registered OpenID Nodes List
+%table
+- @registered_nodes.each do |node|
+ %tr
+ %td
+ %a{ :href => url(:registration, { :id => node.name }) }
+ = h node.name
+ %td
+ - if session[:level] == :admin
+ %form{ :method => "post", :action => url(:validate_registration, { :id => node.name })}
+ - submit_name = node.validated ? "Invalidate" : "Validate"
+ %input{ :type => "submit", :name => submit_name, :value => submit_name }
+ %form{ :method => "post", :action => url(:registration, { :id => node.name })}
+ %input{ :type => "hidden", :name => "_method", :value => "delete" }
+ %input{ :type => "submit", :name => "Delete", :value => "Delete" }