forked from ManageIQ/manageiq-ui-classic
-
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.
Merge pull request ManageIQ#2261 from lgalis/add_tag_expression_to_gr…
…oup_editor Add tag expression to the group editor
- Loading branch information
Showing
9 changed files
with
166 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
- if @edit.nil? | ||
%h3 | ||
= _('Filter Expression') | ||
.form-horizontal.static | ||
- if @group && @group.entitlement && @group.entitlement.filter_expression && @group.entitlement.filter_expression.kind_of?(MiqExpression) | ||
= h(@group.entitlement.filter_expression.to_human) | ||
- else | ||
= render :partial => 'layouts/info_msg', :locals => {:message => _("No Filter Expression defined")} | ||
- else | ||
= render :partial => 'layouts/filter_expression', | ||
:locals => {:expression_type => :filter_expression, | ||
:action => "rbac_group_edit", | ||
:id => @edit[:group_id] || 'new', | ||
:title => _('Expression')} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
= render :partial => 'layouts/custom_button_expression', | ||
= render :partial => 'layouts/filter_expression', | ||
:locals => {:expression_type => :enablement_expression, | ||
:title => _('Expression')} | ||
:action => "button_update", | ||
:title => _('Expression')} |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
= render :partial => 'layouts/custom_button_expression', | ||
= render :partial => 'layouts/filter_expression', | ||
:locals => {:expression_type => :visibility_expression, | ||
:title => _('Expression')} | ||
:action => "button_update", | ||
:title => _('Expression')} |
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 |
---|---|---|
@@ -1,5 +1,30 @@ | ||
%br | ||
= _("This user is limited to items with the selected tags.") | ||
%br | ||
%br | ||
= render(:partial => 'shared/tree', :locals => {:tree => @tags_tree, :name => @tags_tree.name}) | ||
#customer_tags_div | ||
- if @edit | ||
- rec_id = @edit && @edit[:group_id] ? @edit[:group_id] : "new" | ||
- url = url_for(:action => 'rbac_group_field_changed', :id => rec_id) | ||
%br | ||
.form-horizontal | ||
.form-group | ||
%label.col-md-2.control-label | ||
= _("This user is limited to ") | ||
.col-md-8 | ||
- if @edit | ||
= select_tag('use_filter_expression', | ||
options_for_select([[_("Specific Tags"), false], | ||
[_("Tags Based On Expression"), true]], | ||
@edit[:new][:use_filter_expression]), | ||
:class => "selectpicker") | ||
:javascript | ||
miqInitSelectPicker(); | ||
miqSelectPickerEvent('use_filter_expression', "#{url}") | ||
- if @edit[:new][:use_filter_expression] | ||
= render(:partial => "layouts/group_filter_expression") | ||
- else | ||
= render(:partial => 'shared/tree', :locals => {:tree => @tags_tree, :name => @tags_tree.name}) | ||
- elsif @use_filter_expression | ||
= render(:partial => "layouts/group_filter_expression") | ||
- else | ||
= _("This user is limited to items with the selected tags.") | ||
%br | ||
%br | ||
= render(:partial => 'shared/tree', :locals => {:tree => @tags_tree, :name => @tags_tree.name}) |
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 |
---|---|---|
|
@@ -2704,7 +2704,8 @@ | |
ls_select | ||
ldap_entry_changed | ||
ls_delete | ||
) | ||
) + | ||
exp_post | ||
}, | ||
|
||
:orchestration_stack => { | ||
|
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