<commit_before>div(ng-controller='NotifierIndexController')
  form#send-notice-form.form-horizontal(name='sendNoticeForm',
                                        role='form',
                                        novalidate)
    fieldset
      legend Send Notice{{ ngDialogData.length > 1 ? 's' : '' }}
      div.form-group.required(ng-class='{ "has-error": sendNoticeForm.title.$invalid && sendNoticeForm.title.$dirty }')
        label.control-label.col-sm-2(for='template-field') Template
        div.col-sm-10
          select#template-field.form-control(ng-model='notice.template',
                                             ng-options='template.title for template in templates',
                                             required)
      div.form-group.required(ng-class='{ "has-error": sendNoticeForm.patron.$invalid && sendNoticeForm.patron.$dirty }'
                              ng-show='notice.template.bibRequired == true')
        label.control-label.col-sm-2(for='patron-field') Bib #
        div.col-sm-10
          div.input-group
            span.input-group-addon #
            input#patron-field.form-control(type='text',
                                            name='bibNumber',
                                            ng-model='notice.bibNumber',
                                            ng-required='notice.template.bibRequired == true')
      div.form-group.required(ng-class='{ "has-error": sendNoticeForm.body.$invalid && sendNoticeForm.body.$dirty }')
        label.control-label.col-sm-2(for='body-field') Body
        div.col-sm-10
          textarea#body-field.form-control(name='body',
                                           ng-model='notice.template.body',
                                           rows='12',
                                           required)
      div.form-group
        div.col-sm-12
          button.btn.btn-primary.pull-right(ng-click='sendNoticeClicked()',
                                            ng-disabled='sendNoticeForm.$invalid',
                                            ng-class='sendNoticeForm.$invalid ? "btn-default" : "btn-primary"') Send
          button.btn.pull-right.btn-default(ng-click='closeThisDialog()') Cancel<commit_msg>adds HTML tab to Send Notice template view<commit_after>div(ng-controller='NotifierIndexController')
  form#send-notice-form.form-horizontal(name='sendNoticeForm',
                                        role='form',
                                        novalidate)
    fieldset
      legend Send Notice{{ ngDialogData.length > 1 ? 's' : '' }}
      div.form-group.required(ng-class='{ "has-error": sendNoticeForm.title.$invalid && sendNoticeForm.title.$dirty }')
        label.control-label.col-sm-2(for='template-field') Template
        div.col-sm-10
          select#template-field.form-control(ng-model='notice.template',
                                             ng-options='template.title for template in templates',
                                             required)
      div.form-group.required(ng-class='{ "has-error": sendNoticeForm.patron.$invalid && sendNoticeForm.patron.$dirty }'
                              ng-show='notice.template.bibRequired == true')
        label.control-label.col-sm-2(for='patron-field') Bib #
        div.col-sm-10
          div.input-group
            span.input-group-addon #
            input#patron-field.form-control(type='text',
                                            name='bibNumber',
                                            ng-model='notice.bibNumber',
                                            ng-required='notice.template.bibRequired == true')
      div.form-group.required(ng-class='{ "has-error": sendNoticeForm.body.$invalid && sendNoticeForm.body.$dirty }')
        label.control-label.col-sm-2(for='body-field') Body
        div.col-sm-10
          ul.nav.nav-tabs
            li.active
              a(data-target='#template-text', data-toggle='tab') Text
            li
              a(data-target='#template-html', data-toggle='tab') HTML

        div.tab-content
          div#template-text.tab-pane.active
            textarea#body-field.form-control(name='body',
                                             ng-model='notice.template.body',
                                             rows='12',
                                             required)
          div#template-html.tab-pane
            textarea#html-field.form-control(name='html',
                                             ng-model='notice.template.html',
                                             rows='12')
                                             
      div.form-group
        div.col-sm-12
          button.btn.btn-primary.pull-right(ng-click='sendNoticeClicked()',
                                            ng-disabled='sendNoticeForm.$invalid',
                                            ng-class='sendNoticeForm.$invalid ? "btn-default" : "btn-primary"') Send
          button.btn.pull-right.btn-default(ng-click='closeThisDialog()') Cancel
{'fraction_non_alphanumeric': 0.1240571655418817, 'fraction_numerical': 0.0059547439460103215, 'mean_word_length': 1.3938242280285036, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 50, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2974395', 'n_tokens_mistral': 1242, 'n_tokens_neox': 1188, 'n_words': 145}