<commit_before>-load i18n

.modal-header
  %h3.modal-title
    - trans "Open Case"
  .modal-body
    %p
      - trans "Open a new case for this contact? This will archive all messages from the contact."

    %form{ name:"form", novalidate:"" }
      .form-group{ ng-class:'{"has-error": form.summary.$invalid}' }
        %label.control-label
          - trans "Summary"
        %textarea.form-control{ ng-model:"fields.summary.val", ng-maxlength:"fields.summary.maxLength", name:"summary", required:"" }
        .help-block{ ng-show:"form.summary.$error.required" }
          - trans "Required"
        .help-block{ ng-show:"form.summary.$error.maxlength" }
          - trans "Too long"
      .form-group{ ng-if:"partners != null" }
        %label.control-label
          - trans "Assign to"
        %select.form-control{ ng-model:"fields.assignee.val", ng-options:"p.name for p in partners track by p.id" }
  .modal-footer
    %button.btn.btn-primary{ ng-click:"ok()" }
      - trans "Open"
    %button.btn.btn-default{ ng-click:"cancel()" }
      - trans "Cancel"<commit_msg>Add to new case modal template dropdown to select user<commit_after>-load i18n

.modal-header
  %h3.modal-title
    - trans "Open Case"
  .modal-body
    %p
      - trans "Open a new case for this contact? This will archive all messages from the contact."

    %form{ name:"form", novalidate:"" }
      .form-group{ ng-class:'{"has-error": form.summary.$invalid}' }
        %label.control-label
          - trans "Summary"
        %textarea.form-control{ ng-model:"fields.summary.val", ng-maxlength:"fields.summary.maxLength", name:"summary", required:"" }
        .help-block{ ng-show:"form.summary.$error.required" }
          - trans "Required"
        .help-block{ ng-show:"form.summary.$error.maxlength" }
          - trans "Too long"
      .form-group{ ng-if:"partners != null" }
        %label.control-label
          - trans "Assign to partner/user"
        %select.form-control{ ng-model:"fields.assignee.val", ng-options:"p.name for p in partners track by p.id", ng-change:"refreshUserList()" }
        %select.form-control{ ng-model:"fields.user.val", ng-options:"u.name for u in users track by u.id" }
  .modal-footer
    %button.btn.btn-primary{ ng-click:"ok()" }
      - trans "Open"
    %button.btn.btn-default{ ng-click:"cancel()" }
      - trans "Cancel"
{'fraction_non_alphanumeric': 0.16013628620102216, 'fraction_numerical': 0.002555366269165247, 'mean_word_length': 2.6194144838212634, 'pattern_counts': {'":': 2, '<': 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': '4136787', 'n_tokens_mistral': 760, 'n_tokens_neox': 739, 'n_words': 168}