-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UI for node allocation from Intel Rackscale systems
- Lists available systems from Rackscale Simulator - Allows selection of specific systems for allocation - Creates a node object and allocates the same as a crowbar node - Also refined the controller to obtain system-specific info - UI contains only a list of check-boxes and one Allocate button
- Loading branch information
1 parent
d5d6063
commit 759a222
Showing
6 changed files
with
171 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.row | ||
.col-xs-12 | ||
%h1.page-header | ||
= t(".title") | ||
|
||
.row | ||
.col-xs-12 | ||
.panel.panel-default | ||
.panel-body | ||
.alert.alert-info | ||
= t(".rsd_header") | ||
|
||
= form_for :node, :url => rsd_allocate_path, :html => { :role => "form" } do |f| | ||
= hidden_field_tag "return", @allocated | ||
.panel.panel-default#accordion | ||
%h2 | ||
= t(".sys_header") | ||
.panel-panel-body | ||
%table.table.table-hover.table-middle{ :style => "border: 1px; width: 100%" } | ||
%thead | ||
%tr | ||
%th | ||
= t(".rsd_selection") | ||
%th | ||
= t(".system_id") | ||
%tbody | ||
- @rsd_systems.each do |rsd_system| | ||
%tr | ||
%td= check_box_tag "#{rsd_system['SystemId']}" | ||
%td= link_to("System-#{rsd_system['SystemId']}") | ||
.btn-group.pull-right | ||
%input.btn.btn-default{ :type => "submit", :name => "allocate", :value => t(".allocate_switch") } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# | ||
# Copyright 2016, SUSE LINUX GmbH | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
en: | ||
nav: | ||
utils: | ||
rsd: 'Intel RackScale' | ||
rsd: | ||
show: | ||
title: 'Intel Rackscale' | ||
rsd_header: 'Lists Systems available from Intel RackScale server by talking to the Redfish APIs' | ||
man_header: 'Managers' | ||
sys_header: 'Systems' | ||
sw_header: 'Switches' | ||
ch_header: 'Chassis' | ||
allocate_switch: 'Allocate' | ||
rsd_selection: 'Selection' | ||
system_id: 'System ID' | ||
barclamp: | ||
rsd: | ||
login: | ||
provide_creds: 'Please provide Rackscale login credentials.' | ||
please_login: 'No active Rackscale session; please login.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# | ||
# Copyright 2016, SUSE LINUX GmbH | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
get 'rsd/show' => 'rsd#show', as: 'rsd_show' | ||
post 'rsd/allocate' => 'rsd#allocate', as: 'rsd_allocate' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters