-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
At editing a StagingWorkflow now the user is able to assign a group of users as managers.
- Loading branch information
Moises Deniz Aleman
committed
Nov 19, 2018
1 parent
853386d
commit 82d9df5
Showing
7 changed files
with
87 additions
and
2 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
27 changes: 27 additions & 0 deletions
27
src/api/app/views/webui2/webui/staging/workflows/_staging_managers_group.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,27 @@ | ||
- actual_group = staging_workflow.managers_group ? staging_workflow.managers_group.title : 'None assigned' | ||
.modal.fade#staging-managers-group-modal{ tabindex: -1, role: 'dialog', aria: { labelledby: 'staging-managers-group-modal-label', hidden: true } } | ||
.modal-dialog.modal-dialog-centered{ role: 'document' } | ||
.modal-content | ||
= form_tag(staging_workflow_path(staging_workflow), method: :put) do | ||
.modal-header | ||
%h5.modal-title#staging-managers-group-modal-label Assign other group | ||
.modal-body | ||
.form-group#assign-managers-group-modal-input | ||
.mb-4 | ||
Assigned group is: | ||
%strong= actual_group | ||
|
||
= label_tag(:managers_title, 'Replace the group with:') | ||
.input-group | ||
.input-group-prepend | ||
%span.input-group-text#assign-managers-group-search-icon | ||
%i.fa.fa-search | ||
%i.fas.fa-spinner.fa-spin.d-none | ||
= text_field_tag 'managers_title', '', required: true, placeholder: 'Type to autocomplete...', class: 'form-control', | ||
data: { autocomplete_groups_url: url_for(controller: '/webui/groups', action: 'autocomplete') } | ||
|
||
.modal-footer | ||
= render partial: 'webui2/shared/dialog_action_buttons' | ||
|
||
- content_for :ready_function do | ||
autocompleteStagingManagersGroup(); |
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