<commit_before>- membership = membership_f.object
.membership
  .form-group
    = membership_f.label :role, 'Job title', class: 'form-label-bold'
    = membership_f.text_field :role, class: 'form-control'

  .form-group
    = membership_f.label :group_id, 'Team', class: 'form-label-bold'
    %p.form-hint Use this to select the team you are in in the organisation
    %p.form-hint  If your team doesnt exist, you'll need to save your changes and add a new sub team when viewing a team on People Finder
    .editable-container
      .editable-fields{ style: ('display:none' unless membership.new_record?) }
        - if @org_structure
          = render 'shared/org_browser', org_structure: @org_structure, form: membership_f, field_name: :group_id

      - unless membership.new_record?
        .editable-summary.parent-summary
          - if membership.group
            .title= breadcrumbs(membership.path)
          .cta= link_to 'Edit', '#', class: 'show-editable-fields'

  .form-group.team-leader
    %fieldset.inline
      %legend.form-label-bold= role_translate(membership.person, 'memberships.leader').html_safe<commit_msg>Copy updates<commit_after>- membership = membership_f.object
.membership
  .form-group
    = membership_f.label :role, 'Job title', class: 'form-label-bold'
    = membership_f.text_field :role, class: 'form-control'

  .form-group
    = membership_f.label :group_id, 'Team', class: 'form-label-bold'
    %p.form-hint Use this to select the team you are in in the organisation.
    %p.form-hint  If your team doesnt exist, you'll need to save your changes and add a new sub team when viewing a team on People Finder.
    .editable-container
      .editable-fields{ style: ('display:none' unless membership.new_record?) }
        - if @org_structure
          = render 'shared/org_browser', org_structure: @org_structure, form: membership_f, field_name: :group_id

      - unless membership.new_record?
        .editable-summary.parent-summary
          - if membership.group
            .title= breadcrumbs(membership.path)
          .cta= link_to 'Edit', '#', class: 'show-editable-fields'

  .form-group.team-leader
    %fieldset.inline
      %legend.form-label-bold= role_translate(membership.person, 'memberships.leader').html_safe
{'fraction_non_alphanumeric': 0.11204234671371857, 'fraction_numerical': 0.0, 'mean_word_length': 3.247191011235955, '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': '5554197', 'n_tokens_mistral': 704, 'n_tokens_neox': 685, 'n_words': 184}