Added UX improvements
This commit is contained in:
parent
8f4f04c238
commit
7056e9261a
2 changed files with 21 additions and 23 deletions
|
@ -98,6 +98,10 @@
|
|||
padding-right: 35px;
|
||||
|
||||
@media (min-width: $screen-sm-min) {
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
@media (min-width: $screen-md-min) {
|
||||
width: 350px;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,24 +1,18 @@
|
|||
= form_for @project_member, as: :project_member, url: namespace_project_project_members_path(@project.namespace, @project), html: { class: 'users-project-form' } do |f|
|
||||
.row
|
||||
.col-md-5.col-lg-5
|
||||
= users_select_tag(:user_ids, multiple: true, class: "input-clamp", scope: :all, email_user: true, placeholder: "Search for members to update or invite")
|
||||
.help-block.append-bottom-10
|
||||
Search for members by name, username, or email, or invite new ones using their email address.
|
||||
|
||||
.col-md-2.col-lg-2
|
||||
= select_tag :access_level, options_for_select(ProjectMember.access_level_roles, @project_member.access_level), class: "form-control project-access-select"
|
||||
.help-block.append-bottom-10
|
||||
= link_to "Read more", help_page_path("user/permissions"), class: "vlink"
|
||||
about role permissions
|
||||
|
||||
.col-md-2
|
||||
.clearable-input
|
||||
= text_field_tag :expires_at, nil, class: 'form-control js-access-expiration-date', placeholder: 'Expiration date'
|
||||
%i.clear-icon.js-clear-input
|
||||
.help-block.append-bottom-10
|
||||
On this date, the member(s) will automatically lose access to this project.
|
||||
|
||||
.col-md-2
|
||||
= f.submit "Add to project", class: "btn btn-create btn-block"
|
||||
.col-md-1
|
||||
= link_to "Import", import_namespace_project_project_members_path(@project.namespace, @project), class: "btn btn-default hidden-xs hidden-sm pull-right", title: "Import members from another project"
|
||||
.form-group
|
||||
= users_select_tag(:user_ids, multiple: true, class: "input-clamp", scope: :all, email_user: true, placeholder: "Search for members to update or invite")
|
||||
.help-block.append-bottom-10
|
||||
Search for members by name, username, or email, or invite new ones using their email address.
|
||||
.form-group
|
||||
= select_tag :access_level, options_for_select(ProjectMember.access_level_roles, @project_member.access_level), class: "form-control project-access-select"
|
||||
.help-block.append-bottom-10
|
||||
= link_to "Read more", help_page_path("user/permissions"), class: "vlink"
|
||||
about role permissions
|
||||
.form-group
|
||||
.clearable-input
|
||||
= text_field_tag :expires_at, nil, class: 'form-control js-access-expiration-date', placeholder: 'Expiration date'
|
||||
%i.clear-icon.js-clear-input
|
||||
.help-block.append-bottom-10
|
||||
On this date, the member(s) will automatically lose access to this project.
|
||||
= f.submit "Add to project", class: "btn btn-create"
|
||||
= link_to "Import", import_namespace_project_project_members_path(@project.namespace, @project), class: "btn btn-default hidden-xs hidden-sm pull-right", title: "Import members from another project"
|
||||
|
|
Loading…
Reference in a new issue