Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create dialog for provisioning physical servers
- Loading branch information
skovic
committed
Oct 31, 2017
1 parent
eb16d72
commit a1ca989
Showing
6 changed files
with
132 additions
and
10 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
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
58 changes: 58 additions & 0 deletions
58
app/views/miq_request/_prov_physical_server_dialog.html.haml
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,58 @@ | ||
-# wf The workflow object currently in use | ||
-# dialog The name (symbol) of the selected dialog | ||
- current_tab = @edit && @edit[:new] ? @edit[:new][:current_tab_key] : @options[:current_tab_key] | ||
%br | ||
|
||
- if dialog == current_tab | ||
- case current_tab | ||
- when :requester | ||
- keys = [:owner_email, :owner_first_name, :owner_last_name, :owner_address, :owner_city, :owner_state, :owner_zip, :owner_country, :owner_title, :owner_company, :owner_department, :owner_office, :owner_phone, :owner_phone_mobile, :request_notes] | ||
= render(:partial => "prov_dialog_fieldset", | ||
:locals => {:workflow => wf, | ||
:dialog => dialog, | ||
:label => _("Request Information"), | ||
:keys => keys}) | ||
- keys = [:owner_manager, :owner_manager_mail, :owner_manager_mail] | ||
= render(:partial => "prov_dialog_fieldset", | ||
:locals => {:workflow => wf, | ||
:dialog => dialog, | ||
:label => _("Manager"), | ||
:keys => keys}) | ||
- when :purpose | ||
- keys = [:tag_ids] | ||
= render(:partial => "prov_dialog_fieldset", | ||
:locals => {:workflow => wf, | ||
:dialog => dialog, | ||
:label => _("Select Tags to apply"), | ||
:keys => keys}) | ||
- when :service | ||
- keys = [:src_configured_system_ids, :src_configuration_profile_id] | ||
= render(:partial => "prov_dialog_fieldset", | ||
:locals => {:workflow => wf, | ||
:dialog => dialog, | ||
:label => _("Physical Servers"), | ||
:keys => keys}) | ||
- when :customize | ||
- keys = [:root_password] | ||
= render(:partial => "prov_dialog_fieldset", | ||
:locals => {:workflow => wf, | ||
:dialog => dialog, | ||
:label => _("Credentials"), | ||
:prefix => "miq_request/", | ||
:keys => keys}) | ||
- keys = [:hostname, :ip_addr] | ||
= render(:partial => "prov_dialog_fieldset", | ||
:locals => {:workflow => wf, | ||
:dialog => dialog, | ||
:label => _("IP Address Information"), | ||
:prefix => "miq_request/", | ||
:keys => keys}) | ||
- when :schedule | ||
- has_schedule_time = (@edit && @edit[:new] && @edit[:new][:schedule_type] && @edit[:new][:schedule_type][0] == "schedule") || (@options && @options[:schedule_type] && @options[:schedule_type][0] == "schedule") | ||
- keys = [:schedule_type, has_schedule_time ? :schedule_time : nil, :stateless].compact | ||
= render(:partial => "prov_dialog_fieldset", | ||
:locals => {:workflow => wf, | ||
:dialog => dialog, | ||
:label => _("Schedule Info"), | ||
:keys => keys}) |
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 |
---|---|---|
|
@@ -1335,6 +1335,7 @@ | |
quick_search | ||
tl_chooser | ||
wait_for_task | ||
provision | ||
) + | ||
adv_search_post + | ||
exp_post + | ||
|