forked from ManageIQ/manageiq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CRUD support for Automate Domains.
- Added support to Add/Edit/Delete Automate Domains. Moved some of the methods to private area and changed existing code that was being used to add/edit namespaces to be used for add/edit of domains. - Added support to change priority of Automate Domains. - Added support to allow users to local/unlock domains. This feature is protected by RBAC, so only users that have access to these features will be able to see these buttons. - Added product features for the new buttons. - Changed role_allows? method in user model to check for allows_any? feature when a hidden feature comes in. - Added spec tests to verify, lock/unlock and priority order change features. - Fixed any broken spec tests in application_helper specs, deleted any AE related spec tests that aren't valid any more. - Fixed an issue where correct tabs were not shown as inactive tabs on edit screen. Issue ManageIQ#2045
- Loading branch information
Showing
17 changed files
with
660 additions
and
277 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
48 changes: 48 additions & 0 deletions
48
vmdb/app/views/miq_ae_class/_domains_priority_form.html.erb
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,48 @@ | ||
<%= render :partial => "layouts/flash_msg", :locals=>{:div_num=>"_domains_priority"} %> | ||
<div id="domains_list"> | ||
<table class="admintable"> | ||
<tbody> | ||
<tr> | ||
<td > | ||
<table width="50%" class="form" id="formtest"> | ||
<tr> | ||
<td align="left" class="widthed">Domains:</td> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<td align="left" valign="top"> | ||
<%= select_tag('seq_fields[]', options_for_select(@edit[:new][:domain_order], @selected), { :multiple=> true, :style=>"width: 450px", :size=>20, :id=>"seq_fields" } ) %> | ||
</td> | ||
<td width="30" align="left" valign="middle"> | ||
<% if @edit[:new][:domain_order].length < 2 %> | ||
<%= image_tag("/images/toolbars/up.png", :class=>"dimmed small") %> | ||
<% else %> | ||
<%= link_to(image_tag("/images/toolbars/up.png", | ||
:class=>"rollover small", :alt=>"Move selected fields up"), | ||
{:action=>'priority_form_field_changed', :button=>'up', :id=>"priority__edit"}, | ||
"data-submit" =>"domains_list", | ||
:remote=>true, | ||
:title=>'Move selected fields up') | ||
%> | ||
<% end %> | ||
|
||
<% if @edit[:new][:domain_order].length < 2 %> | ||
<%= image_tag("/images/toolbars/down.png", :class=>"dimmed small") %> | ||
<% else %> | ||
<%= link_to(image_tag("/images/toolbars/down.png", | ||
:class=>"rollover small", :alt=>"Move selected fields down"), | ||
{:action=>'priority_form_field_changed', :button=>'down', :id=>"priority__edit"}, | ||
"data-submit" =>"domains_list", | ||
:remote=>true, | ||
:title=>'Move selected fields down') | ||
%> | ||
<% end %> | ||
</td> | ||
</tr> | ||
<div class="note">* Select one or more consecutive groups to move up or down.</div> | ||
</table> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# | ||
# Toolbar config file | ||
# | ||
--- | ||
:model: MiqAeDomain | ||
:button_groups: | ||
- :name: miq_ae_domain_vmdb | ||
:items: | ||
- :buttonSelect: miq_ae_domain_vmdb_choice | ||
:image: vmdb | ||
:title: Configuration | ||
:text: Configuration | ||
:items: | ||
- :button: miq_ae_domain_new | ||
:image: new_namespace | ||
:text: 'Add a New Domain' | ||
:title: 'Add a New Domain' | ||
- :button: miq_ae_domain_edit | ||
:image: edit | ||
:text: 'Edit Selected Domains' | ||
:title: 'Select a single Domains to edit' | ||
:url_parms: 'main_div' | ||
:enabled: 'false' | ||
:onwhen: '1' | ||
- :button: miq_ae_domain_delete | ||
:image: remove | ||
:text: 'Remove Domains' | ||
:title: 'Remove selected Domains' | ||
:url_parms: 'main_div' | ||
:confirm: 'Are you sure you want to remove the selected Domains?' | ||
:enabled: 'false' | ||
:onwhen: '1+' | ||
- :separator: | ||
- :button: miq_ae_domain_priority_edit | ||
:image: edit-assign | ||
:text: "Edit Priority Order of Domains" | ||
:title: "Edit Priority Order of Domains" |
Oops, something went wrong.