<commit_before>= form_for @project_member, as: :project_member, url: namespace_project_project_members_path(@project.namespace, @project), html: { class: 'form-horizontal users-project-form' } do |f|
  .form-group
    = f.label :user_ids, "People", class: 'control-label'
    .col-sm-10
      = users_select_tag(:user_ids, multiple: true, class: 'input-large', scope: :all, email_user: true)
      .help-block
        Search for users by name, username, or email, or invite new ones using their email address.

  .form-group
    = f.label :access_level, "Project Access", class: 'control-label'
    .col-sm-10
      = select_tag :access_level, options_for_select(ProjectMember.access_level_roles, @project_member.access_level), class: "project-access-select select2"
      .help-block
        Read more about role permissions
        %strong= link_to "here", help_page_path("user/permissions"), class: "vlink"

  .form-group
    = f.label :expires_at, "Membership expires at", class: 'control-label'
    .col-sm-10
      = text_field_tag :expires_at, nil, class: "datepicker form-control", placeholder: "Select expires at"

  .form-actions
    = f.submit 'Add users to project', class: "btn btn-create"<commit_msg>Initialize the datepicker - the ugly way :(<commit_after>= form_for @project_member, as: :project_member, url: namespace_project_project_members_path(@project.namespace, @project), html: { class: 'form-horizontal users-project-form' } do |f|
  .form-group
    = f.label :user_ids, "People", class: 'control-label'
    .col-sm-10
      = users_select_tag(:user_ids, multiple: true, class: 'input-large', scope: :all, email_user: true)
      .help-block
        Search for users by name, username, or email, or invite new ones using their email address.

  .form-group
    = f.label :access_level, "Project Access", class: 'control-label'
    .col-sm-10
      = select_tag :access_level, options_for_select(ProjectMember.access_level_roles, @project_member.access_level), class: "project-access-select select2"
      .help-block
        Read more about role permissions
        %strong= link_to "here", help_page_path("user/permissions"), class: "vlink"

  .form-group
    = f.label :expires_at, "Access expiration date", class: 'control-label'
    .col-sm-10
      = text_field_tag :expires_at, nil, class: "datepicker form-control", placeholder: "Select access expiration date"
      .help-block
        Leave it empty if you do not want this user's access to expire.

  .form-actions
    = f.submit 'Add users to project', class: "btn btn-create"

:javascript
  $(".datepicker").datepicker({
    dateFormat: "yy-mm-dd"
  });
{'fraction_non_alphanumeric': 0.1246684350132626, 'fraction_numerical': 0.005305039787798408, 'mean_word_length': 3.826325411334552, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6540522', 'n_tokens_mistral': 842, 'n_tokens_neox': 819, 'n_words': 228}