<commit_before><commit_msg>Hide resource selection for roles other than team leader<commit_after>do($ = jQuery) ->
  $ ->
    resource_select = $('#user_role_resource')
    if resource_select.length
      do ->
        role_select = $('#user_role_role')
        role_changed = () ->
          resource_select.closest('div.row')[if role_select.val() == 'team_leader' then 'show' else 'hide']()
        role_changed()
        role_select.on('change', role_changed)

{'fraction_non_alphanumeric': 0.14254859611231102, 'fraction_numerical': 0.0, 'mean_word_length': 3.336448598130841, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3614675', 'n_tokens_mistral': 138, 'n_tokens_neox': 137, 'n_words': 28}