<commit_before>include ../menu/wallet.jade
section.panel.content(ng-controller="ContactsCtrl")
  table.table
    thead
      tr
        th.name Name
        th.account Address
        th.command
          a.btn.btn-success.sign(ng-click='toggle_form()')
            span(ng-hide='addform_visible') +
            span(ng-show='addform_visible') −
    tbody
      tr(ng-show='addform_visible')
        td(colspan=3)
          form(name="addForm", id="addForm")
            label(for='Name') Name
            input.name#contact_name(
              name='name', type='text', step='any'
              ng-model='contact.name'
              rp-unique='userBlob.data.contacts'
              rp-unique-field='name'
              rp-autofill='$routeParams.name', rp-autofill-on='addform_visible = true'
              required
              rp-focus)
            .errorGroup(rp-errors='name')
              .error(rp-error-on='required') Please enter a name.
              .error(rp-error-on='rpUnique')
                | You already have a contact with the same name.
            label(for='Address') Address
            input.address#contact_address(
              name='address', type='text', step='any'
              ng-model='contact.address'
              rp-dest, rp-dest-address, rp-dest-bitcoin
              rp-unique='userBlob.data.contacts'
              rp-unique-field='address'
              rp-autofill='$routeParams.to', rp-autofill-on='addform_visible = true'
              required)
            .errorGroup(rp-errors='address')
              .error(rp-error-on='required') Please enter an address.
              .error(rp-error-on='rpDest') Not a valid address.
              .error(rp-error-on='rpUnique') You already have a contact with the same address.
            label(for='dt') Destination tag
            input.name#contact_dt(
              name='dt', type='text', step='any', placeholder="Leave blank if not applicable"
              ng-model='contact.dt'<commit_msg>Contacts tab: Error message fixes #967<commit_after>include ../menu/wallet.jade
section.panel.content(ng-controller="ContactsCtrl")
  table.table
    thead
      tr
        th.name Name
        th.account Address
        th.command
          a.btn.btn-success.sign(ng-click='toggle_form()')
            span(ng-hide='addform_visible') +
            span(ng-show='addform_visible') −
    tbody
      tr(ng-show='addform_visible')
        td(colspan=3)
          form(name="addForm", id="addForm")
            label(for='Name') Name
            input.name#contact_name(
              name='name', type='text', step='any'
              ng-model='contact.name'
              rp-unique='userBlob.data.contacts'
              rp-unique-field='name'
              rp-autofill='$routeParams.name', rp-autofill-on='addform_visible = true'
              required
              rp-focus)
            .errorGroup(rp-errors='name')
              .error(rp-error-on='required') Please enter a name.
              .error(rp-error-on='rpUnique')
                | You already have a contact with the same name.
            label(for='Address') Address
            input.address#contact_address(
              name='address', type='text', step='any'
              ng-model='contact.address'
              rp-dest, rp-dest-address, rp-dest-bitcoin
              rp-unique='userBlob.data.contacts'
              rp-unique-field='address'
              rp-autofill='$routeParams.to', rp-autofill-on='addform_visible = true'
              required)
            .errorGroup(rp-errors='address')
              .error(rp-error-on='required') Please enter an address.
              .error(rp-error-on='rpUnique') You already have a contact with the same address.
              .error(rp-error-on='rpDest') Not a valid address.
            label(for='dt') Destination tag
            input.name#contact_dt(
              name='dt', type='text', step='any', placeholder="Leave blank if not applicable"
              ng-model='contact.dt'
{'fraction_non_alphanumeric': 0.12966207759699624, 'fraction_numerical': 0.0012515644555694619, 'mean_word_length': 1.908296943231441, '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': '5973560', 'n_tokens_mistral': 1150, 'n_tokens_neox': 1124, 'n_words': 204}